doing 2.1.46 → 2.1.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/bin/commands/completion.rb +1 -1
  6. data/bin/commands/config.rb +1 -1
  7. data/bin/commands/last.rb +1 -1
  8. data/bin/commands/now.rb +2 -1
  9. data/bin/commands/recent.rb +1 -1
  10. data/docs/doc/Array.html +1 -1
  11. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  12. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  13. data/docs/doc/BooleanTermParser/Query.html +1 -1
  14. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  15. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  16. data/docs/doc/BooleanTermParser.html +1 -1
  17. data/docs/doc/Doing/ArrayCleanup.html +1 -1
  18. data/docs/doc/Doing/ArrayNestedHash.html +1 -1
  19. data/docs/doc/Doing/ArrayTags.html +1 -1
  20. data/docs/doc/Doing/CSVExport.html +1 -1
  21. data/docs/doc/Doing/CalendarImport.html +1 -1
  22. data/docs/doc/Doing/Change.html +1 -1
  23. data/docs/doc/Doing/Changes.html +1 -1
  24. data/docs/doc/Doing/ChronifyArray.html +1 -1
  25. data/docs/doc/Doing/ChronifyNumeric.html +1 -1
  26. data/docs/doc/Doing/ChronifyString.html +1 -1
  27. data/docs/doc/Doing/Color.html +1 -1
  28. data/docs/doc/Doing/Completion/BashCompletions.html +1 -1
  29. data/docs/doc/Doing/Completion/FigCompletions.html +445 -0
  30. data/docs/doc/Doing/Completion/FishCompletions.html +1 -1
  31. data/docs/doc/Doing/Completion/StringUtils.html +1 -1
  32. data/docs/doc/Doing/Completion/ZshCompletions.html +1 -1
  33. data/docs/doc/Doing/Completion.html +5 -5
  34. data/docs/doc/Doing/Configuration.html +1 -1
  35. data/docs/doc/Doing/DayOneRenderer.html +1 -1
  36. data/docs/doc/Doing/DayoneExport.html +1 -1
  37. data/docs/doc/Doing/DoingExport.html +206 -0
  38. data/docs/doc/Doing/DoingImport.html +1 -1
  39. data/docs/doc/Doing/Entry.html +1 -1
  40. data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  41. data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  42. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  43. data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
  44. data/docs/doc/Doing/Errors/HistoryLimitError.html +1 -1
  45. data/docs/doc/Doing/Errors/InvalidPlugin.html +1 -1
  46. data/docs/doc/Doing/Errors/MissingBackupFile.html +1 -1
  47. data/docs/doc/Doing/Errors/NoResults.html +1 -1
  48. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  49. data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
  50. data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
  51. data/docs/doc/Doing/Errors.html +1 -1
  52. data/docs/doc/Doing/HTMLExport.html +1 -1
  53. data/docs/doc/Doing/Hooks.html +1 -1
  54. data/docs/doc/Doing/Item.html +1 -1
  55. data/docs/doc/Doing/ItemDates.html +1 -1
  56. data/docs/doc/Doing/ItemQuery.html +1 -1
  57. data/docs/doc/Doing/ItemState.html +1 -1
  58. data/docs/doc/Doing/ItemTags.html +1 -1
  59. data/docs/doc/Doing/Items.html +1 -1
  60. data/docs/doc/Doing/JSONExport.html +1 -1
  61. data/docs/doc/Doing/JSONImport.html +295 -0
  62. data/docs/doc/Doing/Logger.html +1 -1
  63. data/docs/doc/Doing/MarkdownExport.html +1 -1
  64. data/docs/doc/Doing/Note.html +1 -1
  65. data/docs/doc/Doing/Pager.html +1 -1
  66. data/docs/doc/Doing/Plugins.html +1 -1
  67. data/docs/doc/Doing/Prompt.html +1 -1
  68. data/docs/doc/Doing/PromptChoose.html +1 -1
  69. data/docs/doc/Doing/PromptFZF.html +1 -1
  70. data/docs/doc/Doing/PromptInput.html +1 -1
  71. data/docs/doc/Doing/PromptSTD.html +1 -1
  72. data/docs/doc/Doing/PromptYN.html +1 -1
  73. data/docs/doc/Doing/Section.html +1 -1
  74. data/docs/doc/Doing/StringHighlight.html +1 -1
  75. data/docs/doc/Doing/StringNormalize.html +1 -1
  76. data/docs/doc/Doing/StringQuery.html +1 -1
  77. data/docs/doc/Doing/StringTags.html +1 -1
  78. data/docs/doc/Doing/StringTransform.html +1 -1
  79. data/docs/doc/Doing/StringTruncate.html +1 -1
  80. data/docs/doc/Doing/StringURL.html +1 -1
  81. data/docs/doc/Doing/SymbolNormalize.html +1 -1
  82. data/docs/doc/Doing/TaskPaperExport.html +1 -1
  83. data/docs/doc/Doing/TemplateExport.html +1 -1
  84. data/docs/doc/Doing/TemplateString.html +1 -1
  85. data/docs/doc/Doing/TimingImport.html +1 -1
  86. data/docs/doc/Doing/Types.html +1 -1
  87. data/docs/doc/Doing/Util/Backup.html +1 -1
  88. data/docs/doc/Doing/Util.html +1 -1
  89. data/docs/doc/Doing/Version.html +1 -1
  90. data/docs/doc/Doing/WWID.html +1 -1
  91. data/docs/doc/Doing.html +4 -4
  92. data/docs/doc/FalseClass.html +1 -1
  93. data/docs/doc/GLI/Commands/Help.html +1 -1
  94. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  95. data/docs/doc/GLI/Commands.html +1 -1
  96. data/docs/doc/GLI.html +1 -1
  97. data/docs/doc/Hash.html +1 -1
  98. data/docs/doc/Numeric.html +1 -1
  99. data/docs/doc/Object.html +1 -1
  100. data/docs/doc/PhraseParser/Operator.html +1 -1
  101. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  102. data/docs/doc/PhraseParser/Query.html +1 -1
  103. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  104. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  105. data/docs/doc/PhraseParser/TermClause.html +1 -1
  106. data/docs/doc/PhraseParser.html +1 -1
  107. data/docs/doc/Status.html +1 -1
  108. data/docs/doc/String.html +2 -2
  109. data/docs/doc/Symbol.html +1 -1
  110. data/docs/doc/Time.html +1 -1
  111. data/docs/doc/TrueClass.html +1 -1
  112. data/docs/doc/_index.html +15 -1
  113. data/docs/doc/class_list.html +1 -1
  114. data/docs/doc/file.README.html +2 -2
  115. data/docs/doc/index.html +2 -2
  116. data/docs/doc/method_list.html +662 -590
  117. data/docs/doc/top-level-namespace.html +1 -1
  118. data/doing.rdoc +18 -18
  119. data/doing.ts +5911 -0
  120. data/export.doing +0 -0
  121. data/lib/completion/_doing.zsh +31 -31
  122. data/lib/completion/doing.ts +4942 -0
  123. data/lib/doing/add_options.rb +1 -1
  124. data/lib/doing/completion/fig_completion.rb +121 -0
  125. data/lib/doing/completion.rb +14 -4
  126. data/lib/doing/plugin_manager.rb +1 -1
  127. data/lib/doing/plugins/export/doing_export.rb +37 -0
  128. data/lib/doing/plugins/export/template_export.rb +4 -2
  129. data/lib/doing/plugins/import/doing_import.rb +17 -6
  130. data/lib/doing/plugins/import/json_import.rb +1 -0
  131. data/lib/doing/version.rb +1 -1
  132. data/lib/doing/wwid/interactive.rb +2 -1
  133. data/lib/doing/wwid/modify.rb +7 -10
  134. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e436ed811fa6f51694c00dcc0b6abd9017c141088240288bb8167cd51982881
4
- data.tar.gz: a130ffd750169719c00d26fc0e849d41dc09da76c70e194cd1b1a66f42a5ea65
3
+ metadata.gz: 416a1a8f70d441d7ec2d8d9d47f6023350317905081d0304a46d5e32a6472702
4
+ data.tar.gz: 05bcac9dcafb90ee2da935e99b89bfe4fe8ea404802587b64db23c8cae25aeee
5
5
  SHA512:
6
- metadata.gz: f456e3b74c6fd966eca69669acb037e4a9f57b164c28cf1421c3355de642f80a84c3ec944b68cd075cff552aba8432bb718ccc5f60ab9d7201e2c0e4f4cec6c8
7
- data.tar.gz: dcb350b567a6683d7b2676fc2f8ee0a2cf8b596722652c9f6038333475aed89711ded5b9a02a6b61ae121dd96152b9c38df68492a3b5dcd79bb83ab32204308d
6
+ metadata.gz: 010762d82e391683990bad3adbde20bb644d6eb0ca752f61e855e14663e5fa2f71dd3650cd7e60c52dd8bb59ec1151d8e40163426cf80e8dff9bce09fe9531df
7
+ data.tar.gz: ab40e3fb5a097394f39a4934244b39c24759962ef029de05c8380a07f9b974c08d9c513809fb1da327a6217360cab679de8d32739a611f8128e9132c754f9a16
data/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ### 2.1.49
2
+
3
+ 2022-05-12 08:49
4
+
5
+ #### FIXED
6
+
7
+ - When using `doing again`, don't replace an existing @done tag on the entry to be repeated
8
+
9
+ ### 2.1.48
10
+
11
+ 2022-05-11 10:13
12
+
13
+ #### FIXED
14
+
15
+ - `doing now --finish_last` not finishing most recent entry
16
+ - `doing now --from` not parsing finish date from time range
17
+
18
+ ### 2.1.47
19
+
20
+ 2022-03-26 11:12
21
+
22
+ #### IMPROVED
23
+
24
+ - `--output doing` now outputs true Doing file format, including IDs, so existing entries can be updated when re-importing this output
25
+ - Add `doing config open` as a synonym for `edit`
26
+ - Help output for `--bool` flag
27
+
1
28
  ### 2.1.46
2
29
 
3
30
  2022-03-23 08:19
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.46)
4
+ doing (2.1.49)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
7
  gli (~> 2.20, >= 2.20.1)
data/README.md CHANGED
@@ -8,7 +8,7 @@ _If you're one of the rare people like me who find this useful, feel free to
8
8
 
9
9
  <!--README-->
10
10
 
11
- The current version of `doing` is <!--VER-->2.1.45<!--END VER-->.
11
+ The current version of `doing` is <!--VER-->2.1.48<!--END VER-->.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  SHELLS = %w[zsh bash fish all].freeze
4
- SHELL_RX = /^(?:[bzf](?:[ai]?sh)?|all)$/i.freeze
4
+ SHELL_RX = /^(?:[bzf](?:[ai]?sh)?|fig|all)$/i.freeze
5
5
 
6
6
  # @@completion
7
7
  desc 'Generate shell completion scripts for doing'
@@ -37,7 +37,7 @@ command :config do |c|
37
37
 
38
38
  # @@config.edit
39
39
  c.desc 'Open config file in editor'
40
- c.command :edit do |edit|
40
+ c.command %i[edit open] do |edit|
41
41
  edit.example 'doing config edit', desc: 'Open a config file in the default editor'
42
42
  edit.example 'doing config edit --editor vim', desc: 'Open config in specific editor'
43
43
 
data/bin/commands/last.rb CHANGED
@@ -70,7 +70,7 @@ command :last do |c|
70
70
  bool: options[:bool],
71
71
  val: options[:val]
72
72
  })
73
- Doing::Pager::page last.strip if last
73
+ Doing::Pager.page last.strip if last
74
74
  Doing.config.save_view(options.to_view, options[:save].downcase) if options[:save]
75
75
  end
76
76
  end
data/bin/commands/now.rb CHANGED
@@ -19,7 +19,8 @@ module Doing
19
19
  options[:date] = options[:back]
20
20
  elsif options[:from]
21
21
  options[:date], finish_date = options[:from]
22
- options[:done] = finish_date
22
+ finish_date = finish_date.is_a?(String) ? finish_date.chronify(guess: :end, context: :today) : finish_date
23
+ options[:done] = finish_date.strftime('%F %R')
23
24
  else
24
25
  options[:date] = Time.now
25
26
  end
@@ -53,7 +53,7 @@ command :recent do |c|
53
53
  template: options[:template]
54
54
  }
55
55
 
56
- Doing::Pager::page @wwid.recent(count, section.cap_first, opts)
56
+ Doing::Pager.page @wwid.recent(count, section.cap_first, opts)
57
57
  opts[:count] = count
58
58
  opts[:title] = options[:title]
59
59
  Doing.config.save_view(opts.to_view, options[:save].downcase) if options[:save]
data/docs/doc/Array.html CHANGED
@@ -288,7 +288,7 @@ has content</p>
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Wed Mar 23 08:25:51 2022 by
291
+ Generated on Thu May 12 08:56:16 2022 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
293
  0.9.27 (ruby-3.0.1).
294
294
  </div>
@@ -283,7 +283,7 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Wed Mar 23 08:25:52 2022 by
286
+ Generated on Thu May 12 08:56:17 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>
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Wed Mar 23 08:25:52 2022 by
165
+ Generated on Thu May 12 08:56:17 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>
@@ -407,7 +407,7 @@
407
407
  </div>
408
408
 
409
409
  <div id="footer">
410
- Generated on Wed Mar 23 08:25:52 2022 by
410
+ Generated on Thu May 12 08:56:17 2022 by
411
411
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
412
412
  0.9.27 (ruby-3.0.1).
413
413
  </div>
@@ -125,7 +125,7 @@ parser. In order to do that, a new &quot;clause&quot; node is added to the parse
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Wed Mar 23 08:25:52 2022 by
128
+ Generated on Thu May 12 08:56:17 2022 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.27 (ruby-3.0.1).
131
131
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Wed Mar 23 08:25:52 2022 by
117
+ Generated on Thu May 12 08:56:17 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>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Wed Mar 23 08:25:51 2022 by
108
+ Generated on Thu May 12 08:56:16 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>
@@ -306,7 +306,7 @@ removes empty elements</p>
306
306
  </div>
307
307
 
308
308
  <div id="footer">
309
- Generated on Wed Mar 23 08:25:51 2022 by
309
+ Generated on Thu May 12 08:56:16 2022 by
310
310
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
311
311
  0.9.27 (ruby-3.0.1).
312
312
  </div>
@@ -188,7 +188,7 @@
188
188
  </div>
189
189
 
190
190
  <div id="footer">
191
- Generated on Wed Mar 23 08:25:51 2022 by
191
+ Generated on Thu May 12 08:56:16 2022 by
192
192
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
193
193
  0.9.27 (ruby-3.0.1).
194
194
  </div>
@@ -414,7 +414,7 @@ with</p>
414
414
  </div>
415
415
 
416
416
  <div id="footer">
417
- Generated on Wed Mar 23 08:25:51 2022 by
417
+ Generated on Thu May 12 08:56:16 2022 by
418
418
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
419
419
  0.9.27 (ruby-3.0.1).
420
420
  </div>
@@ -256,7 +256,7 @@
256
256
  </div>
257
257
 
258
258
  <div id="footer">
259
- Generated on Wed Mar 23 08:25:52 2022 by
259
+ Generated on Thu May 12 08:56:17 2022 by
260
260
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
261
261
  0.9.27 (ruby-3.0.1).
262
262
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Mar 23 08:25:52 2022 by
225
+ Generated on Thu May 12 08:56:17 2022 by
226
226
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.27 (ruby-3.0.1).
228
228
  </div>
@@ -678,7 +678,7 @@
678
678
  </div>
679
679
 
680
680
  <div id="footer">
681
- Generated on Wed Mar 23 08:25:52 2022 by
681
+ Generated on Thu May 12 08:56:17 2022 by
682
682
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
683
683
  0.9.27 (ruby-3.0.1).
684
684
  </div>
@@ -458,7 +458,7 @@
458
458
  </div>
459
459
 
460
460
  <div id="footer">
461
- Generated on Wed Mar 23 08:25:52 2022 by
461
+ Generated on Thu May 12 08:56:17 2022 by
462
462
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
463
463
  0.9.27 (ruby-3.0.1).
464
464
  </div>
@@ -337,7 +337,7 @@
337
337
  </div>
338
338
 
339
339
  <div id="footer">
340
- Generated on Wed Mar 23 08:25:51 2022 by
340
+ Generated on Thu May 12 08:56:16 2022 by
341
341
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
342
342
  0.9.27 (ruby-3.0.1).
343
343
  </div>
@@ -261,7 +261,7 @@ hours into days</p>
261
261
  </div>
262
262
 
263
263
  <div id="footer">
264
- Generated on Wed Mar 23 08:25:51 2022 by
264
+ Generated on Thu May 12 08:56:16 2022 by
265
265
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
266
266
  0.9.27 (ruby-3.0.1).
267
267
  </div>
@@ -672,7 +672,7 @@ array</p>
672
672
  </div>
673
673
 
674
674
  <div id="footer">
675
- Generated on Wed Mar 23 08:25:51 2022 by
675
+ Generated on Thu May 12 08:56:16 2022 by
676
676
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
677
677
  0.9.27 (ruby-3.0.1).
678
678
  </div>
@@ -664,7 +664,7 @@ ANSI-sequences are stripped from the string.</p>
664
664
  </div>
665
665
 
666
666
  <div id="footer">
667
- Generated on Wed Mar 23 08:25:50 2022 by
667
+ Generated on Thu May 12 08:56:16 2022 by
668
668
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
669
669
  0.9.27 (ruby-3.0.1).
670
670
  </div>
@@ -435,7 +435,7 @@
435
435
  </div>
436
436
 
437
437
  <div id="footer">
438
- Generated on Wed Mar 23 08:25:52 2022 by
438
+ Generated on Thu May 12 08:56:17 2022 by
439
439
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
440
440
  0.9.27 (ruby-3.0.1).
441
441
  </div>