Feature idea: Pushd and popd #1603
Replies: 2 comments 5 replies
-
pushd and popd are indeed very useful on shell. But I'm not sure if they make in sense for Also we offer going back to the previous dir with - as well (but it's only for "1 level"). |
Beta Was this translation helpful? Give feedback.
5 replies
-
Sorry, no plans. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, it says "feel free to discuss feature ideas", so I'll try to do that.
https://en.wikipedia.org/wiki/Pushd_and_popd are often claimed to be immensely useful and time-saving power features of bash (and others) because they allow users to quickly jump between frequently used directories, easily navigate between multiple directories, and reduce the risk of making mistakes while typing long paths.
Going back to where you're from is one of the most often performed filesystem movements. You're working in one directory, but some task requires you to go somewhere else. You need to get back to your working directory when you're done, etc. Once you get used to thinking in terms of the location stack, you push and pop more than you walk up and down. Maintaining such a location stack might be a great feature in nnn. There just need to be two more commands: one to push the current location on the stack, and the other to go back to the last pushed location.
Beta Was this translation helpful? Give feedback.
All reactions