Macros to automate the UI
Posted: 03 Dec 2006, 22:30
It would be nice if Sala would support macros. For a start several keystrokes could be summed up under one macro.
It should be possible to place a macro in the user menu and to assign a macro to a key (or a combination like Ctrl+F). If this shortkey is already defined it should override the default settings. This way the existing functions could be enhanced / changed to someones preferences.
Here some examples how to solve some feature requests with macros:
Always queue copy/move operations has been requested several times e.g also here.
Overwriting <F5> with <F5><ALT+W> does the trick.
Quick Rename pre-selecting filename without extension could be solved with the macro <F2><SHIFT+CTRL+LEFT><SHIFT+LEFT> assigned to the <F2> key. In general several productivity tips could be further simplified with macros.
The macros should allow to use the variables that are available for user menu entries like $(Name), $(FullPath) and so on. This would allow to address requests like Shift+F4... use name-part from selected file
what could be easily achieved with <SHIFT+F4><$(NamePart)>.txt.
Another nice enhancement would be a feature to call an external program and to digest its output. Imagine you have a little C#, VB, Perl, whatsoever program called today.exe that writes the current date to stdout in your preferred format. Then something like <F2><CTRL+LEFT><LEFT>_<exec:C:\MyTools\Today.exe> would add today's date to the filename. Also here variables should work, e.g. <exec:Mytool.exe $(FullPathLeft)>
This "Meta-Feature" could serve as a poor man's SDK and IMHO would significantly increase the flexibility of the user interface.
It should be possible to place a macro in the user menu and to assign a macro to a key (or a combination like Ctrl+F). If this shortkey is already defined it should override the default settings. This way the existing functions could be enhanced / changed to someones preferences.
Here some examples how to solve some feature requests with macros:
Always queue copy/move operations has been requested several times e.g also here.
Overwriting <F5> with <F5><ALT+W> does the trick.
Quick Rename pre-selecting filename without extension could be solved with the macro <F2><SHIFT+CTRL+LEFT><SHIFT+LEFT> assigned to the <F2> key. In general several productivity tips could be further simplified with macros.
The macros should allow to use the variables that are available for user menu entries like $(Name), $(FullPath) and so on. This would allow to address requests like Shift+F4... use name-part from selected file
what could be easily achieved with <SHIFT+F4><$(NamePart)>.txt.
Another nice enhancement would be a feature to call an external program and to digest its output. Imagine you have a little C#, VB, Perl, whatsoever program called today.exe that writes the current date to stdout in your preferred format. Then something like <F2><CTRL+LEFT><LEFT>_<exec:C:\MyTools\Today.exe> would add today's date to the filename. Also here variables should work, e.g. <exec:Mytool.exe $(FullPathLeft)>
This "Meta-Feature" could serve as a poor man's SDK and IMHO would significantly increase the flexibility of the user interface.