-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: improve hx fish completion #10853
feat: improve hx fish completion #10853
Conversation
yuntaz0
commented
May 30, 2024
- add -w and --working-dir options
- shorten option description
- dynamically call hx --health
- add -w and --working-dir options - shorten option description - dynamically call hx --health
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contrib/completion/hx.fish
Outdated
complete -c hx -s w -l working-dir -d "Specify initial working directory" -xa "(__fish_complete_directories)" | ||
|
||
function __hx_langs_ops | ||
hx --health | tail -n '+7' | awk '{print $1}' | sed 's/\x1b\[[0-9;]*m//g' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this chain needs some work too. The +7
is too small - it was probably correct at the time but we have added more information to the --health
output since. It could use hx --health languages
and chop off the header instead.
Since --health
now shows multiple language servers this also includes some check or x characters that should be removed
- remove header - remove check/x characters
* feat: improve hx fish completion - add -w and --working-dir options - shorten option description - dynamically call hx --health * feat: improve health check completion - remove header - remove check/x characters * feat: use hx --health languages in completion
* feat: improve hx fish completion - add -w and --working-dir options - shorten option description - dynamically call hx --health * feat: improve health check completion - remove header - remove check/x characters * feat: use hx --health languages in completion
* feat: improve hx fish completion - add -w and --working-dir options - shorten option description - dynamically call hx --health * feat: improve health check completion - remove header - remove check/x characters * feat: use hx --health languages in completion