Make hard-coded completion word lists easy to find

A quick search for `wordlist=` should be enough to find hard-coded
completions if we need to change them
This commit is contained in:
Vladimir Zhelezov 2020-12-11 10:25:24 +01:00
parent 57c79d0050
commit 985f041d81
2 changed files with 4 additions and 2 deletions

View File

@ -234,7 +234,8 @@ _hledger_compreply_optarg() {
_hledger_compreply "$(_hledger_compgen "$(_hledger accounts --flat)" "" "$match")"
;;
--debug)
_hledger_compreply "$(compgen -W "{1..9}" -- "$match")"
wordlist="{1..9}"
_hledger_compreply "$(compgen -W "$wordlist" -- "$match")"
;;
# Argument required, but no handler (yet)
-b|--begin|-e|--end|-p|--period|--depth|--drop)

View File

@ -234,7 +234,8 @@ _hledger_compreply_optarg() {
_hledger_compreply "$(_hledger_compgen "$(_hledger accounts --flat)" "" "$match")"
;;
--debug)
_hledger_compreply "$(compgen -W "{1..9}" -- "$match")"
wordlist="{1..9}"
_hledger_compreply "$(compgen -W "$wordlist" -- "$match")"
;;
# Argument required, but no handler (yet)
-b|--begin|-e|--end|-p|--period|--depth|--drop)