#15 Change directory using a dialog

closed
nobody
None
5
2008-03-27
2007-07-31
gooli
No

The one thing I hate most about the command line interface is moving between directories. About half of the time I'm working in the command line I'm typing those CD commands.

This patch is a solution to that pain. It adds a menu command called Change Directory which shows a standard Windows directory selection dialog box (SHBrowseForFolder). After you select a directory, a CD /D command will be executed, bringing you there, even if you select something on another drive.

The menu command is both in the main menu and in the context menu under File. You can also change the directory using Ctrl+D.

The patch changes quite a lot of files as I've tried to keep things as consistent as possible with the current implementation.

The patch has been made against the 131 sources.

Hope this gets to be added to the trunk.

Eli Golovinsky
www.gooli.org
egooli@gmail.com

Discussion

  • gooli
    gooli
    2007-07-31

    Change directory with a dialog patch

     
  • Kirill
    Kirill
    2007-09-15

    Logged In: YES
    user_id=1664805
    Originator: NO

    Little known feature of Command Prompt since at least Windows 2000 is that files or folders, dropped into the Command Prompt window, are inserted as full path to them, quoted if required.

    To my big, and hugely pleasant, surprise Console2 does it too.

    So, another solution to your pain could be:
    - type "cd /d "
    - drag-and-drop a folder
    - execute.

    Another use case is:
    - type "diff -Naur "
    - drop an old source tree
    - type " "
    - drop the new source tree
    - (optional) add redirect
    - execute

    Hope it helps (especially if your patch does not make it to the trunk).

    Marko, can you do one better? Neither cmd.exe nor Console2 can't accept special folders. Is it an easy one?

     
  • Logged In: YES
    user_id=16767
    Originator: NO

    I have no idea, Kirill, I can take a look. But that does not belong here :)

     
    • status: open --> closed