Menu

Windows version, on exit f10, exit to current panel directory

2018-09-20
2020-12-10
  • john wolter

    john wolter - 2018-09-20

    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

     
  • adamy

    adamy - 2018-09-24

    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>

     
  • adamy

    adamy - 2018-09-24

    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.

     
  • adamy

    adamy - 2020-12-10

    Update, keyboard buffer injection is not a portable option.
    Only method is wrapper script and have mc export the cwd on exit.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.