-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Configure descriptions format #417
Comments
I agree the descriptions format should be consistent to the other commands and as a longterm zsh user (before switching to elvish) i would expect the same. As far as i remember the main reasons i had to change it to the underlying command compadd were:
Though it was also quite a pain to get it working correctly I just had another look at it and using compdescribe might be possible, but worst case the _compdescribe script would need to be altered a bit. So at the moment it does not support the |
I think i see another reason why i deviated from the /my/folder/s<TAB>
# /my/folder/subfolder1
# /my/folder/subfolder2 /my/folder/s<TAB>
# subfolder1
# subfolder2 |
@disrupted I set the listing to one-per-line and altered the display values so that they at least mimic the standard behaviour. Btw. i tried out your config in a container and due to the separate completion menu prefilling the search bar with the current word it interferes a bit with the multiparts completion from the second segment onward as values are filtered. Works fine, but the search bar must be cleared each time. |
Brilliant! Thank you for getting on it so quickly. It works exactly as I hoped now.
Could you give me an example what you mean by multiparts completion? So far I haven't encountered any issues but I also just started using it. I basically use it the same way I did with the builtin ZSH tab-completion for |
Try |
thanks for the explanation, I see what you mean. Tbh I wouldn't even have known that this is supposed to work. Do you happen to know if this can be fixed somehow? otherwise I guess I am okay with it anyways |
I think it's rather a feature from the plugin:
|
In the unlikely event anyone comes across this I solved it by setting
|
First of all let me say I am totally amazed by carapace. I discovered it thanks to your PR cli/cli#2728 and was blown away when I discovered what it can do.
One minor thing I'd like to ask/request is how to change the format used for the descriptions?
In my ZSH setup using the standard completion source (e.g. for gh) the descriptions are separated by
--
, which I like.After loading carapace (
source <(carapace gh zsh)
) the descriptions change to this format (using parentheses)If possible I'd like to keep my existing description format so that it stays uniform across different commands.
Here's my zshrc for reference: https://github.com/disrupted/dotfiles/blob/4957c485b2b7bf2a73af9393bf8d599fd6afbfec/.zshrc
The text was updated successfully, but these errors were encountered: