doing 2.1.58 → 2.1.60
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/CHANGELOG.md +20 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/bin/commands/done.rb +13 -4
- data/bin/commands/update.rb +37 -0
- data/bin/doing +1 -1
- data/docs/doc/Array.html +1 -1
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/ArrayCleanup.html +1 -1
- data/docs/doc/Doing/ArrayNestedHash.html +1 -1
- data/docs/doc/Doing/ArrayTags.html +1 -1
- data/docs/doc/Doing/CSVExport.html +1 -1
- data/docs/doc/Doing/CalendarImport.html +1 -1
- data/docs/doc/Doing/Change.html +1 -1
- data/docs/doc/Doing/Changes.html +1 -1
- data/docs/doc/Doing/ChronifyArray.html +1 -1
- data/docs/doc/Doing/ChronifyNumeric.html +1 -1
- data/docs/doc/Doing/ChronifyString.html +1 -1
- data/docs/doc/Doing/Color.html +1 -1
- data/docs/doc/Doing/Completion/BashCompletions.html +1 -1
- data/docs/doc/Doing/Completion/FigCompletions.html +1 -1
- data/docs/doc/Doing/Completion/FishCompletions.html +1 -1
- data/docs/doc/Doing/Completion/StringUtils.html +65 -7
- data/docs/doc/Doing/Completion/ZshCompletions.html +1 -1
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +1 -1
- data/docs/doc/Doing/DayOneRenderer.html +1 -1
- data/docs/doc/Doing/DayoneExport.html +1 -1
- data/docs/doc/Doing/DoingExport.html +1 -1
- data/docs/doc/Doing/DoingImport.html +1 -1
- data/docs/doc/Doing/Entry.html +1 -1
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/HistoryLimitError.html +1 -1
- data/docs/doc/Doing/Errors/InvalidPlugin.html +1 -1
- data/docs/doc/Doing/Errors/MissingBackupFile.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/HTMLExport.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +1 -1
- data/docs/doc/Doing/ItemDates.html +1 -1
- data/docs/doc/Doing/ItemQuery.html +1 -1
- data/docs/doc/Doing/ItemState.html +1 -1
- data/docs/doc/Doing/ItemTags.html +1 -1
- data/docs/doc/Doing/Items.html +1 -1
- data/docs/doc/Doing/JSONExport.html +1 -1
- data/docs/doc/Doing/JSONImport.html +1 -1
- data/docs/doc/Doing/Logger.html +1 -1
- data/docs/doc/Doing/MarkdownExport.html +1 -1
- data/docs/doc/Doing/Note.html +1 -1
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +1 -1
- data/docs/doc/Doing/PromptChoose.html +1 -1
- data/docs/doc/Doing/PromptFZF.html +1 -1
- data/docs/doc/Doing/PromptInput.html +1 -1
- data/docs/doc/Doing/PromptSTD.html +1 -1
- data/docs/doc/Doing/PromptYN.html +1 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/StringHighlight.html +1 -1
- data/docs/doc/Doing/StringNormalize.html +1 -1
- data/docs/doc/Doing/StringQuery.html +61 -5
- data/docs/doc/Doing/StringTags.html +1 -1
- data/docs/doc/Doing/StringTransform.html +1 -1
- data/docs/doc/Doing/StringTruncate.html +1 -1
- data/docs/doc/Doing/StringURL.html +1 -1
- data/docs/doc/Doing/SymbolNormalize.html +1 -1
- data/docs/doc/Doing/TaskPaperExport.html +1 -1
- data/docs/doc/Doing/TemplateExport.html +1 -1
- data/docs/doc/Doing/TemplateString.html +1 -1
- data/docs/doc/Doing/TimingImport.html +1 -1
- data/docs/doc/Doing/Types.html +1 -1
- data/docs/doc/Doing/Util/Backup.html +1 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/Version.html +1 -1
- data/docs/doc/Doing/WWID.html +1 -1
- data/docs/doc/Doing.html +2 -2
- data/docs/doc/FalseClass.html +1 -1
- data/docs/doc/GLI/Commands/Help.html +1 -1
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/Numeric.html +1 -1
- data/docs/doc/Object.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +1 -1
- data/docs/doc/Symbol.html +1 -1
- data/docs/doc/Time.html +1 -1
- data/docs/doc/TrueClass.html +1 -1
- data/docs/doc/_index.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/top-level-namespace.html +1 -1
- data/doing.rdoc +11 -1
- data/lib/completion/_doing.zsh +4 -0
- data/lib/completion/doing.bash +11 -0
- data/lib/completion/doing.fish +2 -0
- data/lib/completion/doing.ts +14 -0
- data/lib/doing/completion/completion_string.rb +11 -0
- data/lib/doing/string/query.rb +10 -0
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid/modify.rb +0 -1
- metadata +3 -2
data/docs/doc/Object.html
CHANGED
|
@@ -193,7 +193,7 @@ has content</p>
|
|
|
193
193
|
</div>
|
|
194
194
|
|
|
195
195
|
<div id="footer">
|
|
196
|
-
Generated on Wed Jun
|
|
196
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
197
197
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
198
198
|
0.9.27 (ruby-3.0.1).
|
|
199
199
|
</div>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div id="footer">
|
|
165
|
-
Generated on Wed Jun
|
|
165
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
166
166
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
167
167
|
0.9.27 (ruby-3.0.1).
|
|
168
168
|
</div>
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
</div>
|
|
294
294
|
|
|
295
295
|
<div id="footer">
|
|
296
|
-
Generated on Wed Jun
|
|
296
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
297
297
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
298
298
|
0.9.27 (ruby-3.0.1).
|
|
299
299
|
</div>
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
</div>
|
|
486
486
|
|
|
487
487
|
<div id="footer">
|
|
488
|
-
Generated on Wed Jun
|
|
488
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
489
489
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
490
490
|
0.9.27 (ruby-3.0.1).
|
|
491
491
|
</div>
|
|
@@ -126,7 +126,7 @@ A phrase clause generates an Elasticsearch match_phrase query.</p>
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on Wed Jun
|
|
129
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
131
131
|
0.9.27 (ruby-3.0.1).
|
|
132
132
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on Wed Jun
|
|
117
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.27 (ruby-3.0.1).
|
|
120
120
|
</div>
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
</div>
|
|
284
284
|
|
|
285
285
|
<div id="footer">
|
|
286
|
-
Generated on Wed Jun
|
|
286
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
287
287
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
288
288
|
0.9.27 (ruby-3.0.1).
|
|
289
289
|
</div>
|
data/docs/doc/PhraseParser.html
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on Wed Jun
|
|
108
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
110
|
0.9.27 (ruby-3.0.1).
|
|
111
111
|
</div>
|
data/docs/doc/Status.html
CHANGED
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
</div>
|
|
317
317
|
|
|
318
318
|
<div id="footer">
|
|
319
|
-
Generated on Wed Jun
|
|
319
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
320
320
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
321
321
|
0.9.27 (ruby-3.0.1).
|
|
322
322
|
</div>
|
data/docs/doc/String.html
CHANGED
|
@@ -616,7 +616,7 @@ be recognized, e.g. %greensomething still finds
|
|
|
616
616
|
</div>
|
|
617
617
|
|
|
618
618
|
<div id="footer">
|
|
619
|
-
Generated on Wed Jun
|
|
619
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
620
620
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
621
621
|
0.9.27 (ruby-3.0.1).
|
|
622
622
|
</div>
|
data/docs/doc/Symbol.html
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
</div>
|
|
128
128
|
|
|
129
129
|
<div id="footer">
|
|
130
|
-
Generated on Wed Jun
|
|
130
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
131
131
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
132
132
|
0.9.27 (ruby-3.0.1).
|
|
133
133
|
</div>
|
data/docs/doc/Time.html
CHANGED
|
@@ -411,7 +411,7 @@ entries get month/day/year/time</p>
|
|
|
411
411
|
</div>
|
|
412
412
|
|
|
413
413
|
<div id="footer">
|
|
414
|
-
Generated on Wed Jun
|
|
414
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
415
415
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
416
416
|
0.9.27 (ruby-3.0.1).
|
|
417
417
|
</div>
|
data/docs/doc/TrueClass.html
CHANGED
|
@@ -235,7 +235,7 @@ has content</p>
|
|
|
235
235
|
</div>
|
|
236
236
|
|
|
237
237
|
<div id="footer">
|
|
238
|
-
Generated on Wed Jun
|
|
238
|
+
Generated on Wed Jun 29 02:09:36 2022 by
|
|
239
239
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
240
240
|
0.9.27 (ruby-3.0.1).
|
|
241
241
|
</div>
|
data/docs/doc/_index.html
CHANGED
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
</div>
|
|
955
955
|
|
|
956
956
|
<div id="footer">
|
|
957
|
-
Generated on Wed Jun
|
|
957
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
958
958
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
959
959
|
0.9.27 (ruby-3.0.1).
|
|
960
960
|
</div>
|
data/docs/doc/file.README.html
CHANGED
|
@@ -67,7 +67,7 @@ you've done.</strong></p>
|
|
|
67
67
|
|
|
68
68
|
<!--README-->
|
|
69
69
|
|
|
70
|
-
<p>The current version of <code>doing</code> is <!--VER-->2.1.
|
|
70
|
+
<p>The current version of <code>doing</code> is <!--VER-->2.1.58<!--END VER-->.</p>
|
|
71
71
|
|
|
72
72
|
<p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
|
|
73
73
|
|
|
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
|
|
|
149
149
|
</div></div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on Wed Jun
|
|
152
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.9.27 (ruby-3.0.1).
|
|
155
155
|
</div>
|
data/docs/doc/index.html
CHANGED
|
@@ -67,7 +67,7 @@ you've done.</strong></p>
|
|
|
67
67
|
|
|
68
68
|
<!--README-->
|
|
69
69
|
|
|
70
|
-
<p>The current version of <code>doing</code> is <!--VER-->2.1.
|
|
70
|
+
<p>The current version of <code>doing</code> is <!--VER-->2.1.58<!--END VER-->.</p>
|
|
71
71
|
|
|
72
72
|
<p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
|
|
73
73
|
|
|
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
|
|
|
149
149
|
</div></div>
|
|
150
150
|
|
|
151
151
|
<div id="footer">
|
|
152
|
-
Generated on Wed Jun
|
|
152
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
154
154
|
0.9.27 (ruby-3.0.1).
|
|
155
155
|
</div>
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
</div>
|
|
217
217
|
|
|
218
218
|
<div id="footer">
|
|
219
|
-
Generated on Wed Jun
|
|
219
|
+
Generated on Wed Jun 29 02:09:35 2022 by
|
|
220
220
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
221
221
|
0.9.27 (ruby-3.0.1).
|
|
222
222
|
</div>
|
data/doing.rdoc
CHANGED
|
@@ -5,7 +5,7 @@ record of what you've been doing, complete with tag-based time tracking. The
|
|
|
5
5
|
command line tool allows you to add entries, annotate with tags and notes, and
|
|
6
6
|
view your entries with myriad options, with a focus on a "natural" language syntax.
|
|
7
7
|
|
|
8
|
-
v2.1.
|
|
8
|
+
v2.1.60
|
|
9
9
|
|
|
10
10
|
=== Global Options
|
|
11
11
|
=== --config_file arg
|
|
@@ -3009,6 +3009,16 @@ Redo last undo. Note: you cannot undo a redo
|
|
|
3009
3009
|
|
|
3010
3010
|
|
|
3011
3011
|
|
|
3012
|
+
==== Command: <tt>update </tt>
|
|
3013
|
+
Update doing to the latest version
|
|
3014
|
+
|
|
3015
|
+
Checks for the latest available version of doing and updates your local install if needed.
|
|
3016
|
+
===== Options
|
|
3017
|
+
===== -p|--pre|--beta
|
|
3018
|
+
Check for pre-release version
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
3012
3022
|
==== Command: <tt>view VIEW_NAME</tt>
|
|
3013
3023
|
Display a user-created view
|
|
3014
3024
|
|
data/lib/completion/_doing.zsh
CHANGED
|
@@ -52,6 +52,7 @@ function _doing() {
|
|
|
52
52
|
'test:Test Stuff'
|
|
53
53
|
'today:List entries from today'
|
|
54
54
|
'undo:Undo the last X changes to the Doing file'
|
|
55
|
+
'update:Update doing to the latest version'
|
|
55
56
|
'view:Display a user-created view'
|
|
56
57
|
'views:List available custom views'
|
|
57
58
|
'wiki:Output a tag wiki'
|
|
@@ -200,6 +201,9 @@ function _doing() {
|
|
|
200
201
|
undo)
|
|
201
202
|
args=( {'(--file)-f','(-f)--file'}"[Specify alternate doing file]:PATH:" {'(--interactive)-i','(-i)--interactive'}"[Select from recent backups]" {'(--prune)-p','(-p)--prune'}"[Remove old backups]:COUNT:" {'(--redo)-r','(-r)--redo'}"[Redo last undo]" )
|
|
202
203
|
;;
|
|
204
|
+
update)
|
|
205
|
+
args=( "--beta[Check for pre-release version]" )
|
|
206
|
+
;;
|
|
203
207
|
view)
|
|
204
208
|
args=( "--after[Show entries newer than date]:DATE_STRING:" "--age[Age]:AGE:" "--before[Show entries older than date]:DATE_STRING:" "--bool[Boolean used to combine multiple tags]:BOOLEAN:" {'(--count)-c','(-c)--count'}"[Count to display]:COUNT:" "--case[Case sensitivity for search string matching [(c)ase-sensitive]:TYPE:" "--color[Include colors in output]" "--config_template[Output using a template from configuration]:TEMPLATE_KEY:" "--duration[Show elapsed time on entries without @done tag]" "--from[Date range]:DATE_OR_RANGE:" {'(--hilite)-h','(-h)--hilite'}"[Highlight search matches in output]" {'(--interactive)-i','(-i)--interactive'}"[Select from a menu of matching entries to perform additional operations]" "--not[Show items that *don't* match search/tag filters]" {'(--output)-o','(-o)--output'}"[Output to export format]:FORMAT:" "--only_timed[Only show items with recorded time intervals]" {'(--section)-s','(-s)--section'}"[Section]:NAME:" "--search[Filter entries using a search query]:QUERY:" {'(--times)-t','(-t)--times'}"[Show time intervals on @done tasks]" "--tag[Filter entries by tag]:TAG:" "--tag_order[Tag sort direction]:DIRECTION:" "--tag_sort[Sort tags by]:KEY:" "--template[Override output format with a template string containing %placeholders]:TEMPLATE_STRING:" "--totals[Show intervals with totals at the end of output]" "--val[Perform a tag value query]:QUERY:" {'(--exact)-x','(-x)--exact'}"[Force exact search string matching]" )
|
|
205
209
|
;;
|
data/lib/completion/doing.bash
CHANGED
|
@@ -368,6 +368,16 @@ _doing_undo() {
|
|
|
368
368
|
fi
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
+
_doing_update() {
|
|
372
|
+
|
|
373
|
+
if [[ "$token" == --* ]]; then
|
|
374
|
+
COMPREPLY=( $( compgen -W '--beta' -- $token ) )
|
|
375
|
+
elif [[ "$token" == -* ]]; then
|
|
376
|
+
COMPREPLY=( $( compgen -W ' --beta' -- $token ) )
|
|
377
|
+
|
|
378
|
+
fi
|
|
379
|
+
}
|
|
380
|
+
|
|
371
381
|
_doing_view() {
|
|
372
382
|
OLD_IFS="$IFS"
|
|
373
383
|
local token=${COMP_WORDS[$COMP_CWORD]}
|
|
@@ -466,6 +476,7 @@ _doing()
|
|
|
466
476
|
elif [[ $last =~ (template) ]]; then _doing_template
|
|
467
477
|
elif [[ $last =~ (today) ]]; then _doing_today
|
|
468
478
|
elif [[ $last =~ (undo) ]]; then _doing_undo
|
|
479
|
+
elif [[ $last =~ (update) ]]; then _doing_update
|
|
469
480
|
elif [[ $last =~ (view) ]]; then _doing_view
|
|
470
481
|
elif [[ $last =~ (views) ]]; then _doing_views
|
|
471
482
|
elif [[ $last =~ (wiki) ]]; then _doing_wiki
|
data/lib/completion/doing.fish
CHANGED
|
@@ -172,6 +172,7 @@ complete -xc doing -n '__fish_doing_needs_command' -a 'template' -d Output\ HTML
|
|
|
172
172
|
complete -xc doing -n '__fish_doing_needs_command' -a 'test' -d Test\ Stuff
|
|
173
173
|
complete -xc doing -n '__fish_doing_needs_command' -a 'today' -d List\ entries\ from\ today
|
|
174
174
|
complete -xc doing -n '__fish_doing_needs_command' -a 'undo' -d Undo\ the\ last\ X\ changes\ to\ the\ Doing\ file
|
|
175
|
+
complete -xc doing -n '__fish_doing_needs_command' -a 'update' -d Update\ doing\ to\ the\ latest\ version
|
|
175
176
|
complete -xc doing -n '__fish_doing_needs_command' -a 'view' -d Display\ a\ user-created\ view
|
|
176
177
|
complete -xc doing -n '__fish_doing_needs_command' -a 'views' -d List\ available\ custom\ views
|
|
177
178
|
complete -xc doing -n '__fish_doing_needs_command' -a 'wiki' -d Output\ a\ tag\ wiki
|
|
@@ -559,6 +560,7 @@ complete -c doing -l file -s f -f -r -n '__fish_doing_using_command undo' -d Spe
|
|
|
559
560
|
complete -c doing -l interactive -s i -f -n '__fish_doing_using_command undo' -d Select\ from\ recent\ backups
|
|
560
561
|
complete -c doing -l prune -s p -f -r -n '__fish_doing_using_command undo' -d Remove\ old\ backups
|
|
561
562
|
complete -c doing -l redo -s r -f -n '__fish_doing_using_command undo' -d Redo\ last\ undo
|
|
563
|
+
complete -c doing -l beta -f -n '__fish_doing_using_command update' -d Check\ for\ pre-release\ version
|
|
562
564
|
complete -c doing -l after -f -r -n '__fish_doing_using_command view' -d Show\ entries\ newer\ than\ date
|
|
563
565
|
complete -c doing -l age -f -r -n '__fish_doing_using_command view' -d Age
|
|
564
566
|
complete -c doing -l before -f -r -n '__fish_doing_using_command view' -d Show\ entries\ older\ than\ date
|
data/lib/completion/doing.ts
CHANGED
|
@@ -4463,6 +4463,20 @@ const completionSpec: Fig.Spec = {
|
|
|
4463
4463
|
|
|
4464
4464
|
},
|
|
4465
4465
|
|
|
4466
|
+
{
|
|
4467
|
+
name: "update",
|
|
4468
|
+
description: "Update doing to the latest version",
|
|
4469
|
+
options: [
|
|
4470
|
+
{
|
|
4471
|
+
name: ["--beta"],
|
|
4472
|
+
description: "Check for pre-release version",
|
|
4473
|
+
|
|
4474
|
+
},
|
|
4475
|
+
|
|
4476
|
+
],
|
|
4477
|
+
|
|
4478
|
+
},
|
|
4479
|
+
|
|
4466
4480
|
{
|
|
4467
4481
|
name: "view",
|
|
4468
4482
|
description: "Display a user-created view",
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
module Doing
|
|
2
2
|
module Completion
|
|
3
3
|
module StringUtils
|
|
4
|
+
|
|
5
|
+
##
|
|
6
|
+
## Get short description for command completion
|
|
7
|
+
##
|
|
8
|
+
## @return [String] Short description
|
|
9
|
+
##
|
|
4
10
|
def short_desc
|
|
5
11
|
split(/[,.]/)[0].sub(/ \(.*?\)?$/, '').strip
|
|
6
12
|
end
|
|
7
13
|
|
|
14
|
+
##
|
|
15
|
+
## Truncate string from left
|
|
16
|
+
##
|
|
17
|
+
## @param max The maximum number of characters
|
|
18
|
+
##
|
|
8
19
|
def ltrunc(max)
|
|
9
20
|
if length > max
|
|
10
21
|
sub(/^.*?(.{#{max - 3}})$/, '...\1')
|
data/lib/doing/string/query.rb
CHANGED
|
@@ -85,6 +85,11 @@ module Doing
|
|
|
85
85
|
Regexp.new(pattern, !case_sensitive)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
##
|
|
89
|
+
## Returns a phrase query (elastic search) representation of the object as a phrase parser.
|
|
90
|
+
##
|
|
91
|
+
## @return Phrase query representation of the object.
|
|
92
|
+
##
|
|
88
93
|
def to_phrase_query
|
|
89
94
|
parser = PhraseParser::QueryParser.new
|
|
90
95
|
transformer = PhraseParser::QueryTransformer.new
|
|
@@ -92,6 +97,11 @@ module Doing
|
|
|
92
97
|
transformer.apply(parse_tree).to_elasticsearch
|
|
93
98
|
end
|
|
94
99
|
|
|
100
|
+
##
|
|
101
|
+
## Returns a query (elastic search) representation of the object as a boolean term parser.
|
|
102
|
+
##
|
|
103
|
+
## @return Query representation of the object.
|
|
104
|
+
##
|
|
95
105
|
def to_query
|
|
96
106
|
parser = BooleanTermParser::QueryParser.new
|
|
97
107
|
transformer = BooleanTermParser::QueryTransformer.new
|
data/lib/doing/version.rb
CHANGED
data/lib/doing/wwid/modify.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: doing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.60
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Terpstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-06-
|
|
11
|
+
date: 2022-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: github-markup
|
|
@@ -470,6 +470,7 @@ files:
|
|
|
470
470
|
- bin/commands/template.rb
|
|
471
471
|
- bin/commands/today.rb
|
|
472
472
|
- bin/commands/undo.rb
|
|
473
|
+
- bin/commands/update.rb
|
|
473
474
|
- bin/commands/view.rb
|
|
474
475
|
- bin/commands/views.rb
|
|
475
476
|
- bin/commands/yesterday.rb
|