mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-07 11:19:32 +03:00
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:
parent
57c79d0050
commit
985f041d81
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user