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 does not autocomplete #24

Open
arialdomartini opened this issue Sep 29, 2024 · 1 comment
Open

TAB does not autocomplete #24

arialdomartini opened this issue Sep 29, 2024 · 1 comment

Comments

@arialdomartini
Copy link

I'm using Zsh with zinit. bd works, but hitting TAB won't complete.

For example:

cd
mkdir -p aaa/bbb/ccc/ddd
cd aaa/bbb/ccc/ddd
bd bbb

takes me back to bbb, but:

cd
mkdir -p aaa/bbb/ccc/ddd
cd aaa/bbb/ccc/ddd
bd b<TAB>

would not suggest bbb.

I suspected this was because of a conflicting plugin, but I am getting the same behavior with this minimal .zshrc too:

ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"

autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit

zinit light Tarrasch/zsh-bd

Do you have any suggestion?

@Tarrasch
Copy link
Owner

Tarrasch commented Oct 9, 2024

Hi @arialdomartini, that's interesting. I've never had a problem. The title "TAB does not autocomplete" is not correct for everyone though. Let's try to identify under what conditions it does not work.

Can you first trying using something different from zinit? I've used https://github.com/zplug and another plugin manager and in both cases autocompletion works.

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

2 participants