Triggering actions from outside?

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:

Best regards,
Sebastian Gniazdowski

Attachment: Signal_CK_actions.patch
Description: Text Data

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