Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for me on bash #38

Open
neerajbadlani opened this issue May 10, 2021 · 10 comments
Open

Not working for me on bash #38

neerajbadlani opened this issue May 10, 2021 · 10 comments

Comments

@neerajbadlani
Copy link

neerajbadlani commented May 10, 2021

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
Copy link
Owner

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

@neerajbadlani
Copy link
Author

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

@lincheney
Copy link
Owner

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

@kkurczewski
Copy link

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

@mkonig
Copy link

mkonig commented Dec 27, 2021

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
Copy link
Contributor

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

@mkonig
Copy link

mkonig commented Dec 28, 2021

@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
Copy link

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
Copy link

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
Copy link
Author

[~] 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants