I would like to define the following keys in Cmder:
Alt+Up -> move to parent directory (Ctrl+Alt+U)
Alt+Left -> move to previous directory (the one I was in before the last cd)
Alt+Right -> move to next directory
Any help ?
As you said AutoHotKeys is not acceptable, it is difficult to move to previous and next directory, but it can be done. I have added one way to achieve it, but moving up the directory is pretty simple.
print("cd ..\n"). This will set the go back to parent directory. The
\nin the print statement mimics an Enter keypress.
One way you can achieve to go back to the previous directory is by setting pushd as an alias to cd. For example, if you are using powershell, you can set the alias like this:
remove-item alias:\cd ; set-alias "cd" "pushd"
Now, you can set the Alt+Left key to
print("popd\n") to go back to the previous location.