Re: mc macro recording/editing issues

AFAIU the call chain is the following:

{"ExecuteScript", CK_PipeBlock (0)}

/* CK_PipeBlock */ edit_block_process_cmd()  ->  user_menu()  ->  user_menu_cmd()  ->  execute_menu_command()  ->  expand_format()

Therefore format of .local/share/mc/mcedit/macros.d/macro.*.sh is the same as for usermenu entries - they are handled by the same code.


2017-09-20 12:40 GMT+03:00 Andrew Borodin <aborodin vmail ru>:
On Wed, 20 Sep 2017 12:28:02 +0300 Sergey Naumov <sknaumov gmail com> wrote:
> But I will try to use macro too.
> In the code (usermenu.c: expand_format()) I see that despite mcedit manual
> mentions %c, it is not actually supported.
> Could I fix %c and also add %C as file offset (WEdit.buffer.curs1)? Should
> I file a bug for it?

No. usermenu.c isn't related to editor and editor macros. It is related to user menu
(called via F2 in file namager or F11 in the editor).

I can't confirm that recorded macro isn't stored in ~/.local/share/mc/mc.macros.
It works for me. But ctrl-space. It is some special case.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]