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

Tab-completing dirs not working sometimes - macos bash #113

Open
hamishfagg opened this issue Nov 20, 2024 · 0 comments
Open

Tab-completing dirs not working sometimes - macos bash #113

hamishfagg opened this issue Nov 20, 2024 · 0 comments

Comments

@hamishfagg
Copy link

hamishfagg commented Nov 20, 2024

Hi there,

Im running into an issue where tab-completing dir/file doesn't work for some commands, but does for most.
The two examples ive found so far are echo and pip:

echo some_director <TAB>
pip <TAB>
pip install -r requireme <TAB>

In all of these cases the terminal briefly shows Loading matches ... and then clears with no results shown. If I disable fzf completion I get the expected completion output from bash's normal completion for all above examples. I'm just looking for directory/file matches here.

Here's the fzf-related section in my bashrc:

export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border --preview="bat -f {}"'
export FZF_COMPLETION_AUTO_COMMON_PREFIX=true
# export FZF_COMPLETION_AUTO_COMMON_PREFIX_PART=true
export FZF_COMPLETION_OPTS="--preview=''"
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
  PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
fi
eval "$(fzf --bash)"
source ~/src/fzf-tab-completion/bash/fzf-bash-completion.sh
bind -x '"\t": fzf_bash_completion'

Am I doing something wrong or is this expected? Thanks

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

1 participant