sio / bash-complete-partial-path

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

Deterministic completion for directories only adds a trailing slash after second Tab press #22

Open kolayne opened 1 year ago

kolayne commented 1 year ago

Suppose I want to cd to .config/gedit. With usual bash, I do:

$ cd .co<TAB>

which completes it to

$ cd .config/

and I can type the rest.

With partial path completion enabled, I do

$ cd .co<TAB>

which completes it to

$ cd .config

and then only a second Tab keypress completes it to

$ cd .config/

Demo: https://asciinema.org/a/549122

sio commented 1 year ago

Original PR #24 had been left unfinished by author, this issue welcomes help from new contributors!