2# Bash completion script for Helix editor
6 # $2 word being completed
12 COMPREPLY=($(compgen -W "fetch build" -- $2))
15 local languages=$(hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g')
16 COMPREPLY=($(compgen -W "$languages" -- $2))
19 COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- $2))
22} && complete -o filenames -F _hx hx
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list