huyng/bashmarks

Feature request: Change directory using numbered list

roubles opened this issue · 2 comments

Gurus,

This tool is great, and I think more value can be added if we can show a numbered list, and allow users to jump to a directory based on the number.

This is similar to how you run the history command, you see a numbered list of history commands, and then you can use !n to re run a particular command. Similarly,

$ l
1     foo         /Users/roubles/foo
2     bar         /Users/roubles/bar
3     fubar       /Users/roubles/fubar
4     nada        /Users/roubles/nada
5     alice       /Users/roubles/git/alice
6     bob         /Users/roubles/git/bob

And then users can use something like 'n 5' and jump to /Users/roubles/git/alice.

$ n 5
$ pwd
$ /Users/roubles/git/alice

This simplifies the workflow a lot.

Are you aware that tab-completion works? This meets my needs regarding this feature request.

Created dynamarks for this feature: https://github.com/roubles/dynamarks