mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Add completions for hjson
This commit is contained in:
parent
46b65a550f
commit
09541e9524
2 changed files with 15 additions and 0 deletions
|
@ -69,6 +69,7 @@ fish 3.0 is a major release which brings with it both improvements in functional
|
||||||
- `bd` (#4472)
|
- `bd` (#4472)
|
||||||
- `bower`
|
- `bower`
|
||||||
- `configure` (autoconf only)
|
- `configure` (autoconf only)
|
||||||
|
- `hjson`
|
||||||
- `j` (autojump #4344)
|
- `j` (autojump #4344)
|
||||||
- `jhipster` (#4472)
|
- `jhipster` (#4472)
|
||||||
- `kldload`
|
- `kldload`
|
||||||
|
|
14
share/completions/hjson.fish
Normal file
14
share/completions/hjson.fish
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -s j -l json -d "output formatted json"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -s c -l compact -d "output condensed json"
|
||||||
|
|
||||||
|
# these are "old-style" arguments so using `__fish_should_complete_switches` is needed
|
||||||
|
# to prevent completing them by default as regular arguments.
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-sl" -d "output the opening brace on the same line"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-quote" -d "quote all strings"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-quote=all" -d "quote all strings and keys"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-js" -d "output in JSON-compatible format"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-rt" -d "round trip comments"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-nocol" -d "disable color output"
|
||||||
|
complete -c hjson -n '__fish_should_complete_switches' -a "-cond=" -d "set condense option [default 60]"
|
||||||
|
|
||||||
|
complete -c hjson -k -xa "(__fish_complete_suffix '.{hjson,json}')"
|
Loading…
Reference in a new issue