c74681a1990c66205e27d803f3d3740b0bbb7202
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/geeknote/README.md b/plugins/geeknote/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..a6b50e27f0a7a2df2299ff6f35bf40e1f9292901
4--- /dev/null
5+++ b/plugins/geeknote/README.md
6@@ -0,0 +1,12 @@
7+## ZSH-Geeknote
8+
9+[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for [oh-my-zsh framework](http://github.com/robbyrussell/oh-my-zsh).
10+
11+Plugins provides:
12+
13+- auto completion of commands and their options
14+- alias `gn`
15+
16+You can find information how to install Geeknote and it's available commands on the [project website](http://www.geeknote.me/).
17+
18+Maintainer : Ján Koščo ([@s7anley](https://twitter.com/s7anley))
19diff --git a/plugins/geeknote/_geeknote b/plugins/geeknote/_geeknote
20new file mode 100644
21index 0000000000000000000000000000000000000000..cf1a187d252bc34ac4a5135539fc2ba84feda443
22--- /dev/null
23+++ b/plugins/geeknote/_geeknote
24@@ -0,0 +1,136 @@
25+#compdef geeknote
26+# --------------- ------------------------------------------------------------
27+# Name : _geeknote
28+# Synopsis : zsh completion for geeknote
29+# Author : Ján Koščo <3k.stanley@gmail.com>
30+# HomePage : http://www.geeknote.me
31+# Version : 0.1
32+# Tag : [ shell, zsh, completion, evernote ]
33+# Copyright : © 2014 by Ján Koščo,
34+# Released under current GPL license.
35+# --------------- ------------------------------------------------------------
36+
37+local -a _1st_arguments
38+_1st_arguments=(
39+ 'login'
40+ 'logout'
41+ 'settings'
42+ 'create'
43+ 'edit'
44+ 'find'
45+ 'show'
46+ 'remove'
47+ 'notebook-list'
48+ 'notebook-create'
49+ 'notebook-edit'
50+ 'tag-list'
51+ 'tag-create'
52+ 'tag-edit'
53+ 'tag-remove'
54+ 'gnsync'
55+ 'user'
56+)
57+
58+_arguments '*:: :->command'
59+
60+if (( CURRENT == 1 )); then
61+ _describe -t commands "geeknote command" _1st_arguments
62+ return
63+fi
64+
65+local -a _command_args
66+case "$words[1]" in
67+ user)
68+ _command_args=(
69+ '(--full)--full' \
70+ )
71+ ;;
72+ logout)
73+ _command_args=(
74+ '(--force)--force' \
75+ )
76+ ;;
77+ settings)
78+ _command_args=(
79+ '(--editor)--editor' \
80+ )
81+ ;;
82+ create)
83+ _command_args=(
84+ '(-t|--title)'{-t,--title}'[note title]' \
85+ '(-c|--content)'{-c,--content}'[note content]' \
86+ '(-tg|--tags)'{-tg,--tags}'[one tag or the list of tags which will be added to the note]' \
87+ '(-nb|--notebook)'{-nb,--notebook}'[name of notebook where to save note]' \
88+ )
89+ ;;
90+ edit)
91+ _command_args=(
92+ '(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \
93+ '(-t|--title)'{-t,--title}'[note title]' \
94+ '(-c|--content)'{-c,--content}'[note content]' \
95+ '(-tg|--tags)'{-tg,--tags}'[one tag or the list of tags which will be added to the note]' \
96+ '(-nb|--notebook)'{-nb,--notebook}'[name of notebook where to save note]' \
97+ )
98+ ;;
99+ remove)
100+ _command_args=(
101+ '(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \
102+ '(--force)--force' \
103+ )
104+ ;;
105+ show)
106+ _command_args=(
107+ '(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \
108+ )
109+ ;;
110+ find)
111+ _command_args=(
112+ '(-s|--search)'{-s,--search}'[text to search]' \
113+ '(-tg|--tags)'{-tg,--tags}'[notes with which tag/tags to search]' \
114+ '(-nb|--notebook)'{-nb,--notebook}'[in which notebook search the note]' \
115+ '(-d|--date)'{-d,--date}'[date in format dd.mm.yyyy or date range dd.mm.yyyy-dd.mm.yyyy]' \
116+ '(-cn|--count)'{-cn,--count}'[how many notes show in the result list]' \
117+ '(-uo|--url-only)'{-uo,--url-only}'[add direct url of each note in results to Evernote web-version]' \
118+ '(-ee|--exact-entry)'{-ee,--exact-entry}'[search for exact entry of the request]' \
119+ '(-cs|--content-search)'{-cs,--content-search}'[search by content, not by title]' \
120+ )
121+ ;;
122+ notebook-create)
123+ _command_args=(
124diff --git a/plugins/geeknote/geeknote.plugin.zsh b/plugins/geeknote/geeknote.plugin.zsh
125new file mode 100644
126index 0000000000000000000000000000000000000000..8126d26b33e0cf2e3d6444b3e8a706995e183dfa
127--- /dev/null
128+++ b/plugins/geeknote/geeknote.plugin.zsh
129@@ -0,0 +1,2 @@
130+#Alias
131+alias gn='geeknote'