lincheney / fzf-tab-completion

Tab completion using fzf
GNU General Public License v3.0
632 stars 40 forks source link

Defaults missing for path completion #32

Closed csdvrx closed 3 years ago

csdvrx commented 3 years ago

In bash, cd followed by tab usually shows available files or directories: try for example 'cd /usr/lo' then tab to complete to /usr/local then tab tab to list /usr/local/bin etc.

Following the install instructions, all I get is: fzf-bash-completion.sh: line 291: complete: : no completion specification

tabbing to complete filenames or path is very basic, and should be supported out of the box

lincheney commented 3 years ago

Can you give me the output of running complete -p '' and also complete -p Also, what version of bash are you running

lincheney commented 3 years ago

hi, I did some troubleshooting and I believe this happens when you have no actual bash completion loaded so it falls back to the readline completion instead I've made https://github.com/lincheney/fzf-tab-completion/commit/f3695ce60e1495fec317e54b04c3cc169e34a0e9 to simulate that fallback readline completion, can you try it out and let me know if it fixes your issue