[mc] Change directory in user menu?

Ben 2blkbelt at nemontel.net
Thu Dec 15 15:01:52 UTC 2022


I am doing some development that involves widely disjoint directories

What I would like to do is via the User Menu, have some key commands that
change the CD for the current pane, just as if I had typed it on the
command line:

cd /User/me/src/mycode

However, with this entry...

1       change to my src directory
        cd /User/me/src/mycode

...the pane does not move. I presume this occurs because this is executed
as a script, and so the cd happens in the context of the script and is lost
when the script ends.

Is there a way to actually cd the current pane from the user menu?

TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20221215/01b3d598/attachment.html>


More information about the mc mailing list