Difference between revisions of "IDE Window: Editor Macros"

From Lazarus wiki
Jump to navigationJump to search
Line 28: Line 28:
 
== Interface ==
 
== Interface ==
  
# Todo
+
;Select: Set <b>current</b> macro which will be used by the keyboard shortcut.<br/>The Play button is not affected by this.
 +
;Rename...: Rename the macro.
 +
;Delete: Delete the macro.
 +
;Play: Play the selected macro. This is the macro selected by clicking the list. Not the "current" macro.
 +
;Repeat: Set how often the macro is played. Only affects the play button. The keyboard shortcut is not affected.
 +
;Record: Record a new Macro. <br/>During recording this button will allow to pause/continue the recording.<br/>If anything was recorded, the new macro will be set "current" macro.
 +
;Stop: Ends the recording. The button also allows to stop repeated play. (in certain circumstances, it is possible to stop in the middle of a playing macro)
 +
;Move to: Project/Ide: Moves the selected macro to the indicated group
  
 
= Using macros by keyboard =
 
= Using macros by keyboard =

Revision as of 15:18, 27 June 2012


  • Lazarus 1.0 supports only macros via keyboard
  • The Editor Macro window is not available in the released Lazarus 1.0. It is only present in SVN and trunk snapshots.

Editor Macros

Editor macros.png

Lazarus allows you to record any amount of macros. Using the Editor Macro window you can select which macro is currently used. You can also save macros by moving them to the project session, or the IDE config.

Display

The macros are displayed in 3 groups:

Recorded
Shows newly recorded macros. These macros are not saved, and will be lost if the IDE is closed
Project
Shows macros that are saved with the project session. Each project can have it's own set of macros.
If the project is configured not to save a session, then macros in this group are not saved, and will be lost when the project is closed.
IDE
Shows macros that are saved with the IDE config. These macros are available to all projects

Macros can be moved between Project and IDE

Macros can have a status icon:

Editor macros current.png
Current macro. This can be set using the "Select" button. This is the macro that is played, if using the keyboard shortcut.
Editor macros rec.png
This macro is currently being recorded.
Editor macros play.png
This macro is currently playing.
Editor macros broken.png
Broken macro. This indicates that the macro could not be loaded from the config. The macro can not be used. (It will be kept (in it's broken form) in the config)

Interface

Select
Set current macro which will be used by the keyboard shortcut.
The Play button is not affected by this.
Rename...
Rename the macro.
Delete
Delete the macro.
Play
Play the selected macro. This is the macro selected by clicking the list. Not the "current" macro.
Repeat
Set how often the macro is played. Only affects the play button. The keyboard shortcut is not affected.
Record
Record a new Macro.
During recording this button will allow to pause/continue the recording.
If anything was recorded, the new macro will be set "current" macro.
Stop
Ends the recording. The button also allows to stop repeated play. (in certain circumstances, it is possible to stop in the middle of a playing macro)
Move to
Project/Ide: Moves the selected macro to the indicated group

Using macros by keyboard

By Default the following 2 key shortcuts are set up:

  • Shift+Ctrl+P Play the current macro
  • Shift+Ctrl+R Start/Stop recording a new macro
During recording, the shortcut for play can be used to pause recording