sio / bash-complete-partial-path

Enhanced file path completion in bash (like in zsh)
Apache License 2.0
54 stars 2 forks source link

Feature: Add a way to go to the previous suggestion #9

Closed geekscrapy closed 4 years ago

geekscrapy commented 4 years ago

Any way to work in a way to go back to a previous item if you go past it by accident? Thinking like when you alt+tab in Windows, you can alt+shift+tab to go back.

No idea if its possible, but I thought I'd ask!

sio commented 4 years ago

It's already implemented. If you use _bcpp --defaults, Shift+Tab circles back to previous suggestion: https://github.com/sio/bash-complete-partial-path/blob/11771a516769e17c02314300ae98d586171f7a6b/bash_completion#L318-L323

I'll leave this issue open for a while to maybe add that to documentation in some way.

geekscrapy commented 4 years ago

Yup, I've upgraded the bash version and now it works 👍