bashmarks icon indicating copy to clipboard operation
bashmarks copied to clipboard

Feature request: Change directory using numbered list

Open roubles opened this issue 8 years ago • 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.

roubles avatar Apr 05 '17 02:04 roubles

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

fpedroza avatar Apr 05 '17 18:04 fpedroza

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

roubles avatar May 10 '17 20:05 roubles