Changed engine of external macros execution
commitd31116328a7359396325de466124f0b9462190f1
authorIlia Maslakov <il.smind@gmail.com>
Wed, 26 Jan 2011 00:12:30 +0000 (26 00:12 +0000)
committerIlia Maslakov <il.smind@gmail.com>
Thu, 3 Mar 2011 20:48:30 +0000 (3 20:48 +0000)
tree36ae9683a2f90129d1c6e9a5e518f4f211ff304c
parent83177cfc16855aab6de144cdeba42b34266e7bcc
Changed engine of external macros execution

Now "EditPipeBlock (X)" action tries execute the
~/.local/share/mc/mcedit/macros.d/macro.X.sh script.
To bind action EditPipeBlock (X) to the any hotkey you need add this binding
into ~/.local/share/mc/mc.macros file like following:

[editor]
ctrl-Q=EditWordLeft:-1;EditWordRightHighlight:-1;EditPipeBlock:3;
ctrl-W=EditPipeBlock:1;

This means that "ctrl-W" hotkey initiates the EditPipeBlock (1) action,
editor handler translates this into execution of
~/.local/share/mc/mcedit/macros.d/macro.1.sh shell script.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
lib/fileloc.h
lib/keybind.c
lib/keybind.h
src/editor/edit-impl.h
src/editor/edit.c
src/editor/editcmd.c
src/filemanager/cmd.c
src/filemanager/usermenu.c
src/filemanager/usermenu.h
src/keybind-defaults.c