diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-02 16:23:36 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-02 16:23:36 +0200 |
| commit | c01a06e38d0b0331f459cd439ce7706ef1556e50 (patch) | |
| tree | 8bee63be92b6301d169be6113dfc3bbf16d37c9e /completion | |
| parent | 1e932e7015ac9d21a1f92ad57cd0c109f58bb29f (diff) | |
* fix infinite loop on not found
* add bash tab completion script (will have install option in the future)
* add search to tui (bound to / and ?)
Diffstat (limited to 'completion')
| -rw-r--r-- | completion/completion.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/completion/completion.sh b/completion/completion.sh new file mode 100644 index 0000000..9cbd52c --- /dev/null +++ b/completion/completion.sh @@ -0,0 +1,13 @@ +#/usr/bin/env bash +_pik_completions() +{ + QUERY="" + for word in COMP_WORDS ; do + if [[ query != "-*" ]] ; then + QUERY="$QUERY $WORD" + fi + done + COMPREPLY=($(compgen -W "$(pik --list)" "${QUERY}")) +} + +complete -F _pik_completions pik
\ No newline at end of file |
