several actions on a single shortcut

Started by: ldm3 voices8 posts

Hi All,

How is it possible to implement a sequence of actions on single keyboard shortcut? For example, I'd like to have 'Copy Line' then 'Delete Line' (similar to yank @VI) on a single shortcut (let's say Ctrl+D). So, how can I do so?

Thank you!
Hi Dimitry!

Just record a macro (Macro->Start/Stop Macro) that does it. There is usually a default run key for the last macro recorded.

Alternatively, you can assign it to a keyboard shortcut sequence, e.g. ALT-m. For this you need to save it first, giving it a name,(ext = 'jsee') in the macro folder. Look-up the "Customize Macros dialog box"/Options tab for its location.

Then to assign it your own and permanent key sequence, do Tools Menu->"Properties for Current (or All if you prefer) Configuration"->Keyboard tab->Select "My Macros" in the "Category" drop-down field; choose the Macro name you gave it in the "Command" drop-down list, move the cursor to the "Press new shortcut key", click the key sequence of your choice (See if it is not already assigned to something) and click "assign". OK yourself all the way out!

Have fun!
Record and save a macro, then assign a shortcut key to it (All Configurations Properties -> Keyboard)

Edit: Meir, you were faster than I :-)
Thanks! But can I do it using the java scripting?
A saved macro actually is a java script, isn't it?
Actually I'm not familiar with the macros... Are the macros implemented using java scripting? So, after a macro recording, can I open it and see a java code? Really?
Yes, you can save the macro as a .jsee file and then open it and examine and change the code.
Thanks!

8 posts in this topic