add rm to completion
This commit is contained in:
parent
7dfbb88b07
commit
058ab5d062
|
@ -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]}"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue