lincheney / fzf-tab-completion

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

Not working for me on bash #38

Open neerajbadlani opened 3 years ago

neerajbadlani commented 3 years ago

I followed bash steps as mentioned in the wiki : After that, when i do

git <Tab>

I expected autocompletion to pop up . However fzf does come up, but only with files in the current directory rather than tab completion options .

lincheney commented 3 years ago

I'm not sure what you mean here what "bash completion options" were you expecting?

neerajbadlani commented 3 years ago

Sorry corrected . I meant tab completion options are not coming up after pressing tab .

lincheney commented 3 years ago

can you post here what completions you get with fzf and another without fzf

kkurczewski commented 3 years ago

@neerajbadlani it worked for me out of the box (fresh installation). Are you sure you have git completions installed?

mkonig commented 2 years ago

I have similar issue. If I use the command vim ** then all files/dirs recursively are searched while typing. If using the command vim+tab only the files/dirs in the current directory are shown.

duganchen commented 2 years ago

Are you on a Mac, and if so, have you installed gawk?

mkonig commented 2 years ago

@duganchen I am on linux(ubuntu 20). It is the same problem for git+tab. Only the files in the current directory are shown. GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)

Lurkki14 commented 1 year ago

Similar problem here, screenshots to illustrate; the first is fzf-tab-completion, second plain fzf:

fzf-tabcomp

fzf

Bash version: GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)

kkurczewski commented 9 months ago

Two years later and it still works for me on fresh install, for the record, necessary config:

# .bashrc or .bash_aliases
source ~/.fzf/fzf-bash-completion.sh
bind -x '"\t": fzf_bash_completion' # enable completion under tab

Make sure fzf script is placed in given directory:

$ ls ~/.fzf/
fzf-bash-completion.sh

Make sure you have completions installed:

$ ls /etc/bash_completion.d/ | grep git
git-prompt

And then TAB works as follows: image

neerajbadlani commented 2 months ago

[~] source ~/fzf-tab-completion/bash/fzf-bash-completion.sh -bash: /Users/neerajbadlani/fzf-tab-completion/bash/fzf-bash-completion.sh: line 607: unexpected EOF while looking for matching `"' -bash: /Users/neerajbadlani/fzf-tab-completion/bash/fzf-bash-completion.sh: line 612: syntax error: unexpected end of file