Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'contrib/completion/hx.zsh')
| -rw-r--r-- | contrib/completion/hx.zsh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/completion/hx.zsh b/contrib/completion/hx.zsh index 6ffccb18..aaad6f84 100644 --- a/contrib/completion/hx.zsh +++ b/contrib/completion/hx.zsh @@ -14,18 +14,16 @@ _hx() { "--health[Checks for errors in editor setup]:language:->health" \ "-g[Fetches or builds tree-sitter grammars]:action:->grammar" \ "--grammar[Fetches or builds tree-sitter grammars]:action:->grammar" \ - "--vsplit[Splits all given files vertically]" \ - "--hsplit[Splits all given files horizontally]" \ + "--vsplit[Splits all given files vertically into different windows]" \ + "--hsplit[Splits all given files horizontally into different windows]" \ "-c[Specifies a file to use for configuration]" \ "--config[Specifies a file to use for configuration]" \ - "-w[Specify initial working directory]" \ - "--working-dir[Specify initial working directory]" \ - "--log[Specifies a file to use for logging]" \ + "--log[Specifies a file to write log data into]" \ "*:file:_files" case "$state" in health) - local languages=($(hx --health all-languages | tail -n '+2' | awk '{print $1}' | sed 's/\x1b\[[0-9;]*m//g;s/[✘✓]//g')) + local languages=($(hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g')) _values 'language' $languages ;; grammar) @@ -33,3 +31,4 @@ _hx() { ;; esac } + |