-
Notifications
You must be signed in to change notification settings - Fork 96
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
[BUG] completion is mess when _describe use alternative array #424
Labels
bug
Something isn't working
Comments
HIDE-r
changed the title
[BUG] completion is mess when no use double hyphen
[BUG] completion is mess when _describe no use double hyphen
Mar 25, 2024
HIDE-r
changed the title
[BUG] completion is mess when _describe no use double hyphen
[BUG] completion is mess when _describe use alias description array
Mar 25, 2024
HIDE-r
changed the title
[BUG] completion is mess when _describe use alias description array
[BUG] completion is mess when _describe use alternative array
Mar 25, 2024
This bug can be reproduced without fzf-tab: > autoload -U compinit; compinit
_tst() {
local -a subcmds topics
subcmds=('c:description for c command' 'd:description for d command')
topics=('c:description for c command' 'd:description for d command')
_describe 'command' subcmds topics
}
compdef _tst tst
zstyle ':completion:*' menu yes select search
zstyle ':completion:*' list-grouped false
> tst # press tab here Quite strange, it may be a bug of _describe or compsys. |
Maybe. It looks strange. What should I do about this issue next? report to zsh? |
I am not sure, this seems to be a known issue: https://github.com/zsh-users/zsh/blob/master/Completion/Base/Utility/_describe#L3-L8 |
5 tasks
Temporary workaround for anyone encountering this problem: zstyle ':completion:*:complete:networkctl:*' list-grouped true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
I can make sure:
compinit
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no extra characters('description\ for\ c\ command')
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Minimal zshrc
Log
zsh-48936-fzf-tab-1.log
The text was updated successfully, but these errors were encountered: