Repository navigation
Add fish completions - #24611
Add fish completions#24611
Conversation
d044ef4 to
b4db43a
Compare
|
Concept ACK Tested using Fish Version 3.3.1 on FreeBSD 13.0 RELEASE |
luke-jr
left a comment
There was a problem hiding this comment.
I realise we don't have this for the existing bash-completion scripts, but I think we should probably have these in a new contrib/fish-completion subdirectory (or perhaps contrib/completion/{bash,fish} and move the bash-completion too)
|
I agree. |
Also agree with this. Unless there are any strong objections I will retouch with completions in subfolders. |
I think that's fine to do.
That's good at least. Is there any reason you've excluded the other utilities? You could add yourself to the REVIEWERS file for |
Great I will re-arrange like this then.
Which utilities to do you mean in this context? I included
Sure, ok |
b4db43a to
da5a840
Compare
We also have |
Ah right. I can certainly add those. I was just starting by essentially mirroring what we have in bash, but very happy to give fish superior completion support :) I will add it into the fish completions commit. |
josibake
left a comment
There was a problem hiding this comment.
Strong Concept ACK!
Thanks for doing this. I use the bash completions so I haven't tested this locally, but a big fan of having more autocomplete options, as it's a big usability improvement for the tools.
One suggestion regarding commit hygiene (feel free to ignore): prefix the commits with the relevant tags, e.g refactor: ... for the first, scripts: ... for the second, and doc: ... for the third
|
Concept ACK, and agree the new directory structure is better. Edit: might want to add a small mention to |
|
Concept ACK paging @willcl-ark; this needs updating, and I want to get fishy 🐟 |
Ping received! I'll update and finish this ASAP. |
2f0bd7f to
9e712b9
Compare
|
Finally updated, sorry about the delay.
|
9e712b9 to
47d2e6d
Compare
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsNo conflicts as of last run. |
47d2e6d to
34123b2
Compare
|
Dropped the REVIEWERS commit as the document looks to be imminently removed |
|
while testing, i noticed that the bash completions allow you to do |
Thanks for the nudge. Yes this should simply require adding |
34123b2 to
db85a52
Compare
|
Now added an exclusion for |
|
ACK db85a52 tested by adding files to |
|
Concept ACK I use fish and would like to have completions. However the implementation here has some issues, although not necessarily blocking ones.
|
|
Thanks for the ping on this, I will fix and rework it as suggested. A thought I had; might it be more useful (and faster runtime) to have a It would want to be run with I haven't personally noticed any runtime performance issue tbh, but thinking about how to fix the |
|
Status:
|
db85a52 to
05d4ecc
Compare
Yes
It doesn't necessarily need to work with relative paths, it just can't be throwing an error. |
d45b351 to
8032233
Compare
|
Hey @achow101 I think this is ready for a re-test now as I've addressed all your previous comments :) It should work with relative binaries, as well as not throw any errors if the RPC backend is offline. I also changed the style of the completions to use fish functions so that completions are always dynamically loaded against the current commandline contents which avoids vachine potentially stale completions as it was before. |
|
ACK 803223377c85668a80946a5d5bd22decd1bfd6a4 Tested manually and completions appear to be as expected. |
8032233 to
15aafd3
Compare
|
Sorry to change after an ACK, but I've found that this was swallowing help completions. This fix to only use the first token from the commandline in 15aafd3 fixes this for me.
|
|
There appear to be command completions for bitcoin-cli even if the command already has an RPC in it. |
I also noticed this but it seems to only happen for RPC commands which also take arguments. For example: bitcoin-cli abortrescan <TAB>does nothing (expected behavior). However: bitcoin-cli abandontransaction <TAB>brings up the autocomplete list again. I also tested |
990717b to
da3a182
Compare
Move bash completions to contrib/completions/bash/* Precursor to adding fish completions
da3a182 to
a3645a1
Compare
Completions are dynamically generated from the respective binary help pages. Completions should be sourced into the shell or added to $XDG_CONFIG/fish/completions.
a3645a1 to
ccba4fe
Compare
|
ACK ccba4fe |
The completions are dynamically generated from the respective binary
help pages.
Completions should be sourced into the shell or added to
$XDG_CONFIG/fish/completions. See where to put completions for more information.As the completions are auto-generated they should only require as much maintenance as the bash equivalents, which is to say very little!