3 # Geeknote Autocomplete plugin for Zsh
4 # Requires: Geeknote installed
5 # Author : Ján Koščo (@s7anley)
13 '--force[Do not ask about logging out.]'
18 "--editor+[Set the editor, which use to edit and create notes.]::"
23 '--title+[The note title.]::' \
24 '--content+[The note content.]::' \
25 '--tags+[One tag or the list of tags which will be added to the note.]::' \
26 '--notebook+[Set the notebook where to save note.]::' \
27 '--resource+[Add a resource to the note.]::'
32 '--note+[The name or ID from the previous search of a note to edit.]::' \
33 '--title+[Set new title of the note.]::' \
34 '--content+[Set new content of the note.]::' \
35 '--tags+[Set new list o tags for the note.]::' \
36 '--notebook+[Assign new notebook for the note.]::' \
37 '--resource+[Add a resource to the note.]::'
42 '--search+[Text to search.]::' \
43 '--tags+[Notes with which tag/tags to search.]::' \
44 '--notebook+[In which notebook search the note.]::' \
45 '--date+[Set date in format dd.mm.yyyy or date range dd.mm.yyyy-dd.mm.yyyy.]::' \
46 '--count+[How many notes show in the result list.]::' \
47 '--with-url[Add direct url of each note in results to Evernote web-version.]' \
48 '--content-search[Search by content, not by title.]' \
49 '--exact-entry[Search for exact entry of the request.]'
54 '--note+[The name or ID from the previous search of a note to show.]::' \
55 '--raw[Show the raw note body.]'
60 '--note+[The name or ID from the previous search of a note to remove.]::' \
61 '--force[Do not ask about removing.]'
70 '--title+[Set the title of new notebook.]::'
75 '--title+[Set the title of new notebook.]::' \
76 '--notebook+[The name of a notebook to rename.]::'
85 '--title+[Set the title of new tag.]::'
90 '--tagname+[The name of a tag to rename.]::' \
91 '--title+[Set the new name of tag.]::'
96 '--full[Show full information.]'
99 local -a _1st_arguments
101 'login':'Authorize in Evernote.'
102 'logout':'Logout from Evernote.'
103 'settings':'Show and edit current settings.'
104 'create':'Create note in Evernote.'
105 'edit':'Edit note in Evernote.'
106 'find':'Search notes in Evernote.'
107 'show':'Output note in the terminal.'
108 'remove':'Remove note from Evernote.'
109 'notebook-list':'Show the list of existing notebooks in your Evernote.'
110 'notebook-create':'Create new notebook.'
111 'notebook-edit':'Edit/rename notebook.'
112 'tag-list':'Show the list of existing tags in your Evernote.'
113 'tag-create':'Create new tag.'
114 'tag-edit':'Edit/rename tag.'
115 'user':'Show information about active user.'
118 _arguments '*:: :->command'
120 if (( CURRENT == 1 )); then
121 _describe -t commands "geeknote command" _1st_arguments
125 local -a _command_args