I've been looking for a way to have MC exit to the directory displayed in a panel. Currently, MC returns to the context, terminal or command prompt where it was started. I can imagine it would have to perform a Change-Directory program with the panel supplying the directory Path. Based on that it could be an exit menu choice. JSW
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Generally the command line option "-P, --printwd=<file> Print last working directory to specified file" is utilised within a calling script, similar can be done under windows.</file>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ps. There is no clean method of a child process affecting the cwd of its parent
yet may consider adding an option to inject a 'cd' command back into the keyboard buffer on exit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been looking for a way to have MC exit to the directory displayed in a panel. Currently, MC returns to the context, terminal or command prompt where it was started. I can imagine it would have to perform a Change-Directory program with the panel supplying the directory Path. Based on that it could be an exit menu choice. JSW
Generally the command line option "-P, --printwd=<file> Print last working directory to specified file" is utilised within a calling script, similar can be done under windows.</file>
ps. There is no clean method of a child process affecting the cwd of its parent
yet may consider adding an option to inject a 'cd' command back into the keyboard buffer on exit.
Update, keyboard buffer injection is not a portable option.
Only method is wrapper script and have mc export the cwd on exit.