doing 2.1.37 → 2.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/Rakefile +7 -1
  6. data/bin/commands/config.rb +43 -34
  7. data/bin/commands/done.rb +1 -18
  8. data/bin/commands/finish.rb +30 -25
  9. data/bin/commands/grep.rb +3 -14
  10. data/bin/commands/last.rb +2 -8
  11. data/bin/commands/meanwhile.rb +13 -6
  12. data/bin/commands/now.rb +2 -4
  13. data/bin/commands/on.rb +4 -15
  14. data/bin/commands/recent.rb +2 -8
  15. data/bin/commands/reset.rb +24 -1
  16. data/bin/commands/select.rb +1 -1
  17. data/bin/commands/show.rb +8 -16
  18. data/bin/commands/since.rb +1 -12
  19. data/bin/commands/today.rb +2 -13
  20. data/bin/commands/view.rb +1 -1
  21. data/bin/commands/yesterday.rb +2 -13
  22. data/bin/doing +41 -36
  23. data/docs/doc/Array.html +1 -1
  24. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  25. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  26. data/docs/doc/BooleanTermParser/Query.html +1 -1
  27. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  28. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  29. data/docs/doc/BooleanTermParser.html +1 -1
  30. data/docs/doc/Doing/Color.html +166 -20
  31. data/docs/doc/Doing/Completion.html +1 -1
  32. data/docs/doc/Doing/Configuration.html +1 -1
  33. data/docs/doc/Doing/Errors/DoingNoTraceError.html +7 -3
  34. data/docs/doc/Doing/Errors/DoingRuntimeError.html +7 -3
  35. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  36. data/docs/doc/Doing/Errors/EmptyInput.html +10 -2
  37. data/docs/doc/Doing/Errors/HistoryLimitError.html +194 -0
  38. data/docs/doc/Doing/Errors/InvalidPlugin.html +194 -0
  39. data/docs/doc/Doing/Errors/MissingBackupFile.html +194 -0
  40. data/docs/doc/Doing/Errors/NoResults.html +10 -2
  41. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  42. data/docs/doc/Doing/Errors/UserCancelled.html +10 -2
  43. data/docs/doc/Doing/Errors/WrongCommand.html +10 -2
  44. data/docs/doc/Doing/Errors.html +9 -9
  45. data/docs/doc/Doing/Hooks.html +1 -1
  46. data/docs/doc/Doing/Item.html +114 -1576
  47. data/docs/doc/Doing/Items.html +121 -5
  48. data/docs/doc/Doing/Logger.html +1 -1
  49. data/docs/doc/Doing/Note.html +1 -1
  50. data/docs/doc/Doing/Pager.html +1 -1
  51. data/docs/doc/Doing/Plugins.html +1 -1
  52. data/docs/doc/Doing/Prompt.html +2 -2
  53. data/docs/doc/Doing/Section.html +1 -1
  54. data/docs/doc/Doing/TemplateString.html +2 -2
  55. data/docs/doc/Doing/Types.html +1 -1
  56. data/docs/doc/Doing/Util/Backup.html +5 -5
  57. data/docs/doc/Doing/Util.html +1 -1
  58. data/docs/doc/Doing/WWID.html +197 -4033
  59. data/docs/doc/Doing.html +2 -2
  60. data/docs/doc/FalseClass.html +1 -1
  61. data/docs/doc/GLI/Commands/Help.html +1 -1
  62. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  63. data/docs/doc/GLI/Commands.html +1 -1
  64. data/docs/doc/GLI.html +1 -1
  65. data/docs/doc/Hash.html +1 -1
  66. data/docs/doc/Object.html +1 -1
  67. data/docs/doc/PhraseParser/Operator.html +1 -1
  68. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  69. data/docs/doc/PhraseParser/Query.html +1 -1
  70. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  71. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  72. data/docs/doc/PhraseParser/TermClause.html +1 -1
  73. data/docs/doc/PhraseParser.html +1 -1
  74. data/docs/doc/Status.html +1 -1
  75. data/docs/doc/String.html +1 -1
  76. data/docs/doc/Symbol.html +1 -1
  77. data/docs/doc/Time.html +1 -1
  78. data/docs/doc/TrueClass.html +1 -1
  79. data/docs/doc/_index.html +26 -5
  80. data/docs/doc/class_list.html +1 -1
  81. data/docs/doc/file.README.html +2 -2
  82. data/docs/doc/index.html +2 -2
  83. data/docs/doc/method_list.html +237 -709
  84. data/docs/doc/top-level-namespace.html +3 -3
  85. data/docs/index.md +1 -1
  86. data/doing.rdoc +54 -7
  87. data/lib/completion/_doing.zsh +6 -6
  88. data/lib/completion/doing.bash +10 -10
  89. data/lib/completion/doing.fish +8 -2
  90. data/lib/doing/add_options.rb +31 -1
  91. data/lib/doing/chronify/array.rb +68 -18
  92. data/lib/doing/chronify/string.rb +3 -1
  93. data/lib/doing/colors.rb +77 -30
  94. data/lib/doing/completion.rb +4 -5
  95. data/lib/doing/errors.rb +51 -35
  96. data/lib/doing/hooks.rb +3 -3
  97. data/lib/doing/item/dates.rb +112 -0
  98. data/lib/doing/item/query.rb +433 -0
  99. data/lib/doing/item/state.rb +59 -0
  100. data/lib/doing/item/tags.rb +87 -0
  101. data/lib/doing/item.rb +6 -537
  102. data/lib/doing/items.rb +39 -14
  103. data/lib/doing/plugin_manager.rb +3 -3
  104. data/lib/doing/plugins/export/template_export.rb +4 -4
  105. data/lib/doing/plugins/import/cal_to_json.scpt +0 -0
  106. data/lib/doing/prompt.rb +6 -8
  107. data/lib/doing/string/tags.rb +8 -2
  108. data/lib/doing/util_backup.rb +6 -8
  109. data/lib/doing/version.rb +1 -1
  110. data/lib/doing/wwid/display.rb +399 -0
  111. data/lib/doing/wwid/editor.rb +214 -0
  112. data/lib/doing/wwid/filetools.rb +186 -0
  113. data/lib/doing/wwid/filter.rb +218 -0
  114. data/lib/doing/wwid/guess.rb +87 -0
  115. data/lib/doing/wwid/interactive.rb +385 -0
  116. data/lib/doing/wwid/modify.rb +618 -0
  117. data/lib/doing/wwid/tags.rb +54 -0
  118. data/lib/doing/wwid/timers.rb +345 -0
  119. data/lib/doing/wwid/wwidutil.rb +104 -0
  120. data/lib/doing/wwid.rb +31 -2308
  121. metadata +19 -2
@@ -103,7 +103,7 @@
103
103
 
104
104
  <h2>Overview</h2><div class="docstring">
105
105
  <div class="discussion">
106
- <p>Items Array</p>
106
+ <p>A collection of Item objects</p>
107
107
 
108
108
 
109
109
  </div>
@@ -295,7 +295,7 @@
295
295
  <li class="public ">
296
296
  <span class="summary_signature">
297
297
 
298
- <a href="#diff-instance_method" title="#diff (instance method)">#<strong>diff</strong>(items) &#x21d2; Object </a>
298
+ <a href="#diff-instance_method" title="#diff (instance method)">#<strong>diff</strong>(items) &#x21d2; Hash </a>
299
299
 
300
300
 
301
301
 
@@ -312,6 +312,29 @@
312
312
  <span class="summary_desc"><div class='inline'><p>Return Items containing items that don&#39;t exist in receiver.</p>
313
313
  </div></span>
314
314
 
315
+ </li>
316
+
317
+
318
+ <li class="public ">
319
+ <span class="summary_signature">
320
+
321
+ <a href="#guess_section-instance_method" title="#guess_section (instance method)">#<strong>guess_section</strong>(frag, distance: 2) &#x21d2; Section </a>
322
+
323
+
324
+
325
+ </span>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+ <span class="summary_desc"><div class='inline'><p>Return the best section match for a search query.</p>
336
+ </div></span>
337
+
315
338
  </li>
316
339
 
317
340
 
@@ -774,7 +797,7 @@ creation of the section.</p>
774
797
  <div class="method_details ">
775
798
  <h3 class="signature " id="diff-instance_method">
776
799
 
777
- #<strong>diff</strong>(items) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
800
+ #<strong>diff</strong>(items) &#x21d2; <tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>
778
801
 
779
802
 
780
803
 
@@ -782,7 +805,8 @@ creation of the section.</p>
782
805
 
783
806
  </h3><div class="docstring">
784
807
  <div class="discussion">
785
- <p>Return Items containing items that don&#39;t exist in receiver</p>
808
+ <p>Return Items containing items that don&#39;t exist in
809
+ receiver</p>
786
810
 
787
811
 
788
812
  </div>
@@ -808,6 +832,98 @@ creation of the section.</p>
808
832
 
809
833
  </ul>
810
834
 
835
+ <p class="tag_title">Returns:</p>
836
+ <ul class="return">
837
+
838
+ <li>
839
+
840
+
841
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
842
+
843
+
844
+
845
+ &mdash;
846
+ <div class='inline'><p>Hash of added and deleted items</p>
847
+ </div>
848
+
849
+ </li>
850
+
851
+ </ul>
852
+
853
+ </div>
854
+ </div>
855
+
856
+ <div class="method_details ">
857
+ <h3 class="signature " id="guess_section-instance_method">
858
+
859
+ #<strong>guess_section</strong>(frag, distance: 2) &#x21d2; <tt><span class='object_link'><a href="Section.html" title="Doing::Section (class)">Section</a></span></tt>
860
+
861
+
862
+
863
+
864
+
865
+ </h3><div class="docstring">
866
+ <div class="discussion">
867
+ <p>Return the best section match for a search query</p>
868
+
869
+
870
+ </div>
871
+ </div>
872
+ <div class="tags">
873
+ <p class="tag_title">Parameters:</p>
874
+ <ul class="param">
875
+
876
+ <li>
877
+
878
+ <span class='name'>frag</span>
879
+
880
+
881
+ <span class='type'></span>
882
+
883
+
884
+
885
+ &mdash;
886
+ <div class='inline'><p>The search query</p>
887
+ </div>
888
+
889
+ </li>
890
+
891
+ <li>
892
+
893
+ <span class='name'>distance</span>
894
+
895
+
896
+ <span class='type'></span>
897
+
898
+
899
+ <em class="default">(defaults to: <tt>2</tt>)</em>
900
+
901
+
902
+ &mdash;
903
+ <div class='inline'><p>The distance apart characters can be (fuzziness)</p>
904
+ </div>
905
+
906
+ </li>
907
+
908
+ </ul>
909
+
910
+ <p class="tag_title">Returns:</p>
911
+ <ul class="return">
912
+
913
+ <li>
914
+
915
+
916
+ <span class='type'>(<tt><span class='object_link'><a href="Section.html" title="Doing::Section (class)">Section</a></span></tt>)</span>
917
+
918
+
919
+
920
+ &mdash;
921
+ <div class='inline'><p>(first) matching section object</p>
922
+ </div>
923
+
924
+ </li>
925
+
926
+ </ul>
811
927
 
812
928
  </div>
813
929
  </div>
@@ -1098,7 +1214,7 @@ specified section</p>
1098
1214
  </div>
1099
1215
 
1100
1216
  <div id="footer">
1101
- Generated on Sat Mar 12 11:56:35 2022 by
1217
+ Generated on Tue Mar 15 11:14:29 2022 by
1102
1218
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1103
1219
  0.9.27 (ruby-3.0.1).
1104
1220
  </div>
@@ -1797,7 +1797,7 @@ message (optional)</p>
1797
1797
  </div>
1798
1798
 
1799
1799
  <div id="footer">
1800
- Generated on Sat Mar 12 11:56:35 2022 by
1800
+ Generated on Tue Mar 15 11:14:30 2022 by
1801
1801
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1802
1802
  0.9.27 (ruby-3.0.1).
1803
1803
  </div>
@@ -733,7 +733,7 @@ join multiple lines</p>
733
733
  </div>
734
734
 
735
735
  <div id="footer">
736
- Generated on Sat Mar 12 11:56:35 2022 by
736
+ Generated on Tue Mar 15 11:14:29 2022 by
737
737
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
738
738
  0.9.27 (ruby-3.0.1).
739
739
  </div>
@@ -296,7 +296,7 @@ STDOUT</p>
296
296
  </div>
297
297
 
298
298
  <div id="footer">
299
- Generated on Sat Mar 12 11:56:35 2022 by
299
+ Generated on Tue Mar 15 11:14:29 2022 by
300
300
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
301
  0.9.27 (ruby-3.0.1).
302
302
  </div>
@@ -1235,7 +1235,7 @@ e.g. :imp =&gt; :import</p>
1235
1235
  </div>
1236
1236
 
1237
1237
  <div id="footer">
1238
- Generated on Sat Mar 12 11:56:35 2022 by
1238
+ Generated on Tue Mar 15 11:14:29 2022 by
1239
1239
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1240
1240
  0.9.27 (ruby-3.0.1).
1241
1241
  </div>
@@ -499,7 +499,7 @@
499
499
 
500
500
 
501
501
  <h3 class="inherited">Methods included from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
502
- <p class="inherited"><span class='object_link'><a href="Color.html#attributes-class_method" title="Doing::Color.attributes (method)">attributes</a></span>, <span class='object_link'><a href="Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">support?</a></span>, <span class='object_link'><a href="Color.html#uncolor-instance_method" title="Doing::Color#uncolor (method)">uncolor</a></span></p>
502
+ <p class="inherited"><span class='object_link'><a href="Color.html#attributes-instance_method" title="Doing::Color#attributes (method)">attributes</a></span>, <span class='object_link'><a href="Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">support?</a></span>, <span class='object_link'><a href="Color.html#template-class_method" title="Doing::Color.template (method)">template</a></span>, <span class='object_link'><a href="Color.html#uncolor-instance_method" title="Doing::Color#uncolor (method)">uncolor</a></span></p>
503
503
 
504
504
  <div id="class_attr_details" class="attr_details">
505
505
  <h2>Class Attribute Details</h2>
@@ -977,7 +977,7 @@ response if no input</p>
977
977
  </div>
978
978
 
979
979
  <div id="footer">
980
- Generated on Sat Mar 12 11:56:35 2022 by
980
+ Generated on Tue Mar 15 11:14:29 2022 by
981
981
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
982
982
  0.9.27 (ruby-3.0.1).
983
983
  </div>
@@ -344,7 +344,7 @@
344
344
  </div>
345
345
 
346
346
  <div id="footer">
347
- Generated on Sat Mar 12 11:56:35 2022 by
347
+ Generated on Tue Mar 15 11:14:30 2022 by
348
348
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
349
349
  0.9.27 (ruby-3.0.1).
350
350
  </div>
@@ -389,7 +389,7 @@
389
389
 
390
390
 
391
391
  <h3 class="inherited">Methods included from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
392
- <p class="inherited"><span class='object_link'><a href="Color.html#attributes-class_method" title="Doing::Color.attributes (method)">attributes</a></span>, <span class='object_link'><a href="Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">#support?</a></span>, <span class='object_link'><a href="Color.html#uncolor-instance_method" title="Doing::Color#uncolor (method)">#uncolor</a></span></p>
392
+ <p class="inherited"><span class='object_link'><a href="Color.html#attributes-instance_method" title="Doing::Color#attributes (method)">#attributes</a></span>, <span class='object_link'><a href="Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">#support?</a></span>, <span class='object_link'><a href="Color.html#template-class_method" title="Doing::Color.template (method)">template</a></span>, <span class='object_link'><a href="Color.html#uncolor-instance_method" title="Doing::Color#uncolor (method)">#uncolor</a></span></p>
393
393
 
394
394
 
395
395
 
@@ -703,7 +703,7 @@ of colors and string locations</p>
703
703
  </div>
704
704
 
705
705
  <div id="footer">
706
- Generated on Sat Mar 12 11:56:36 2022 by
706
+ Generated on Tue Mar 15 11:14:30 2022 by
707
707
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
708
708
  0.9.27 (ruby-3.0.1).
709
709
  </div>
@@ -236,7 +236,7 @@
236
236
  </div>
237
237
 
238
238
  <div id="footer">
239
- Generated on Sat Mar 12 11:56:35 2022 by
239
+ Generated on Tue Mar 15 11:14:29 2022 by
240
240
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
241
241
  0.9.27 (ruby-3.0.1).
242
242
  </div>
@@ -572,7 +572,7 @@
572
572
  <li>
573
573
 
574
574
 
575
- <span class='type'>(<tt>DoingRuntimeError</tt>)</span>
575
+ <span class='type'>(<tt>HistoryLimitError</tt>)</span>
576
576
 
577
577
 
578
578
 
@@ -630,7 +630,7 @@ different from default</p>
630
630
  <li>
631
631
 
632
632
 
633
- <span class='type'>(<tt>DoingRuntimeError</tt>)</span>
633
+ <span class='type'>(<tt>HistoryLimitError</tt>)</span>
634
634
 
635
635
 
636
636
 
@@ -687,7 +687,7 @@ provided, only backups of that filename will be used.</p>
687
687
  <li>
688
688
 
689
689
 
690
- <span class='type'>(<tt>DoingRuntimeError</tt>)</span>
690
+ <span class='type'>(<tt>MissingBackupFile</tt>)</span>
691
691
 
692
692
 
693
693
 
@@ -744,7 +744,7 @@ provided, only backups of that filename will be used.</p>
744
744
  <li>
745
745
 
746
746
 
747
- <span class='type'>(<tt>DoingRuntimeError</tt>)</span>
747
+ <span class='type'>(<tt>HistoryLimitError</tt>)</span>
748
748
 
749
749
 
750
750
 
@@ -836,7 +836,7 @@ in a hidden directory</p>
836
836
  </div>
837
837
 
838
838
  <div id="footer">
839
- Generated on Sat Mar 12 11:56:35 2022 by
839
+ Generated on Tue Mar 15 11:14:29 2022 by
840
840
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
841
841
  0.9.27 (ruby-3.0.1).
842
842
  </div>
@@ -925,7 +925,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
925
925
  </div>
926
926
 
927
927
  <div id="footer">
928
- Generated on Sat Mar 12 11:56:35 2022 by
928
+ Generated on Tue Mar 15 11:14:29 2022 by
929
929
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
930
930
  0.9.27 (ruby-3.0.1).
931
931
  </div>