-
Notifications
You must be signed in to change notification settings - Fork 556
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
feat: carapace completion for all major shells #1436
feat: carapace completion for all major shells #1436
Conversation
Why would we generate completion when we already have it? Nope |
What are you talking about? You are not doing that... There are more shells than just Bash and Zsh. If you read my description I specifically give the use case. Please reopen and give this a read-through before insta-closing. The title may be self-explanatory, but I would think reading a PR should be a given |
TL;DR being and less a-holey than my response above, it is optional, so having more choices for what people use is always good, it's the OSS way, after all. Though, more importantly, it covers any shell you may use, not the two that you use. |
I'll leave it up to the other maintainers to endorse this, but I'm still against inclusion since this adds another dependency. |
Saying this adds a dependency seems a bit off the mark. Would appreciate a re-open for visibility instead of it laying dorman as closed |
Thank you, much |
Additionally, if it would be more inline with keeping requirements and CI under control, I could translate what I have for carapace into a simple nushell script such as defined here (though very minimal, I could make this actually more useful) to replace or compliment the carapace completion. This would bring down the encompassing nature of working for almost all shells, but still add another major shell's completion. Let me know if this sounds more reasonable. |
Carapace seems to be pretty new, according to repology, not many repos have it (literally none of the stable distros). This eliminates even an optional dependency (for binary packages), as it would be irresolveable. Thus the yaml file would not be packaged at all, so the only people who would use it are the ones who get it from the repo. I have minimal knowledge (I see traffic on the repo and the copr repo, but don't know how to translate them to installations) on what percentage of our users would even receive the script and how many of them would use it in the end. We can run a poll on our discord to try to get a guess, but I'm not sure if that's a good idea. If we do this we should also poll for the bash and zsh completion scripts. In the end I'm not even sure if completion should be given by the application. I'd much rather put it in a *shell plugin (for example oh-my-zsh for zsh, I'm pretty sure there's a plugin manager for the relevant ones). Putting code in user directories (during the installation process, except to the program installation directory) is something I would want to avoid. |
Your link is either dead or timed out while trying to load.
Honestly, as it doesn't add any dependencies and minimal upkeep, I'd say if one person was benefited, it's worth including.
This seems overly complicated unless I misunderstans what you mean. A whole plugin? What about my comment from last week? Would pivoting to this route, which is purely sourcing a file that doesn't even require a shell plugin like the Zsh (and bash idk) method already in the repo does, and possibly linking to this pull for anyone who does already use carapace or in FAQ?
|
This qualifies as CI, so it does not require a version bump of the script |
Type of change
Description
I saw that there was bash and zsh completion available (which seems to be non-exhaustive of flags, I noticed that while comparing to --help) and as I am a NuShell user primarily, I wanted to have that too. Carapace is a cross-shell (and even windows) auto-completion engine, so I figured it would be nice for everyone to have.
I am not sure if Carapace-spec is required for this as I used documentation from that version, but I could not test as I am on NixOS and the only Carapace available just works. If others could test and confirm, I can make note of that in the READMe. General testing would be handy of course. :)
Checklist
I didn't change the actual code so this all should be identical
-c
history and continue work-d
downloads work-s
syncplay works-q
quality works-v
vlc works-e
select episode works-S
select index works-r
range selection works--skip
ani-skip works--skip-title
ani-skip title argument works--no-detach
no detach works--dub
and regular (sub) mode both work-h
help info is up to dateAdditional Testcases