-
Notifications
You must be signed in to change notification settings - Fork 385
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
RFC-ish: dymanic completions: test a hack that checks availability of generated completions #5376
base: main
Are you sure you want to change the base?
Conversation
…d completions fish-shell/fish-shell#11046 relies on this behavior.
01a903d
to
11d703a
Compare
I was going to mention that I realized this would be a problem for people using packaged Because of how fish handles completions, if jj is packaged like that, it should work the same on old and new fish. Of course, this could still be a problem for packagers other than nixpkgs and brew. |
I tend towards making |
My current understanding is that this would be fine for See also fish-shell/fish-shell#11046 (comment) where I said much the same thing. |
I think so, yeah. From the user's perspective, the output of |
There's one more problem with the idea of having This could be solved by using the full path, e.g. outputting We could say that packagers have to call Footnotes
|
Then the whole process would already fail at
I am not aware of a shell completion system that is capable of dealing with users arbitrarily renaming their binaries. I've noticed that in your example (
I've never heard of people renaming binaries in order to keep around and use multiple ones at the same time. I think it would be way more common to have a certain, possibly somewhat outdated version installed by some package manager and installing a newer one manually. One would generally do that by having Also, the static completions currently emitted by |
Cc @senekor. This is also a bit of an RFC, to make people aware of the interaction
between Fish 4.0 and
jj
's dynamic completions and my proposed (imperfect) solutionto it, fish-shell/fish-shell#11046 .
In short, unless configured carefully, fish often evaluates the static completions after the dynamic ones, breaking the latter subtly.
Checklist
If applicable:
CHANGELOG.md