add rm to completion

master
Ingolf Wagner 2018-08-09 23:32:34 +02:00
parent 7dfbb88b07
commit 058ab5d062
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ _memo(){
local cur opt prev
MEMO_FOLDER="${MEMO_DIR:-$HOME/memo}"
opts="add copy search show list"
opts="add rm copy search show list"
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"

View File

@ -7,6 +7,7 @@ function _memo {
_arguments \
"1:action:((
add\:'add a text to a topic'
rm\:'delete a topic folder with all its content'
copy\:'copy a file to a topic'
search\:'search for text in all topics'
show\:'show a topic'
@ -17,7 +18,7 @@ function _memo {
"*::arg:->args"
case $line[1] in
add|copy|show|edit)
add|rm|copy|show|edit)
_memo_topics
;;
git)