mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 03:13:29 +04:00
1fb6144432
* Add shell completion * Add shell completion to release
13 lines
559 B
Fish
13 lines
559 B
Fish
#!/usr/bin/env fish
|
|
# Fish completion script for Helix editor
|
|
|
|
set -l langs (hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g')
|
|
|
|
complete -c hx -s h -l help -d "Prints help information"
|
|
complete -c hx -l tutor -d "Loads the tutorial"
|
|
complete -c hx -l health -x -a "$langs" -d "Checks for errors in editor setup"
|
|
complete -c hx -s g -l grammar -x -a "fetch build" -d "Fetches or builds tree-sitter grammars"
|
|
complete -c hx -s v -o vv -o vvv -d "Increases logging verbosity"
|
|
complete -c hx -s V -l version -d "Prints version information"
|
|
|