Tarrasch / zsh-bd

Jump back to a specific directory, without doing `cd ../../..`
422 stars 112 forks source link

TAB does not autocomplete #24

Open arialdomartini opened 1 month ago

arialdomartini commented 1 month ago

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 commented 1 month ago

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.