mc macro recording/editing issues

Sergey Naumov sknaumov at gmail.com
Wed Sep 20 10:19:36 UTC 2017


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.

Thanks,
Sergey.

2017-09-20 12:40 GMT+03:00 Andrew Borodin <aborodin at vmail.ru>:

> On Wed, 20 Sep 2017 12:28:02 +0300 Sergey Naumov <sknaumov at 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.
>
> --
> Andrew.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20170920/f8ed3fa5/attachment.html>


More information about the mc-devel mailing list