add rm to completion
parent
7dfbb88b07
commit
058ab5d062
|
@ -4,7 +4,7 @@ _memo(){
|
||||||
local cur opt prev
|
local cur opt prev
|
||||||
|
|
||||||
MEMO_FOLDER="${MEMO_DIR:-$HOME/memo}"
|
MEMO_FOLDER="${MEMO_DIR:-$HOME/memo}"
|
||||||
opts="add copy search show list"
|
opts="add rm copy search show list"
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
|
|
@ -7,6 +7,7 @@ function _memo {
|
||||||
_arguments \
|
_arguments \
|
||||||
"1:action:((
|
"1:action:((
|
||||||
add\:'add a text to a topic'
|
add\:'add a text to a topic'
|
||||||
|
rm\:'delete a topic folder with all its content'
|
||||||
copy\:'copy a file to a topic'
|
copy\:'copy a file to a topic'
|
||||||
search\:'search for text in all topics'
|
search\:'search for text in all topics'
|
||||||
show\:'show a topic'
|
show\:'show a topic'
|
||||||
|
@ -17,7 +18,7 @@ function _memo {
|
||||||
"*::arg:->args"
|
"*::arg:->args"
|
||||||
|
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
add|copy|show|edit)
|
add|rm|copy|show|edit)
|
||||||
_memo_topics
|
_memo_topics
|
||||||
;;
|
;;
|
||||||
git)
|
git)
|
||||||
|
|
Loading…
Reference in New Issue