diff --git a/home/user/.local/bin/t b/home/user/.local/bin/t index 850e17c..49f6d4d 100755 --- a/home/user/.local/bin/t +++ b/home/user/.local/bin/t @@ -20,16 +20,18 @@ cmd_help() { t - Show notes in format '[INDEX] NOTE NAME (LINES)' t show - Show notes in format '[INDEX] NOTE NAME (LINES)' - t namespaces - Show namespaces + t (INDEX) - Show note content t add (X X X) - Add note with name X X X t edit (INDEX) - Edit note with INDEX by \$EDITOR - t delete (INDEX) [INDEX] ... - Delete notes with INDEXes + t done (INDEX) [INDEX] ... - Delete notes with INDEXes + t namespaces - Show namespaces t --help - Show this message - t a - alias to add - t e - alias to edit - t d - alias to delete - t ns - alias to namespaces + t a - alias for add + t e - alias for edit + t d - alias for done + t delete - alias for done + t ns - alias for namespaces NAMESPACES @@ -170,8 +172,8 @@ fi case "${1}" in show) shift; cmd_show_notes ;; ns|namespaces) shift; cmd_show_namespaces ;; - add|a) shift; cmd_add_note "$@" ;; - delete|d) shift; cmd_delete_note "$@" ;; + a|add) shift; cmd_add_note "$@" ;; + d|done|delete) shift; cmd_delete_note "$@" ;; e|edit) shift; cmd_edit_note "$@" ;; --help) shift; cmd_help ;;