mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
completions: add zsh completions
This commit is contained in:
parent
286db002f8
commit
6643fe5456
3 changed files with 17 additions and 0 deletions
2
completions/meson.build
Normal file
2
completions/meson.build
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions')
|
||||||
|
install_data('zsh/_foot', install_dir: zsh_install_dir)
|
||||||
14
completions/zsh/_foot
Normal file
14
completions/zsh/_foot
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#compdef foot
|
||||||
|
|
||||||
|
_arguments \
|
||||||
|
-s \
|
||||||
|
'(-v --version)'{-v,--version}'[show the version number and quit]' \
|
||||||
|
'(-h --help)'{-h,--help}'[show help message and quit]' \
|
||||||
|
'(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \
|
||||||
|
'(-g --geometry)'{-g,--geometry}'[window WIDTHxHEIGHT, in pixels (84x24 cells)]'
|
||||||
|
|
||||||
|
case "${state}" in
|
||||||
|
fonts)
|
||||||
|
_values 'font families' $(fc-list : family | tr -d ' ')
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
@ -98,4 +98,5 @@ custom_target(
|
||||||
install_data('foot.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
|
install_data('foot.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
|
||||||
install_data('footrc', install_dir: join_paths(get_option('datadir'), 'foot'))
|
install_data('footrc', install_dir: join_paths(get_option('datadir'), 'foot'))
|
||||||
|
|
||||||
|
subdir('completions')
|
||||||
subdir('doc')
|
subdir('doc')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue