Compare commits
No commits in common. "6370f5a58f2413fd43af5161c99089cad1beb6d5" and "8a994c20d7d81e6341147bedaa8f5963b07ce441" have entirely different histories.
6370f5a58f
...
8a994c20d7
14
src/_jrnl
14
src/_jrnl
|
|
@ -40,7 +40,6 @@
|
||||||
|
|
||||||
|
|
||||||
_jrnl() {
|
_jrnl() {
|
||||||
local ret=1
|
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'(- 1 *)'-h"[Show help and exit]" \
|
'(- 1 *)'-h"[Show help and exit]" \
|
||||||
|
|
@ -61,19 +60,6 @@ _jrnl() {
|
||||||
"--encrypt[Encrypts your existing journal with a new pass]" \
|
"--encrypt[Encrypts your existing journal with a new pass]" \
|
||||||
"--decrypt[Decrypts your journal and stores it in plain text]" \
|
"--decrypt[Decrypts your journal and stores it in plain text]" \
|
||||||
"--edit[Opens your editor to edit the selected entries.]" \
|
"--edit[Opens your editor to edit the selected entries.]" \
|
||||||
'*:: :->args' \
|
|
||||||
&& ret=0
|
|
||||||
|
|
||||||
case $state in
|
|
||||||
(args)
|
|
||||||
if [[ $PREFIX = @* ]]; then
|
|
||||||
local -a tags=($(jrnl --tags 2>/dev/null | grep -oE '@\S+'))
|
|
||||||
_describe -t tags 'tags' tags && ret=0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
return ret
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_jrnl
|
_jrnl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue