Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

IDE / Editor macros?

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Where do I find this dialog (show in the wiki)?

http://wiki.freepascal.org/IDE_Window:_Editor_Macros

I can't find a Macro menu anywhere in the IDE, yet if I search for keyboard shorcuts via the Options dialog I see "record macro" Ctrl+Shift+R.

There are a couple of actions I do very frequently in the editor, and SynEdit doesn't have those built-in, so I want to record some macros and hopefully assign keyboard shortcuts to them.

The dialog shown in the wiki seems like what I want, but I can't find it. I'm using Lazarus 1.5 r48959 FPC 2.6.4 x86_64-linux-gtk 2

Example actions I use often in EditPad Pro, but doesn't exist in SynEdit (Lazarus).

* duplicate the current line
* move current line up or down
* join next line with current line
etc.

ps:
Using Ctrl+Shift+P doesn't do anything in my Lazarus.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
ps: Using Ctrl+Shift+P doesn't do anything in my Lazarus.

The shortcut here doesn't work even though it is assigned, but I eventually found the dialog shown in the wiki page, thanks to the search feature in the Editor Toolbar Config dialog.
"View -> Editor Macros..."

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Martin Frb
to Graeme Geldenhuys
Graeme Geldenhuys wrote
On 2015-05-12 11:19, Graeme Geldenhuys wrote: > ps: > Using Ctrl+Shift+P doesn't do anything in my Lazarus.

Ctrl+Shift+P (Play) only does something, if you recorded a macro.

Ctrl+Shift+R (record) and you should see a red square in the status bar, indicating you are recording a macro. (The square also acts as stop button)

Ctrl+Shift+L (List) the window.

The shortcut here doesn't work even though it is assigned, but I

Maybe it is used by your OS ?

eventually found the dialog shown in the wiki page, thanks to the search feature in the Editor Toolbar Config dialog. "View -> Editor Macros..."

Good.

Reply by email

Graeme Geldenhuys
to Martin Frb
Martin Frb wrote
Ctrl+Shift+L (List) the window.

That key combo shows the debug dialog "Local variables".

> The shortcut here doesn't work even though it is assigned, but I Maybe it is used by your OS ?

Exactly for that reason (and some others) I rather use a window manager, not a bloated desktop environment like Gnome, KDE etc. I use JWM (Joe's Window Manager) and the only window manager keyboard combos I have defined is Alt+Tab (switch windows) and Alt+F4 (close windows). That way my WM doesn't interfere with any keyboard shortcuts of any applications.

No worries, I've created a few macros, moved them to the IDE section and assigned new keyboard shortcuts to them. They seem to work, so I'm happy. :)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Martin Frb
Martin Frb wrote
> > That key combo shows the debug dialog "Local variables". Interesting. local var should be ctrl-ALT-L

Indeed, it seems I had both combos assigned to the "local variables" dialog. No idea how that happened, but then I do love to tweak the shortcuts. I use Dvorak keyboard layout, so some combos are just too Qwerty layout specific. Anyway, I removed the ctrl+shift+l one and reassigned it to the Macro List dialog. It works fine now. Thanks.

ps;
If anybody is ever bored enough, please implement a feature that lists keyboard shortcuts that are customised by the user (ie: not defaults). :)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Martin Frb
to Graeme Geldenhuys
Graeme Geldenhuys wrote
ps; If anybody is ever bored enough, please implement a feature that lists keyboard shortcuts that are customised by the user (ie: not defaults). :)

Open the editoroptions.xml and look for KeyMapping?

Reply by email