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

Completions don't work in ZSH #722

Open
Hubro opened this issue Jun 20, 2022 · 2 comments
Open

Completions don't work in ZSH #722

Hubro opened this issue Jun 20, 2022 · 2 comments

Comments

@Hubro
Copy link

Hubro commented Jun 20, 2022

Here is my ZSH completion config:

# {{{ ZSH completion config

fpath=(~/Dropbox/Config/zsh-completions $fpath)

zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' max-errors 2
zstyle :compinstall filename '/home/tomas/.zshrc'

autoload -Uz compinit
compinit

autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/tk tk

# }}}

Completions for tk don't work, if I type tk and press tab, I only get filename completions, just as I get with commands with no completion support.

Is my existing completion configuration incompatible with "bashcompinit" or something like that?


➜ tk --version
tk version 0.22.0

The completions work as expected in bash:

complete -C /usr/bin/tk tk
@Volatus
Copy link

Volatus commented May 30, 2023

@Hubro pretty sure ZSH completion is not available due to the project's choice of completion library.

@Elfo404 Elfo404 added this to Tanka May 27, 2024
@github-project-automation github-project-automation bot moved this to Triage in Tanka May 27, 2024
@zerok
Copy link
Contributor

zerok commented May 27, 2024

I tried loading the completion with this

autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /opt/homebrew/bin/tk tk

and as far as I can tell the completion works. I'm not sure what changed since then, though, as cli-x and posener/complete have still the same version since back then.

@zerok zerok moved this from Triage to In discussion in Tanka May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In discussion
Development

No branches or pull requests

3 participants