doing 2.0.23 → 2.1.1pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardoc/checksums +19 -15
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +40 -1
- data/Gemfile.lock +8 -1
- data/README.md +7 -1
- data/Rakefile +23 -4
- data/bin/doing +431 -256
- data/doc/Array.html +354 -1
- data/doc/Doing/Color.html +104 -92
- data/doc/Doing/Completion.html +216 -0
- data/doc/Doing/Configuration.html +340 -5
- data/doc/Doing/Content.html +229 -0
- data/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/doc/Doing/Errors/EmptyInput.html +1 -1
- data/doc/Doing/Errors/NoResults.html +1 -1
- data/doc/Doing/Errors/PluginException.html +1 -1
- data/doc/Doing/Errors/UserCancelled.html +1 -1
- data/doc/Doing/Errors/WrongCommand.html +1 -1
- data/doc/Doing/Errors.html +1 -1
- data/doc/Doing/Hooks.html +1 -1
- data/doc/Doing/Item.html +337 -49
- data/doc/Doing/Items.html +444 -35
- data/doc/Doing/LogAdapter.html +139 -51
- data/doc/Doing/Note.html +253 -22
- data/doc/Doing/Pager.html +74 -36
- data/doc/Doing/Plugins.html +1 -1
- data/doc/Doing/Prompt.html +674 -0
- data/doc/Doing/Section.html +354 -0
- data/doc/Doing/Util.html +57 -1
- data/doc/Doing/WWID.html +517 -890
- data/doc/Doing/WWIDFile.html +398 -0
- data/doc/Doing.html +5 -5
- data/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/doc/GLI/Commands.html +1 -1
- data/doc/GLI.html +1 -1
- data/doc/Hash.html +97 -1
- data/doc/Status.html +37 -3
- data/doc/String.html +833 -53
- data/doc/Symbol.html +3 -3
- data/doc/Time.html +1 -1
- data/doc/_index.html +22 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +8 -2
- data/doc/index.html +8 -2
- data/doc/method_list.html +460 -180
- data/doc/top-level-namespace.html +1 -1
- data/doing.gemspec +3 -0
- data/doing.rdoc +163 -44
- data/example_plugin.rb +5 -5
- data/lib/completion/_doing.zsh +42 -42
- data/lib/completion/doing.bash +21 -21
- data/lib/completion/doing.fish +1 -280
- data/lib/doing/array.rb +36 -0
- data/lib/doing/colors.rb +70 -66
- data/lib/doing/completion/bash_completion.rb +1 -2
- data/lib/doing/completion/fish_completion.rb +1 -1
- data/lib/doing/completion/zsh_completion.rb +1 -1
- data/lib/doing/completion.rb +6 -0
- data/lib/doing/configuration.rb +134 -23
- data/lib/doing/hash.rb +37 -0
- data/lib/doing/item.rb +77 -12
- data/lib/doing/items.rb +125 -0
- data/lib/doing/log_adapter.rb +58 -4
- data/lib/doing/note.rb +53 -1
- data/lib/doing/pager.rb +49 -38
- data/lib/doing/plugins/export/markdown_export.rb +4 -4
- data/lib/doing/plugins/export/template_export.rb +2 -2
- data/lib/doing/plugins/import/calendar_import.rb +4 -4
- data/lib/doing/plugins/import/doing_import.rb +5 -7
- data/lib/doing/plugins/import/timing_import.rb +3 -3
- data/lib/doing/prompt.rb +206 -0
- data/lib/doing/section.rb +30 -0
- data/lib/doing/string.rb +123 -35
- data/lib/doing/string_chronify.rb +81 -0
- data/lib/doing/util.rb +14 -6
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +387 -685
- data/lib/doing.rb +7 -2
- data/lib/examples/plugins/capture_thing_import.rb +162 -0
- data/rdoc_to_mmd.rb +14 -8
- data/scripts/generate_bash_completions.rb +1 -1
- data/scripts/generate_fish_completions.rb +1 -1
- data/scripts/generate_zsh_completions.rb +1 -1
- metadata +74 -5
- data/lib/doing/wwidfile.rb +0 -117
data/lib/completion/_doing.zsh
CHANGED
|
@@ -48,7 +48,7 @@ function _doing() {
|
|
|
48
48
|
'template:Output HTML'
|
|
49
49
|
'test:Test Stuff'
|
|
50
50
|
'today:List entries from today'
|
|
51
|
-
'undo:Undo the last change to the
|
|
51
|
+
'undo:Undo the last change to the Doing file'
|
|
52
52
|
'view:Display a user-created view'
|
|
53
53
|
'views:List available custom views'
|
|
54
54
|
'wiki:Output a tag wiki'
|
|
@@ -66,22 +66,22 @@ function _doing() {
|
|
|
66
66
|
args=( )
|
|
67
67
|
;;
|
|
68
68
|
again)
|
|
69
|
-
args=(
|
|
69
|
+
args=( )
|
|
70
70
|
;;
|
|
71
71
|
resume)
|
|
72
|
-
args=(
|
|
72
|
+
args=( )
|
|
73
73
|
;;
|
|
74
74
|
archive)
|
|
75
|
-
args=(
|
|
75
|
+
args=( )
|
|
76
76
|
;;
|
|
77
77
|
move)
|
|
78
|
-
args=(
|
|
78
|
+
args=( )
|
|
79
79
|
;;
|
|
80
80
|
autotag)
|
|
81
|
-
args=(
|
|
81
|
+
args=( )
|
|
82
82
|
;;
|
|
83
83
|
cancel)
|
|
84
|
-
args=(
|
|
84
|
+
args=( )
|
|
85
85
|
;;
|
|
86
86
|
choose)
|
|
87
87
|
args=( )
|
|
@@ -90,115 +90,115 @@ function _doing() {
|
|
|
90
90
|
args=( )
|
|
91
91
|
;;
|
|
92
92
|
completion)
|
|
93
|
-
args=(
|
|
93
|
+
args=( )
|
|
94
94
|
;;
|
|
95
95
|
config)
|
|
96
|
-
args=(
|
|
96
|
+
args=( )
|
|
97
97
|
;;
|
|
98
98
|
done)
|
|
99
|
-
args=(
|
|
99
|
+
args=( )
|
|
100
100
|
;;
|
|
101
101
|
did)
|
|
102
|
-
args=(
|
|
102
|
+
args=( )
|
|
103
103
|
;;
|
|
104
104
|
finish)
|
|
105
|
-
args=(
|
|
105
|
+
args=( )
|
|
106
106
|
;;
|
|
107
107
|
grep)
|
|
108
|
-
args=(
|
|
108
|
+
args=( )
|
|
109
109
|
;;
|
|
110
110
|
search)
|
|
111
|
-
args=(
|
|
111
|
+
args=( )
|
|
112
112
|
;;
|
|
113
113
|
help)
|
|
114
114
|
args=( )
|
|
115
115
|
;;
|
|
116
116
|
import)
|
|
117
|
-
args=(
|
|
117
|
+
args=( )
|
|
118
118
|
;;
|
|
119
119
|
last)
|
|
120
|
-
args=(
|
|
120
|
+
args=( )
|
|
121
121
|
;;
|
|
122
122
|
later)
|
|
123
|
-
args=(
|
|
123
|
+
args=( )
|
|
124
124
|
;;
|
|
125
125
|
mark)
|
|
126
|
-
args=(
|
|
126
|
+
args=( )
|
|
127
127
|
;;
|
|
128
128
|
flag)
|
|
129
|
-
args=(
|
|
129
|
+
args=( )
|
|
130
130
|
;;
|
|
131
131
|
meanwhile)
|
|
132
|
-
args=(
|
|
132
|
+
args=( )
|
|
133
133
|
;;
|
|
134
134
|
note)
|
|
135
|
-
args=(
|
|
135
|
+
args=( )
|
|
136
136
|
;;
|
|
137
137
|
now)
|
|
138
|
-
args=(
|
|
138
|
+
args=( )
|
|
139
139
|
;;
|
|
140
140
|
next)
|
|
141
|
-
args=(
|
|
141
|
+
args=( )
|
|
142
142
|
;;
|
|
143
143
|
on)
|
|
144
|
-
args=(
|
|
144
|
+
args=( )
|
|
145
145
|
;;
|
|
146
146
|
open)
|
|
147
|
-
args=(
|
|
147
|
+
args=( )
|
|
148
148
|
;;
|
|
149
149
|
plugins)
|
|
150
|
-
args=(
|
|
150
|
+
args=( )
|
|
151
151
|
;;
|
|
152
152
|
recent)
|
|
153
|
-
args=(
|
|
153
|
+
args=( )
|
|
154
154
|
;;
|
|
155
155
|
reset)
|
|
156
|
-
args=(
|
|
156
|
+
args=( )
|
|
157
157
|
;;
|
|
158
158
|
begin)
|
|
159
|
-
args=(
|
|
159
|
+
args=( )
|
|
160
160
|
;;
|
|
161
161
|
rotate)
|
|
162
|
-
args=(
|
|
162
|
+
args=( )
|
|
163
163
|
;;
|
|
164
164
|
sections)
|
|
165
|
-
args=(
|
|
165
|
+
args=( )
|
|
166
166
|
;;
|
|
167
167
|
select)
|
|
168
|
-
args=(
|
|
168
|
+
args=( )
|
|
169
169
|
;;
|
|
170
170
|
show)
|
|
171
|
-
args=(
|
|
171
|
+
args=( )
|
|
172
172
|
;;
|
|
173
173
|
since)
|
|
174
|
-
args=(
|
|
174
|
+
args=( )
|
|
175
175
|
;;
|
|
176
176
|
tag)
|
|
177
|
-
args=(
|
|
177
|
+
args=( )
|
|
178
178
|
;;
|
|
179
179
|
template)
|
|
180
|
-
args=(
|
|
180
|
+
args=( )
|
|
181
181
|
;;
|
|
182
182
|
test)
|
|
183
183
|
args=( )
|
|
184
184
|
;;
|
|
185
185
|
today)
|
|
186
|
-
args=(
|
|
186
|
+
args=( )
|
|
187
187
|
;;
|
|
188
188
|
undo)
|
|
189
|
-
args=(
|
|
189
|
+
args=( )
|
|
190
190
|
;;
|
|
191
191
|
view)
|
|
192
|
-
args=(
|
|
192
|
+
args=( )
|
|
193
193
|
;;
|
|
194
194
|
views)
|
|
195
|
-
args=(
|
|
195
|
+
args=( )
|
|
196
196
|
;;
|
|
197
197
|
wiki)
|
|
198
|
-
args=(
|
|
198
|
+
args=( )
|
|
199
199
|
;;
|
|
200
200
|
yesterday)
|
|
201
|
-
args=(
|
|
201
|
+
args=( )
|
|
202
202
|
;;
|
|
203
203
|
esac
|
|
204
204
|
|
data/lib/completion/doing.bash
CHANGED
|
@@ -71,9 +71,9 @@ _doing_completion() {
|
|
|
71
71
|
_doing_config() {
|
|
72
72
|
|
|
73
73
|
if [[ "$token" == --* ]]; then
|
|
74
|
-
COMPREPLY=( $( compgen -W '--dump --
|
|
74
|
+
COMPREPLY=( $( compgen -W '--dump --update' -- $token ) )
|
|
75
75
|
elif [[ "$token" == -* ]]; then
|
|
76
|
-
COMPREPLY=( $( compgen -W '-d -
|
|
76
|
+
COMPREPLY=( $( compgen -W '-d -u --dump --update' -- $token ) )
|
|
77
77
|
|
|
78
78
|
fi
|
|
79
79
|
}
|
|
@@ -81,9 +81,9 @@ _doing_config() {
|
|
|
81
81
|
_doing_done() {
|
|
82
82
|
|
|
83
83
|
if [[ "$token" == --* ]]; then
|
|
84
|
-
COMPREPLY=( $( compgen -W '--archive --at --
|
|
84
|
+
COMPREPLY=( $( compgen -W '--archive --at --started --date --editor --note --remove --section --took --unfinished' -- $token ) )
|
|
85
85
|
elif [[ "$token" == -* ]]; then
|
|
86
|
-
COMPREPLY=( $( compgen -W '-a -
|
|
86
|
+
COMPREPLY=( $( compgen -W '-a -e -n -r -s -t -u --archive --at --started --date --editor --note --remove --section --took --unfinished' -- $token ) )
|
|
87
87
|
|
|
88
88
|
fi
|
|
89
89
|
}
|
|
@@ -101,9 +101,9 @@ _doing_finish() {
|
|
|
101
101
|
_doing_grep() {
|
|
102
102
|
|
|
103
103
|
if [[ "$token" == --* ]]; then
|
|
104
|
-
COMPREPLY=( $( compgen -W '--after --before --case --interactive --not --output --only_timed --section --times --tag_sort --totals --exact' -- $token ) )
|
|
104
|
+
COMPREPLY=( $( compgen -W '--after --before --case --from --interactive --not --output --only_timed --section --times --tag_sort --totals --exact' -- $token ) )
|
|
105
105
|
elif [[ "$token" == -* ]]; then
|
|
106
|
-
COMPREPLY=( $( compgen -W '-i -o -s -t -x --after --before --case --interactive --not --output --only_timed --section --times --tag_sort --totals --exact' -- $token ) )
|
|
106
|
+
COMPREPLY=( $( compgen -W '-i -o -s -t -x --after --before --case --from --interactive --not --output --only_timed --section --times --tag_sort --totals --exact' -- $token ) )
|
|
107
107
|
|
|
108
108
|
fi
|
|
109
109
|
}
|
|
@@ -181,9 +181,9 @@ _doing_note() {
|
|
|
181
181
|
_doing_now() {
|
|
182
182
|
|
|
183
183
|
if [[ "$token" == --* ]]; then
|
|
184
|
-
COMPREPLY=( $( compgen -W '--
|
|
184
|
+
COMPREPLY=( $( compgen -W '--started --editor --finish_last --note --section' -- $token ) )
|
|
185
185
|
elif [[ "$token" == -* ]]; then
|
|
186
|
-
COMPREPLY=( $( compgen -W '-
|
|
186
|
+
COMPREPLY=( $( compgen -W '-e -f -n -s --started --editor --finish_last --note --section' -- $token ) )
|
|
187
187
|
|
|
188
188
|
fi
|
|
189
189
|
}
|
|
@@ -201,9 +201,9 @@ _doing_on() {
|
|
|
201
201
|
_doing_open() {
|
|
202
202
|
|
|
203
203
|
if [[ "$token" == --* ]]; then
|
|
204
|
-
COMPREPLY=( $( compgen -W '--app --bundle_id' -- $token ) )
|
|
204
|
+
COMPREPLY=( $( compgen -W '--app --bundle_id --editor' -- $token ) )
|
|
205
205
|
elif [[ "$token" == -* ]]; then
|
|
206
|
-
COMPREPLY=( $( compgen -W '-a -b --app --bundle_id' -- $token ) )
|
|
206
|
+
COMPREPLY=( $( compgen -W '-a -b -e --app --bundle_id --editor' -- $token ) )
|
|
207
207
|
|
|
208
208
|
fi
|
|
209
209
|
}
|
|
@@ -261,9 +261,9 @@ _doing_sections() {
|
|
|
261
261
|
_doing_select() {
|
|
262
262
|
|
|
263
263
|
if [[ "$token" == --* ]]; then
|
|
264
|
-
COMPREPLY=( $( compgen -W '--archive --resume --cancel --case --delete --editor --finish --flag --force --move --menu --not --output --search --remove --section --save_to --tag --exact' -- $token ) )
|
|
264
|
+
COMPREPLY=( $( compgen -W '--archive --after --resume --before --cancel --case --delete --editor --finish --flag --force --from --move --menu --not --output --search --remove --section --save_to --tag --exact' -- $token ) )
|
|
265
265
|
elif [[ "$token" == -* ]]; then
|
|
266
|
-
COMPREPLY=( $( compgen -W '-a -c -d -e -f -m -o -r -s -t -x --archive --resume --cancel --case --delete --editor --finish --flag --force --move --menu --not --output --search --remove --section --save_to --tag --exact' -- $token ) )
|
|
266
|
+
COMPREPLY=( $( compgen -W '-a -c -d -e -f -m -o -r -s -t -x --archive --after --resume --before --cancel --case --delete --editor --finish --flag --force --from --move --menu --not --output --search --remove --section --save_to --tag --exact' -- $token ) )
|
|
267
267
|
|
|
268
268
|
fi
|
|
269
269
|
}
|
|
@@ -278,7 +278,7 @@ IFS="$OLD_IFS"
|
|
|
278
278
|
if [[ "$token" == --* ]]; then
|
|
279
279
|
COMPREPLY=( $( compgen -W '--age --after --bool --before --count --case --from --interactive --not --output --only_timed --sort --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
280
280
|
elif [[ "$token" == -* ]]; then
|
|
281
|
-
COMPREPLY=( $( compgen -W '-a -b -c -
|
|
281
|
+
COMPREPLY=( $( compgen -W '-a -b -c -i -o -s -t -x --age --after --bool --before --count --case --from --interactive --not --output --only_timed --sort --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
282
282
|
else
|
|
283
283
|
local nocasematchWasOff=0
|
|
284
284
|
shopt nocasematch >/dev/null || nocasematchWasOff=1
|
|
@@ -321,9 +321,9 @@ _doing_tag() {
|
|
|
321
321
|
_doing_template() {
|
|
322
322
|
|
|
323
323
|
if [[ "$token" == --* ]]; then
|
|
324
|
-
COMPREPLY=( $( compgen -W '--list' -- $token ) )
|
|
324
|
+
COMPREPLY=( $( compgen -W '--column --list' -- $token ) )
|
|
325
325
|
elif [[ "$token" == -* ]]; then
|
|
326
|
-
COMPREPLY=( $( compgen -W '-l --list' -- $token ) )
|
|
326
|
+
COMPREPLY=( $( compgen -W '-c -l --column --list' -- $token ) )
|
|
327
327
|
|
|
328
328
|
fi
|
|
329
329
|
}
|
|
@@ -331,9 +331,9 @@ _doing_template() {
|
|
|
331
331
|
_doing_today() {
|
|
332
332
|
|
|
333
333
|
if [[ "$token" == --* ]]; then
|
|
334
|
-
COMPREPLY=( $( compgen -W '--after --before --output --section --times --tag_sort --totals' -- $token ) )
|
|
334
|
+
COMPREPLY=( $( compgen -W '--after --before --from --output --section --times --tag_sort --totals' -- $token ) )
|
|
335
335
|
elif [[ "$token" == -* ]]; then
|
|
336
|
-
COMPREPLY=( $( compgen -W '-o -s -t --after --before --output --section --times --tag_sort --totals' -- $token ) )
|
|
336
|
+
COMPREPLY=( $( compgen -W '-o -s -t --after --before --from --output --section --times --tag_sort --totals' -- $token ) )
|
|
337
337
|
|
|
338
338
|
fi
|
|
339
339
|
}
|
|
@@ -356,9 +356,9 @@ local words=$(doing views)
|
|
|
356
356
|
IFS="$OLD_IFS"
|
|
357
357
|
|
|
358
358
|
if [[ "$token" == --* ]]; then
|
|
359
|
-
COMPREPLY=( $( compgen -W '--after --bool --before --count --case --color --interactive --not --output --only_timed --section --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
359
|
+
COMPREPLY=( $( compgen -W '--after --bool --before --count --case --color --from --interactive --not --output --only_timed --section --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
360
360
|
elif [[ "$token" == -* ]]; then
|
|
361
|
-
COMPREPLY=( $( compgen -W '-b -c -i -o -s -t -x --after --bool --before --count --case --color --interactive --not --output --only_timed --section --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
361
|
+
COMPREPLY=( $( compgen -W '-b -c -i -o -s -t -x --after --bool --before --count --case --color --from --interactive --not --output --only_timed --section --search --times --tag --tag_order --tag_sort --totals --exact' -- $token ) )
|
|
362
362
|
else
|
|
363
363
|
local nocasematchWasOff=0
|
|
364
364
|
shopt nocasematch >/dev/null || nocasematchWasOff=1
|
|
@@ -401,9 +401,9 @@ _doing_wiki() {
|
|
|
401
401
|
_doing_yesterday() {
|
|
402
402
|
|
|
403
403
|
if [[ "$token" == --* ]]; then
|
|
404
|
-
COMPREPLY=( $( compgen -W '--after --before --output --section --times --tag_order --tag_sort --totals' -- $token ) )
|
|
404
|
+
COMPREPLY=( $( compgen -W '--after --before --from --output --section --times --tag_order --tag_sort --totals' -- $token ) )
|
|
405
405
|
elif [[ "$token" == -* ]]; then
|
|
406
|
-
COMPREPLY=( $( compgen -W '-o -s -t --after --before --output --section --times --tag_order --tag_sort --totals' -- $token ) )
|
|
406
|
+
COMPREPLY=( $( compgen -W '-o -s -t --after --before --from --output --section --times --tag_order --tag_sort --totals' -- $token ) )
|
|
407
407
|
|
|
408
408
|
fi
|
|
409
409
|
}
|