Triggering actions from outside?
Sebastian Gniazdowski
sgniazdowski at gmail.com
Sun Aug 29 07:40:30 UTC 2021
I thought that it would be nice to trigger CK_EditNew and other actions
when running a macro, or a usermenu entry. It can be done via signals
(USR1), attached is a patch.
For running from macros inside mc/mcedit, what's sufficient is to execute:
mc --ck EditNew (because the pid is exported). For outside, one has to
specify the pid via: MC_PID=1234 mc --ck EditNew.
It works for mc and mcedit. What do you think?
PS. A little video: asciinema.org/a/432747
--
Best regards,
Sebastian Gniazdowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20210829/67dd80fa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Signal_CK_actions.patch
Type: text/x-patch
Size: 11729 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20210829/67dd80fa/attachment.bin>
More information about the mc-devel
mailing list