Debian Codegraph @

contrib/completion/hx.fish

raw symbols SCIP
1 #!/usr/bin/env fish
2 # Fish completion script for Helix editor
3
4 complete -c hx -s h -l help -d "Prints help information"
5 complete -c hx -l strict -d "Bail on error for commands that can fail"
6 complete -c hx -l tutor -d "Loads the tutorial"
7 complete -c hx -l health -xa "(__hx_langs_ops)" -d "Checks for errors"
8 complete -c hx -l health -xka all -d "Prints all diagnostic informations"
9 complete -c hx -l health -xka all-languages -d "Lists all languages"
10 complete -c hx -l health -xka languages -d "Lists user configured languages"
11 complete -c hx -l health -xka clipboard -d "Prints system clipboard provider"
12 complete -c hx -s g -l grammar -x -a "fetch build" -d "Fetch or build tree-sitter grammars"
13 complete -c hx -s v -o vv -o vvv -d "Increases logging verbosity"
14 complete -c hx -s V -l version -d "Prints version information"
15 complete -c hx -l vsplit -d "Splits all given files vertically"
16 complete -c hx -l hsplit -d "Splits all given files horizontally"
17 complete -c hx -s c -l config -r -d "Specifies a file to use for config"
18 complete -c hx -l log -r -d "Specifies a file to use for logging"
19 complete -c hx -s w -l working-dir -d "Specify initial working directory" -xa "(__fish_complete_directories)"
20
21 function __hx_langs_ops
22 hx --health all-languages | tail -n '+2' | string replace -fr '^(\S+) .*' '$1'
23 end