doing 2.0.22 → 2.1.0pre

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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +18 -15
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +36 -1
  6. data/Gemfile.lock +8 -1
  7. data/README.md +7 -1
  8. data/Rakefile +23 -4
  9. data/bin/doing +323 -173
  10. data/doc/Array.html +354 -1
  11. data/doc/Doing/Color.html +104 -92
  12. data/doc/Doing/Completion.html +216 -0
  13. data/doc/Doing/Configuration.html +340 -5
  14. data/doc/Doing/Content.html +229 -0
  15. data/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  16. data/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  17. data/doc/Doing/Errors/DoingStandardError.html +1 -1
  18. data/doc/Doing/Errors/EmptyInput.html +1 -1
  19. data/doc/Doing/Errors/NoResults.html +1 -1
  20. data/doc/Doing/Errors/PluginException.html +1 -1
  21. data/doc/Doing/Errors/UserCancelled.html +1 -1
  22. data/doc/Doing/Errors/WrongCommand.html +1 -1
  23. data/doc/Doing/Errors.html +1 -1
  24. data/doc/Doing/Hooks.html +1 -1
  25. data/doc/Doing/Item.html +337 -49
  26. data/doc/Doing/Items.html +444 -35
  27. data/doc/Doing/LogAdapter.html +139 -51
  28. data/doc/Doing/Note.html +253 -22
  29. data/doc/Doing/Pager.html +74 -36
  30. data/doc/Doing/Plugins.html +1 -1
  31. data/doc/Doing/Prompt.html +674 -0
  32. data/doc/Doing/Section.html +354 -0
  33. data/doc/Doing/Util.html +57 -1
  34. data/doc/Doing/WWID.html +477 -670
  35. data/doc/Doing/WWIDFile.html +398 -0
  36. data/doc/Doing.html +5 -5
  37. data/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  38. data/doc/GLI/Commands.html +1 -1
  39. data/doc/GLI.html +1 -1
  40. data/doc/Hash.html +97 -1
  41. data/doc/Status.html +37 -3
  42. data/doc/String.html +599 -23
  43. data/doc/Symbol.html +3 -3
  44. data/doc/Time.html +1 -1
  45. data/doc/_index.html +22 -1
  46. data/doc/class_list.html +1 -1
  47. data/doc/file.README.html +8 -2
  48. data/doc/index.html +8 -2
  49. data/doc/method_list.html +453 -173
  50. data/doc/top-level-namespace.html +1 -1
  51. data/doing.gemspec +3 -0
  52. data/doing.rdoc +79 -27
  53. data/example_plugin.rb +5 -5
  54. data/lib/completion/_doing.zsh +42 -42
  55. data/lib/completion/doing.bash +10 -10
  56. data/lib/completion/doing.fish +1 -280
  57. data/lib/doing/array.rb +36 -0
  58. data/lib/doing/colors.rb +70 -66
  59. data/lib/doing/completion/bash_completion.rb +1 -2
  60. data/lib/doing/completion/fish_completion.rb +1 -1
  61. data/lib/doing/completion/zsh_completion.rb +1 -1
  62. data/lib/doing/completion.rb +6 -0
  63. data/lib/doing/configuration.rb +134 -23
  64. data/lib/doing/hash.rb +37 -0
  65. data/lib/doing/item.rb +77 -12
  66. data/lib/doing/items.rb +125 -0
  67. data/lib/doing/log_adapter.rb +58 -4
  68. data/lib/doing/note.rb +53 -1
  69. data/lib/doing/pager.rb +49 -38
  70. data/lib/doing/plugins/export/markdown_export.rb +4 -4
  71. data/lib/doing/plugins/export/template_export.rb +2 -2
  72. data/lib/doing/plugins/import/calendar_import.rb +4 -4
  73. data/lib/doing/plugins/import/doing_import.rb +5 -7
  74. data/lib/doing/plugins/import/timing_import.rb +3 -3
  75. data/lib/doing/prompt.rb +206 -0
  76. data/lib/doing/section.rb +30 -0
  77. data/lib/doing/string.rb +123 -35
  78. data/lib/doing/util.rb +14 -6
  79. data/lib/doing/version.rb +1 -1
  80. data/lib/doing/wwid.rb +307 -614
  81. data/lib/doing.rb +6 -2
  82. data/lib/examples/plugins/capture_thing_import.rb +162 -0
  83. data/rdoc_to_mmd.rb +14 -8
  84. data/scripts/generate_bash_completions.rb +1 -1
  85. data/scripts/generate_fish_completions.rb +1 -1
  86. data/scripts/generate_zsh_completions.rb +1 -1
  87. metadata +73 -5
  88. data/lib/doing/wwidfile.rb +0 -117
data/doc/Doing/WWID.html CHANGED
@@ -87,6 +87,11 @@
87
87
 
88
88
 
89
89
 
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd><span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></dd>
93
+ </dl>
94
+
90
95
 
91
96
 
92
97
 
@@ -112,6 +117,12 @@
112
117
  </div>
113
118
 
114
119
 
120
+ <h2>Constant Summary</h2>
121
+
122
+ <h3 class="inherited">Constants included
123
+ from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
124
+ <p class="inherited"><span class='object_link'><a href="Color.html#ATTRIBUTES-constant" title="Doing::Color::ATTRIBUTES (constant)">Color::ATTRIBUTES</a></span>, <span class='object_link'><a href="Color.html#ATTRIBUTE_NAMES-constant" title="Doing::Color::ATTRIBUTE_NAMES (constant)">Color::ATTRIBUTE_NAMES</a></span>, <span class='object_link'><a href="Color.html#COLORED_REGEXP-constant" title="Doing::Color::COLORED_REGEXP (constant)">Color::COLORED_REGEXP</a></span></p>
125
+
115
126
 
116
127
  <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
117
128
  <ul class="summary">
@@ -388,29 +399,6 @@
388
399
  <span class="summary_desc"><div class='inline'><p>Adds an entry.</p>
389
400
  </div></span>
390
401
 
391
- </li>
392
-
393
-
394
- <li class="public ">
395
- <span class="summary_signature">
396
-
397
- <a href="#add_section-instance_method" title="#add_section (instance method)">#<strong>add_section</strong>(title) &#x21d2; Object </a>
398
-
399
-
400
-
401
- </span>
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
- <span class="summary_desc"><div class='inline'><p>Adds a section.</p>
412
- </div></span>
413
-
414
402
  </li>
415
403
 
416
404
 
@@ -479,51 +467,6 @@
479
467
  <span class="summary_desc"><div class='inline'><p>Uses &#39;autotag&#39; configuration to turn keywords into tags for time tracking.</p>
480
468
  </div></span>
481
469
 
482
- </li>
483
-
484
-
485
- <li class="public ">
486
- <span class="summary_signature">
487
-
488
- <a href="#choose_from-instance_method" title="#choose_from (instance method)">#<strong>choose_from</strong>(options, prompt: &#39;Make a selection: &#39;, multiple: false, sorted: true, fzf_args: []) &#x21d2; String </a>
489
-
490
-
491
-
492
- </span>
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
- <span class="summary_desc"><div class='inline'><p>Generate a menu of options and allow user selection.</p>
503
- </div></span>
504
-
505
- </li>
506
-
507
-
508
- <li class="public ">
509
- <span class="summary_signature">
510
-
511
- <a href="#choose_from_items-instance_method" title="#choose_from_items (instance method)">#<strong>choose_from_items</strong>(items, opt = {}, include_section: false) &#x21d2; Object </a>
512
-
513
-
514
-
515
- </span>
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
- <span class="summary_desc"><div class='inline'></div></span>
526
-
527
470
  </li>
528
471
 
529
472
 
@@ -645,7 +588,7 @@
645
588
  <li class="public ">
646
589
  <span class="summary_signature">
647
590
 
648
- <a href="#dedup-instance_method" title="#dedup (instance method)">#<strong>dedup</strong>(items, no_overlap = false) &#x21d2; Object </a>
591
+ <a href="#dedup-instance_method" title="#dedup (instance method)">#<strong>dedup</strong>(items, no_overlap: false) &#x21d2; Object </a>
649
592
 
650
593
 
651
594
 
@@ -668,7 +611,7 @@
668
611
  <li class="public ">
669
612
  <span class="summary_signature">
670
613
 
671
- <a href="#delete_item-instance_method" title="#delete_item (instance method)">#<strong>delete_item</strong>(item, single: false) &#x21d2; Object </a>
614
+ <a href="#edit_last-instance_method" title="#edit_last (instance method)">#<strong>edit_last</strong>(section: &#39;All&#39;, options: {}) &#x21d2; Object </a>
672
615
 
673
616
 
674
617
 
@@ -682,7 +625,7 @@
682
625
 
683
626
 
684
627
 
685
- <span class="summary_desc"><div class='inline'><p>Delete an item from the index.</p>
628
+ <span class="summary_desc"><div class='inline'><p>Edit the last entry.</p>
686
629
  </div></span>
687
630
 
688
631
  </li>
@@ -691,7 +634,7 @@
691
634
  <li class="public ">
692
635
  <span class="summary_signature">
693
636
 
694
- <a href="#edit_last-instance_method" title="#edit_last (instance method)">#<strong>edit_last</strong>(section: &#39;All&#39;, options: {}) &#x21d2; Object </a>
637
+ <a href="#filter_items-instance_method" title="#filter_items (instance method)">#<strong>filter_items</strong>(items = Items.new, opt: {}) &#x21d2; Object </a>
695
638
 
696
639
 
697
640
 
@@ -705,7 +648,7 @@
705
648
 
706
649
 
707
650
 
708
- <span class="summary_desc"><div class='inline'><p>Edit the last entry.</p>
651
+ <span class="summary_desc"><div class='inline'><p>Filter items based on search criteria.</p>
709
652
  </div></span>
710
653
 
711
654
  </li>
@@ -714,7 +657,7 @@
714
657
  <li class="public ">
715
658
  <span class="summary_signature">
716
659
 
717
- <a href="#filter_items-instance_method" title="#filter_items (instance method)">#<strong>filter_items</strong>(items = [], opt: {}) &#x21d2; Object </a>
660
+ <a href="#fork_editor-instance_method" title="#fork_editor (instance method)">#<strong>fork_editor</strong>(input = &#39;&#39;, message: :default) &#x21d2; Object </a>
718
661
 
719
662
 
720
663
 
@@ -728,7 +671,7 @@
728
671
 
729
672
 
730
673
 
731
- <span class="summary_desc"><div class='inline'><p>Filter items based on search criteria.</p>
674
+ <span class="summary_desc"><div class='inline'><p>Create a process for an editor and wait for the file handle to return.</p>
732
675
  </div></span>
733
676
 
734
677
  </li>
@@ -737,7 +680,7 @@
737
680
  <li class="public ">
738
681
  <span class="summary_signature">
739
682
 
740
- <a href="#fork_editor-instance_method" title="#fork_editor (instance method)">#<strong>fork_editor</strong>(input = &#39;&#39;) &#x21d2; Object </a>
683
+ <a href="#format_input-instance_method" title="#format_input (instance method)">#<strong>format_input</strong>(input) &#x21d2; Array </a>
741
684
 
742
685
 
743
686
 
@@ -751,7 +694,7 @@
751
694
 
752
695
 
753
696
 
754
- <span class="summary_desc"><div class='inline'><p>Create a process for an editor and wait for the file handle to return.</p>
697
+ <span class="summary_desc"><div class='inline'><p>Takes a multi-line string and formats it as an entry.</p>
755
698
  </div></span>
756
699
 
757
700
  </li>
@@ -760,7 +703,7 @@
760
703
  <li class="public ">
761
704
  <span class="summary_signature">
762
705
 
763
- <a href="#format_input-instance_method" title="#format_input (instance method)">#<strong>format_input</strong>(input) &#x21d2; Array </a>
706
+ <a href="#format_time-instance_method" title="#format_time (instance method)">#<strong>format_time</strong>(seconds, human: false) &#x21d2; Object </a>
764
707
 
765
708
 
766
709
 
@@ -774,7 +717,7 @@
774
717
 
775
718
 
776
719
 
777
- <span class="summary_desc"><div class='inline'><p>Takes a multi-line string and formats it as an entry.</p>
720
+ <span class="summary_desc"><div class='inline'><p>Format human readable time from seconds.</p>
778
721
  </div></span>
779
722
 
780
723
  </li>
@@ -783,7 +726,7 @@
783
726
  <li class="public ">
784
727
  <span class="summary_signature">
785
728
 
786
- <a href="#format_time-instance_method" title="#format_time (instance method)">#<strong>format_time</strong>(seconds, human: false) &#x21d2; Object </a>
729
+ <a href="#fuzzy_filter_items-instance_method" title="#fuzzy_filter_items (instance method)">#<strong>fuzzy_filter_items</strong>(items, opt: {}) &#x21d2; Object </a>
787
730
 
788
731
 
789
732
 
@@ -797,8 +740,7 @@
797
740
 
798
741
 
799
742
 
800
- <span class="summary_desc"><div class='inline'><p>Format human readable time from seconds.</p>
801
- </div></span>
743
+ <span class="summary_desc"><div class='inline'></div></span>
802
744
 
803
745
  </li>
804
746
 
@@ -1124,29 +1066,6 @@
1124
1066
  <span class="summary_desc"><div class='inline'><p>Logger.</p>
1125
1067
  </div></span>
1126
1068
 
1127
- </li>
1128
-
1129
-
1130
- <li class="public ">
1131
- <span class="summary_signature">
1132
-
1133
- <a href="#move_item-instance_method" title="#move_item (instance method)">#<strong>move_item</strong>(item, section, label: true) &#x21d2; Item </a>
1134
-
1135
-
1136
-
1137
- </span>
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
- <span class="summary_desc"><div class='inline'><p>Move item from current section to destination section.</p>
1148
- </div></span>
1149
-
1150
1069
  </li>
1151
1070
 
1152
1071
 
@@ -1213,7 +1132,8 @@
1213
1132
 
1214
1133
 
1215
1134
 
1216
- <span class="summary_desc"><div class='inline'></div></span>
1135
+ <span class="summary_desc"><div class='inline'><p>Duplicate an item and add it as a new item.</p>
1136
+ </div></span>
1217
1137
 
1218
1138
  </li>
1219
1139
 
@@ -1258,7 +1178,8 @@
1258
1178
 
1259
1179
 
1260
1180
 
1261
- <span class="summary_desc"><div class='inline'></div></span>
1181
+ <span class="summary_desc"><div class='inline'><p>Reset start date to current time, optionally remove done tag (resume).</p>
1182
+ </div></span>
1262
1183
 
1263
1184
  </li>
1264
1185
 
@@ -1374,29 +1295,6 @@
1374
1295
 
1375
1296
  <span class="summary_desc"><div class='inline'></div></span>
1376
1297
 
1377
- </li>
1378
-
1379
-
1380
- <li class="public ">
1381
- <span class="summary_signature">
1382
-
1383
- <a href="#tag_item-instance_method" title="#tag_item (instance method)">#<strong>tag_item</strong>(item, tags, remove: false, date: false, single: false) &#x21d2; Item </a>
1384
-
1385
-
1386
-
1387
- </span>
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
-
1397
- <span class="summary_desc"><div class='inline'><p>Tag an item from the index.</p>
1398
- </div></span>
1399
-
1400
1298
  </li>
1401
1299
 
1402
1300
 
@@ -1466,29 +1364,6 @@
1466
1364
  <span class="summary_desc"><div class='inline'><p>Show all entries from the current day.</p>
1467
1365
  </div></span>
1468
1366
 
1469
- </li>
1470
-
1471
-
1472
- <li class="public ">
1473
- <span class="summary_signature">
1474
-
1475
- <a href="#update_item-instance_method" title="#update_item (instance method)">#<strong>update_item</strong>(old_item, new_item) &#x21d2; Object </a>
1476
-
1477
-
1478
-
1479
- </span>
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
- <span class="summary_desc"><div class='inline'><p>Update an item in the index with a modified item.</p>
1490
- </div></span>
1491
-
1492
1367
  </li>
1493
1368
 
1494
1369
 
@@ -1561,32 +1436,20 @@
1561
1436
  </li>
1562
1437
 
1563
1438
 
1564
- <li class="public ">
1565
- <span class="summary_signature">
1566
-
1567
- <a href="#yn-instance_method" title="#yn (instance method)">#<strong>yn</strong>(question, default_response: false) &#x21d2; Bool </a>
1568
-
1569
-
1570
-
1571
- </span>
1572
-
1439
+ </ul>
1573
1440
 
1441
+
1442
+
1574
1443
 
1575
1444
 
1576
1445
 
1577
1446
 
1578
1447
 
1579
-
1580
1448
 
1581
- <span class="summary_desc"><div class='inline'><p>Ask a yes or no question in the terminal.</p>
1582
- </div></span>
1583
1449
 
1584
- </li>
1585
-
1586
-
1587
- </ul>
1588
1450
 
1589
-
1451
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
1452
+ <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>
1590
1453
  <div id="constructor_details" class="method_details_list">
1591
1454
  <h2>Constructor Details</h2>
1592
1455
 
@@ -1844,12 +1707,12 @@
1844
1707
  <span class='name'>items</span>
1845
1708
 
1846
1709
 
1847
- <span class='type'></span>
1710
+ <span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
1848
1711
 
1849
1712
 
1850
1713
 
1851
1714
  &mdash;
1852
- <div class='inline'><p>The items to affect</p>
1715
+ <div class='inline'><p>Array of Items to affect</p>
1853
1716
  </div>
1854
1717
 
1855
1718
  </li>
@@ -1859,107 +1722,138 @@
1859
1722
  <span class='name'>opt</span>
1860
1723
 
1861
1724
 
1862
- <span class='type'></span>
1725
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
1863
1726
 
1864
1727
 
1865
1728
  <em class="default">(defaults to: <tt>{}</tt>)</em>
1866
1729
 
1867
1730
 
1868
1731
  &mdash;
1869
- <div class='inline'><p>The actions and options. Can
1870
- include :editor, :delete, :tag,
1871
- :flag, :finish, :cancel, :archive,
1872
- :output, :save_to, :again, and
1873
- :resume</p>
1732
+ <div class='inline'><p>Options and actions to perform</p>
1874
1733
  </div>
1875
1734
 
1876
1735
  </li>
1877
1736
 
1878
1737
  </ul>
1879
1738
 
1880
-
1881
- </div>
1882
- </div>
1883
-
1884
- <div class="method_details ">
1885
- <h3 class="signature " id="add_item-instance_method">
1886
-
1887
- #<strong>add_item</strong>(title, section = nil, opt = {}) &#x21d2; <tt>Object</tt>
1888
-
1889
-
1890
-
1891
-
1892
-
1893
- </h3><div class="docstring">
1894
- <div class="discussion">
1895
- <p>Adds an entry</p>
1896
-
1897
-
1898
- </div>
1899
- </div>
1900
- <div class="tags">
1901
- <p class="tag_title">Parameters:</p>
1902
- <ul class="param">
1903
1739
 
1904
- <li>
1905
-
1906
- <span class='name'>title</span>
1740
+
1741
+
1742
+
1743
+
1744
+ <p class="tag_title">Options Hash (<tt>opt</tt>):</p>
1745
+ <ul class="option">
1907
1746
 
1747
+ <li>
1748
+ <span class="name">:editor</span>
1749
+ <span class="type">(<tt>Boolean</tt>)</span>
1750
+ <span class="default">
1751
+
1752
+ </span>
1753
+
1754
+ </li>
1908
1755
 
1909
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1756
+ <li>
1757
+ <span class="name">:delete</span>
1758
+ <span class="type">(<tt>Boolean</tt>)</span>
1759
+ <span class="default">
1760
+
1761
+ </span>
1762
+
1763
+ </li>
1910
1764
 
1765
+ <li>
1766
+ <span class="name">:tag</span>
1767
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1768
+ <span class="default">
1769
+
1770
+ </span>
1771
+
1772
+ </li>
1911
1773
 
1774
+ <li>
1775
+ <span class="name">:flag</span>
1776
+ <span class="type">(<tt>Boolean</tt>)</span>
1777
+ <span class="default">
1778
+
1779
+ </span>
1780
+
1781
+ </li>
1912
1782
 
1913
- &mdash;
1914
- <div class='inline'><p>The entry title</p>
1915
- </div>
1783
+ <li>
1784
+ <span class="name">:finish</span>
1785
+ <span class="type">(<tt>Boolean</tt>)</span>
1786
+ <span class="default">
1787
+
1788
+ </span>
1789
+
1790
+ </li>
1916
1791
 
1917
- </li>
1918
-
1919
- <li>
1792
+ <li>
1793
+ <span class="name">:cancel</span>
1794
+ <span class="type">(<tt>Boolean</tt>)</span>
1795
+ <span class="default">
1796
+
1797
+ </span>
1798
+
1799
+ </li>
1920
1800
 
1921
- <span class='name'>section</span>
1922
-
1923
-
1924
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1925
-
1926
-
1927
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1928
-
1929
-
1930
- &mdash;
1931
- <div class='inline'><p>The section to add to</p>
1932
- </div>
1933
-
1934
- </li>
1935
-
1936
- <li>
1937
-
1938
- <span class='name'>opt</span>
1939
-
1940
-
1941
- <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
1801
+ <li>
1802
+ <span class="name">:archive</span>
1803
+ <span class="type">(<tt>Boolean</tt>)</span>
1804
+ <span class="default">
1805
+
1806
+ </span>
1807
+
1808
+ </li>
1942
1809
 
1810
+ <li>
1811
+ <span class="name">:output</span>
1812
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1813
+ <span class="default">
1814
+
1815
+ </span>
1816
+
1817
+ </li>
1943
1818
 
1944
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1819
+ <li>
1820
+ <span class="name">:save_to</span>
1821
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1822
+ <span class="default">
1823
+
1824
+ </span>
1825
+
1826
+ </li>
1945
1827
 
1828
+ <li>
1829
+ <span class="name">:again</span>
1830
+ <span class="type">(<tt>Boolean</tt>)</span>
1831
+ <span class="default">
1832
+
1833
+ </span>
1834
+
1835
+ </li>
1946
1836
 
1947
- &mdash;
1948
- <div class='inline'><p>Additional Options: :date, :note, :back, :timed</p>
1949
- </div>
1837
+ <li>
1838
+ <span class="name">:resume</span>
1839
+ <span class="type">(<tt>Boolean</tt>)</span>
1840
+ <span class="default">
1841
+
1842
+ </span>
1843
+
1844
+ </li>
1950
1845
 
1951
- </li>
1846
+ </ul>
1952
1847
 
1953
- </ul>
1954
1848
 
1955
1849
 
1956
1850
  </div>
1957
1851
  </div>
1958
1852
 
1959
1853
  <div class="method_details ">
1960
- <h3 class="signature " id="add_section-instance_method">
1854
+ <h3 class="signature " id="add_item-instance_method">
1961
1855
 
1962
- #<strong>add_section</strong>(title) &#x21d2; <tt>Object</tt>
1856
+ #<strong>add_item</strong>(title, section = nil, opt = {}) &#x21d2; <tt>Object</tt>
1963
1857
 
1964
1858
 
1965
1859
 
@@ -1967,7 +1861,7 @@ include :editor, :delete, :tag,
1967
1861
 
1968
1862
  </h3><div class="docstring">
1969
1863
  <div class="discussion">
1970
- <p>Adds a section.</p>
1864
+ <p>Adds an entry</p>
1971
1865
 
1972
1866
 
1973
1867
  </div>
@@ -1986,13 +1880,108 @@ include :editor, :delete, :tag,
1986
1880
 
1987
1881
 
1988
1882
  &mdash;
1989
- <div class='inline'><p>The new section title</p>
1883
+ <div class='inline'><p>The entry title</p>
1884
+ </div>
1885
+
1886
+ </li>
1887
+
1888
+ <li>
1889
+
1890
+ <span class='name'>section</span>
1891
+
1892
+
1893
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1894
+
1895
+
1896
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1897
+
1898
+
1899
+ &mdash;
1900
+ <div class='inline'><p>The section to add to</p>
1901
+ </div>
1902
+
1903
+ </li>
1904
+
1905
+ <li>
1906
+
1907
+ <span class='name'>opt</span>
1908
+
1909
+
1910
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
1911
+
1912
+
1913
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
1914
+
1915
+
1916
+ &mdash;
1917
+ <div class='inline'><p>Additional Options</p>
1990
1918
  </div>
1991
1919
 
1992
1920
  </li>
1993
1921
 
1994
1922
  </ul>
1995
1923
 
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+ <p class="tag_title">Options Hash (<tt>opt</tt>):</p>
1932
+ <ul class="option">
1933
+
1934
+ <li>
1935
+ <span class="name">:date</span>
1936
+ <span class="type">(<tt>Date</tt>)</span>
1937
+ <span class="default">
1938
+
1939
+ </span>
1940
+
1941
+ &mdash; <div class='inline'><p>item start date</p>
1942
+ </div>
1943
+
1944
+ </li>
1945
+
1946
+ <li>
1947
+ <span class="name">:note</span>
1948
+ <span class="type">(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
1949
+ <span class="default">
1950
+
1951
+ </span>
1952
+
1953
+ &mdash; <div class='inline'><p>item note (will be converted if value is String)</p>
1954
+ </div>
1955
+
1956
+ </li>
1957
+
1958
+ <li>
1959
+ <span class="name">:back</span>
1960
+ <span class="type">(<tt>Date</tt>)</span>
1961
+ <span class="default">
1962
+
1963
+ </span>
1964
+
1965
+ &mdash; <div class='inline'><p>backdate</p>
1966
+ </div>
1967
+
1968
+ </li>
1969
+
1970
+ <li>
1971
+ <span class="name">:timed</span>
1972
+ <span class="type">(<tt>Boolean</tt>)</span>
1973
+ <span class="default">
1974
+
1975
+ </span>
1976
+
1977
+ &mdash; <div class='inline'><p>new item is timed entry, marks previous entry as @done</p>
1978
+ </div>
1979
+
1980
+ </li>
1981
+
1982
+ </ul>
1983
+
1984
+
1996
1985
 
1997
1986
  </div>
1998
1987
  </div>
@@ -2111,57 +2100,6 @@ untagged keyword</p>
2111
2100
 
2112
2101
 
2113
2102
  </div>
2114
- </div>
2115
-
2116
- <div class="method_details ">
2117
- <h3 class="signature " id="choose_from-instance_method">
2118
-
2119
- #<strong>choose_from</strong>(options, prompt: &#39;Make a selection: &#39;, multiple: false, sorted: true, fzf_args: []) &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2120
-
2121
-
2122
-
2123
-
2124
-
2125
- </h3><div class="docstring">
2126
- <div class="discussion">
2127
- <p>Generate a menu of options and allow user selection</p>
2128
-
2129
-
2130
- </div>
2131
- </div>
2132
- <div class="tags">
2133
-
2134
- <p class="tag_title">Returns:</p>
2135
- <ul class="return">
2136
-
2137
- <li>
2138
-
2139
-
2140
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
2141
-
2142
-
2143
-
2144
- &mdash;
2145
- <div class='inline'><p>The selected option</p>
2146
- </div>
2147
-
2148
- </li>
2149
-
2150
- </ul>
2151
-
2152
- </div>
2153
- </div>
2154
-
2155
- <div class="method_details ">
2156
- <h3 class="signature " id="choose_from_items-instance_method">
2157
-
2158
- #<strong>choose_from_items</strong>(items, opt = {}, include_section: false) &#x21d2; <tt>Object</tt>
2159
-
2160
-
2161
-
2162
-
2163
-
2164
- </h3>
2165
2103
  </div>
2166
2104
 
2167
2105
  <div class="method_details ">
@@ -2401,7 +2339,7 @@ untagged keyword</p>
2401
2339
  <div class="method_details ">
2402
2340
  <h3 class="signature " id="dedup-instance_method">
2403
2341
 
2404
- #<strong>dedup</strong>(items, no_overlap = false) &#x21d2; <tt>Object</tt>
2342
+ #<strong>dedup</strong>(items, no_overlap: false) &#x21d2; <tt>Object</tt>
2405
2343
 
2406
2344
 
2407
2345
 
@@ -2453,47 +2391,6 @@ untagged keyword</p>
2453
2391
  </ul>
2454
2392
 
2455
2393
 
2456
- </div>
2457
- </div>
2458
-
2459
- <div class="method_details ">
2460
- <h3 class="signature " id="delete_item-instance_method">
2461
-
2462
- #<strong>delete_item</strong>(item, single: false) &#x21d2; <tt>Object</tt>
2463
-
2464
-
2465
-
2466
-
2467
-
2468
- </h3><div class="docstring">
2469
- <div class="discussion">
2470
- <p>Delete an item from the index</p>
2471
-
2472
-
2473
- </div>
2474
- </div>
2475
- <div class="tags">
2476
- <p class="tag_title">Parameters:</p>
2477
- <ul class="param">
2478
-
2479
- <li>
2480
-
2481
- <span class='name'>item</span>
2482
-
2483
-
2484
- <span class='type'></span>
2485
-
2486
-
2487
-
2488
- &mdash;
2489
- <div class='inline'><p>The item</p>
2490
- </div>
2491
-
2492
- </li>
2493
-
2494
- </ul>
2495
-
2496
-
2497
2394
  </div>
2498
2395
  </div>
2499
2396
 
@@ -2543,7 +2440,7 @@ untagged keyword</p>
2543
2440
  <div class="method_details ">
2544
2441
  <h3 class="signature " id="filter_items-instance_method">
2545
2442
 
2546
- #<strong>filter_items</strong>(items = [], opt: {}) &#x21d2; <tt>Object</tt>
2443
+ #<strong>filter_items</strong>(items = Items.new, opt: {}) &#x21d2; <tt>Object</tt>
2547
2444
 
2548
2445
 
2549
2446
 
@@ -2568,7 +2465,7 @@ untagged keyword</p>
2568
2465
  <span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
2569
2466
 
2570
2467
 
2571
- <em class="default">(defaults to: <tt>[]</tt>)</em>
2468
+ <em class="default">(defaults to: <tt>Items.new</tt>)</em>
2572
2469
 
2573
2470
 
2574
2471
  &mdash;
@@ -2755,7 +2652,7 @@ untagged keyword</p>
2755
2652
  <div class="method_details ">
2756
2653
  <h3 class="signature " id="fork_editor-instance_method">
2757
2654
 
2758
- #<strong>fork_editor</strong>(input = &#39;&#39;) &#x21d2; <tt>Object</tt>
2655
+ #<strong>fork_editor</strong>(input = &#39;&#39;, message: :default) &#x21d2; <tt>Object</tt>
2759
2656
 
2760
2657
 
2761
2658
 
@@ -2918,6 +2815,18 @@ untagged keyword</p>
2918
2815
 
2919
2816
 
2920
2817
  </div>
2818
+ </div>
2819
+
2820
+ <div class="method_details ">
2821
+ <h3 class="signature " id="fuzzy_filter_items-instance_method">
2822
+
2823
+ #<strong>fuzzy_filter_items</strong>(items, opt: {}) &#x21d2; <tt>Object</tt>
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+ </h3>
2921
2830
  </div>
2922
2831
 
2923
2832
  <div class="method_details ">
@@ -3288,6 +3197,8 @@ interval is 0</p>
3288
3197
  <div class="discussion">
3289
3198
  <p>Display an interactive menu of entries</p>
3290
3199
 
3200
+ <p>Options hash is shared with #filter_items and #act_on</p>
3201
+
3291
3202
 
3292
3203
  </div>
3293
3204
  </div>
@@ -3670,9 +3581,9 @@ All</p>
3670
3581
  </div>
3671
3582
 
3672
3583
  <div class="method_details ">
3673
- <h3 class="signature " id="move_item-instance_method">
3584
+ <h3 class="signature " id="next_item-instance_method">
3674
3585
 
3675
- #<strong>move_item</strong>(item, section, label: true) &#x21d2; <tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>
3586
+ #<strong>next_item</strong>(item, options = {}) &#x21d2; <tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>
3676
3587
 
3677
3588
 
3678
3589
 
@@ -3680,8 +3591,7 @@ All</p>
3680
3591
 
3681
3592
  </h3><div class="docstring">
3682
3593
  <div class="discussion">
3683
- <p>Move item from current section to
3684
- destination section</p>
3594
+ <p>Get next item in the index</p>
3685
3595
 
3686
3596
 
3687
3597
  </div>
@@ -3700,22 +3610,24 @@ All</p>
3700
3610
 
3701
3611
 
3702
3612
  &mdash;
3703
- <div class='inline'><p>The item to move</p>
3613
+ <div class='inline'><p>target item</p>
3704
3614
  </div>
3705
3615
 
3706
3616
  </li>
3707
3617
 
3708
3618
  <li>
3709
3619
 
3710
- <span class='name'>section</span>
3620
+ <span class='name'>options</span>
3711
3621
 
3712
3622
 
3713
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
3623
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
3624
+
3714
3625
 
3626
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
3715
3627
 
3716
3628
 
3717
3629
  &mdash;
3718
- <div class='inline'><p>The destination section</p>
3630
+ <div class='inline'><p>additional options</p>
3719
3631
  </div>
3720
3632
 
3721
3633
  </li>
@@ -3733,20 +3645,27 @@ All</p>
3733
3645
 
3734
3646
 
3735
3647
  &mdash;
3736
- <div class='inline'><p>Updated item</p>
3648
+ <div class='inline'><p>the next chronological item in the index</p>
3737
3649
  </div>
3738
3650
 
3739
3651
  </li>
3740
3652
 
3741
3653
  </ul>
3742
3654
 
3743
- </div>
3655
+ <p class="tag_title">See Also:</p>
3656
+ <ul class="see">
3657
+
3658
+ <li><span class='object_link'><a href="#filter_items-instance_method" title="Doing::WWID#filter_items (method)">#filter_items</a></span></li>
3659
+
3660
+ </ul>
3661
+
3662
+ </div>
3744
3663
  </div>
3745
3664
 
3746
3665
  <div class="method_details ">
3747
- <h3 class="signature " id="next_item-instance_method">
3666
+ <h3 class="signature " id="recent-instance_method">
3748
3667
 
3749
- #<strong>next_item</strong>(item, options = {}) &#x21d2; <tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>
3668
+ #<strong>recent</strong>(count = 10, section = nil, opt = {}) &#x21d2; <tt>Object</tt>
3750
3669
 
3751
3670
 
3752
3671
 
@@ -3754,7 +3673,7 @@ All</p>
3754
3673
 
3755
3674
  </h3><div class="docstring">
3756
3675
  <div class="discussion">
3757
- <p>Get next item in the index</p>
3676
+ <p>Show recent entries</p>
3758
3677
 
3759
3678
 
3760
3679
  </div>
@@ -3765,70 +3684,65 @@ All</p>
3765
3684
 
3766
3685
  <li>
3767
3686
 
3768
- <span class='name'>item</span>
3687
+ <span class='name'>count</span>
3769
3688
 
3770
3689
 
3771
- <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
3690
+ <span class='type'>(<tt>Integer</tt>)</span>
3691
+
3772
3692
 
3693
+ <em class="default">(defaults to: <tt>10</tt>)</em>
3773
3694
 
3774
3695
 
3775
3696
  &mdash;
3776
- <div class='inline'><p>target item</p>
3697
+ <div class='inline'><p>The number to show</p>
3777
3698
  </div>
3778
3699
 
3779
3700
  </li>
3780
3701
 
3781
3702
  <li>
3782
3703
 
3783
- <span class='name'>options</span>
3704
+ <span class='name'>section</span>
3784
3705
 
3785
3706
 
3786
- <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
3707
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
3787
3708
 
3788
3709
 
3789
- <em class="default">(defaults to: <tt>{}</tt>)</em>
3710
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3790
3711
 
3791
3712
 
3792
3713
  &mdash;
3793
- <div class='inline'><p>additional options</p>
3714
+ <div class='inline'><p>The section to show from, default Currently</p>
3794
3715
  </div>
3795
3716
 
3796
3717
  </li>
3797
3718
 
3798
- </ul>
3799
-
3800
- <p class="tag_title">Returns:</p>
3801
- <ul class="return">
3802
-
3803
3719
  <li>
3804
3720
 
3721
+ <span class='name'>opt</span>
3805
3722
 
3806
- <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
3807
3723
 
3724
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
3725
+
3726
+
3727
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
3808
3728
 
3809
3729
 
3810
3730
  &mdash;
3811
- <div class='inline'><p>the next chronological item in the index</p>
3731
+ <div class='inline'><p>Additional Options</p>
3812
3732
  </div>
3813
3733
 
3814
3734
  </li>
3815
3735
 
3816
3736
  </ul>
3817
3737
 
3818
- <p class="tag_title">See Also:</p>
3819
- <ul class="see">
3820
-
3821
- <li><span class='object_link'><a href="#filter_items-instance_method" title="Doing::WWID#filter_items (method)">#filter_items</a></span></li>
3822
-
3823
- </ul>
3824
3738
 
3825
3739
  </div>
3826
3740
  </div>
3827
3741
 
3828
3742
  <div class="method_details ">
3829
- <h3 class="signature " id="recent-instance_method">
3743
+ <h3 class="signature " id="repeat_item-instance_method">
3830
3744
 
3831
- #<strong>recent</strong>(count = 10, section = nil, opt = {}) &#x21d2; <tt>Object</tt>
3745
+ #<strong>repeat_item</strong>(item, opt = {}) &#x21d2; <tt>Object</tt>
3832
3746
 
3833
3747
 
3834
3748
 
@@ -3836,7 +3750,7 @@ All</p>
3836
3750
 
3837
3751
  </h3><div class="docstring">
3838
3752
  <div class="discussion">
3839
- <p>Show recent entries</p>
3753
+ <p>Duplicate an item and add it as a new item</p>
3840
3754
 
3841
3755
 
3842
3756
  </div>
@@ -3847,71 +3761,116 @@ All</p>
3847
3761
 
3848
3762
  <li>
3849
3763
 
3850
- <span class='name'>count</span>
3764
+ <span class='name'>item</span>
3851
3765
 
3852
3766
 
3853
- <span class='type'>(<tt>Integer</tt>)</span>
3854
-
3767
+ <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
3855
3768
 
3856
- <em class="default">(defaults to: <tt>10</tt>)</em>
3857
3769
 
3858
3770
 
3859
3771
  &mdash;
3860
- <div class='inline'><p>The number to show</p>
3772
+ <div class='inline'><p>the item to duplicate</p>
3861
3773
  </div>
3862
3774
 
3863
3775
  </li>
3864
3776
 
3865
3777
  <li>
3866
3778
 
3867
- <span class='name'>section</span>
3779
+ <span class='name'>opt</span>
3868
3780
 
3869
3781
 
3870
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
3782
+ <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
3871
3783
 
3872
3784
 
3873
- <em class="default">(defaults to: <tt>nil</tt>)</em>
3785
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
3874
3786
 
3875
3787
 
3876
3788
  &mdash;
3877
- <div class='inline'><p>The section to show from, default Currently</p>
3789
+ <div class='inline'><p>additional options</p>
3878
3790
  </div>
3879
3791
 
3880
3792
  </li>
3881
3793
 
3882
- <li>
3794
+ </ul>
3795
+
3796
+
3797
+
3798
+
3799
+
3800
+
3801
+ <p class="tag_title">Options Hash (<tt>opt</tt>):</p>
3802
+ <ul class="option">
3883
3803
 
3884
- <span class='name'>opt</span>
3804
+ <li>
3805
+ <span class="name">:editor</span>
3806
+ <span class="type">(<tt>Boolean</tt>)</span>
3807
+ <span class="default">
3808
+
3809
+ </span>
3810
+
3811
+ &mdash; <div class='inline'><p>open new item in editor</p>
3812
+ </div>
3813
+
3814
+ </li>
3885
3815
 
3816
+ <li>
3817
+ <span class="name">:date</span>
3818
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
3819
+ <span class="default">
3820
+
3821
+ </span>
3822
+
3823
+ &mdash; <div class='inline'><p>set start date</p>
3824
+ </div>
3825
+
3826
+ </li>
3886
3827
 
3887
- <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
3828
+ <li>
3829
+ <span class="name">:in</span>
3830
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
3831
+ <span class="default">
3832
+
3833
+ </span>
3834
+
3835
+ &mdash; <div class='inline'><p>add new item to section :in</p>
3836
+ </div>
3837
+
3838
+ </li>
3888
3839
 
3840
+ <li>
3841
+ <span class="name">:note</span>
3842
+ <span class="type">(<tt><span class='object_link'><a href="Note.html" title="Doing::Note (class)">Note</a></span></tt>)</span>
3843
+ <span class="default">
3844
+
3845
+ </span>
3846
+
3847
+ &mdash; <div class='inline'><p>add note to new item</p>
3848
+ </div>
3849
+
3850
+ </li>
3889
3851
 
3890
- <em class="default">(defaults to: <tt>{}</tt>)</em>
3852
+ </ul>
3853
+
3854
+
3855
+ <p class="tag_title">Returns:</p>
3856
+ <ul class="return">
3857
+
3858
+ <li>
3891
3859
 
3892
3860
 
3893
- &mdash;
3894
- <div class='inline'><p>Additional Options</p>
3861
+ <span class='type'></span>
3862
+
3863
+
3864
+
3865
+
3866
+ <div class='inline'><p>nothing</p>
3895
3867
  </div>
3896
3868
 
3897
3869
  </li>
3898
3870
 
3899
3871
  </ul>
3900
3872
 
3901
-
3902
- </div>
3903
3873
  </div>
3904
-
3905
- <div class="method_details ">
3906
- <h3 class="signature " id="repeat_item-instance_method">
3907
-
3908
- #<strong>repeat_item</strong>(item, opt = {}) &#x21d2; <tt>Object</tt>
3909
-
3910
-
3911
-
3912
-
3913
-
3914
- </h3>
3915
3874
  </div>
3916
3875
 
3917
3876
  <div class="method_details ">
@@ -3966,7 +3925,54 @@ All</p>
3966
3925
 
3967
3926
 
3968
3927
 
3969
- </h3>
3928
+ </h3><div class="docstring">
3929
+ <div class="discussion">
3930
+ <p>Reset start date to current time, optionally remove
3931
+ done tag (resume)</p>
3932
+
3933
+
3934
+ </div>
3935
+ </div>
3936
+ <div class="tags">
3937
+ <p class="tag_title">Parameters:</p>
3938
+ <ul class="param">
3939
+
3940
+ <li>
3941
+
3942
+ <span class='name'>item</span>
3943
+
3944
+
3945
+ <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
3946
+
3947
+
3948
+
3949
+ &mdash;
3950
+ <div class='inline'><p>the item to reset/resume</p>
3951
+ </div>
3952
+
3953
+ </li>
3954
+
3955
+ <li>
3956
+
3957
+ <span class='name'>resume</span>
3958
+
3959
+
3960
+ <span class='type'>(<tt>Boolean</tt>)</span>
3961
+
3962
+
3963
+ <em class="default">(defaults to: <tt>false</tt>)</em>
3964
+
3965
+
3966
+ &mdash;
3967
+ <div class='inline'><p>removing @done tag if true</p>
3968
+ </div>
3969
+
3970
+ </li>
3971
+
3972
+ </ul>
3973
+
3974
+
3975
+ </div>
3970
3976
  </div>
3971
3977
 
3972
3978
  <div class="method_details ">
@@ -4129,144 +4135,91 @@ instance of a given tag should exist (@meanwhile)</p>
4129
4135
 
4130
4136
  </ul>
4131
4137
 
4132
-
4133
- </div>
4134
- </div>
4135
-
4136
- <div class="method_details ">
4137
- <h3 class="signature " id="tag_groups-instance_method">
4138
-
4139
- #<strong>tag_groups</strong>(items, opt: {}) &#x21d2; <tt>Object</tt>
4140
-
4141
-
4142
-
4143
-
4144
4138
 
4145
- </h3>
4146
- </div>
4147
4139
 
4148
- <div class="method_details ">
4149
- <h3 class="signature " id="tag_item-instance_method">
4150
-
4151
- #<strong>tag_item</strong>(item, tags, remove: false, date: false, single: false) &#x21d2; <tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>
4152
-
4153
-
4154
-
4155
-
4156
-
4157
- </h3><div class="docstring">
4158
- <div class="discussion">
4159
- <p>Tag an item from the index</p>
4160
-
4161
-
4162
- </div>
4163
- </div>
4164
- <div class="tags">
4165
- <p class="tag_title">Parameters:</p>
4166
- <ul class="param">
4167
-
4168
- <li>
4169
-
4170
- <span class='name'>item</span>
4171
-
4172
-
4173
- <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
4174
-
4175
-
4140
+
4141
+
4142
+
4143
+ <p class="tag_title">Options Hash (<tt>opt</tt>):</p>
4144
+ <ul class="option">
4176
4145
 
4177
- &mdash;
4178
- <div class='inline'><p>The item to tag</p>
4146
+ <li>
4147
+ <span class="name">:section</span>
4148
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
4149
+ <span class="default">
4150
+
4151
+ </span>
4152
+
4153
+ &mdash; <div class='inline'><p>target section</p>
4179
4154
  </div>
4155
+
4156
+ </li>
4180
4157
 
4181
- </li>
4182
-
4183
- <li>
4184
-
4185
- <span class='name'>tags</span>
4186
-
4187
-
4188
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
4189
-
4190
-
4191
-
4192
- &mdash;
4193
- <div class='inline'><p>The tag to apply</p>
4158
+ <li>
4159
+ <span class="name">:archive</span>
4160
+ <span class="type">(<tt>Boolean</tt>)</span>
4161
+ <span class="default">
4162
+
4163
+ </span>
4164
+
4165
+ &mdash; <div class='inline'><p>archive old item</p>
4194
4166
  </div>
4167
+
4168
+ </li>
4195
4169
 
4196
- </li>
4197
-
4198
- <li>
4199
-
4200
- <span class='name'>remove</span>
4201
-
4202
-
4203
- <span class='type'>(<tt>Boolean</tt>)</span>
4204
-
4205
-
4206
- <em class="default">(defaults to: <tt>false</tt>)</em>
4207
-
4208
-
4209
- &mdash;
4210
- <div class='inline'><p>remove tags?</p>
4170
+ <li>
4171
+ <span class="name">:back</span>
4172
+ <span class="type">(<tt>Date</tt>)</span>
4173
+ <span class="default">
4174
+
4175
+ </span>
4176
+
4177
+ &mdash; <div class='inline'><p>backdate new item</p>
4211
4178
  </div>
4179
+
4180
+ </li>
4212
4181
 
4213
- </li>
4214
-
4215
- <li>
4216
-
4217
- <span class='name'>date</span>
4218
-
4219
-
4220
- <span class='type'>(<tt>Boolean</tt>)</span>
4221
-
4222
-
4223
- <em class="default">(defaults to: <tt>false</tt>)</em>
4224
-
4225
-
4226
- &mdash;
4227
- <div class='inline'><p>Include timestamp?</p>
4182
+ <li>
4183
+ <span class="name">:new_item</span>
4184
+ <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
4185
+ <span class="default">
4186
+
4187
+ </span>
4188
+
4189
+ &mdash; <div class='inline'><p>content to use for new item</p>
4228
4190
  </div>
4191
+
4192
+ </li>
4229
4193
 
4230
- </li>
4231
-
4232
- <li>
4233
-
4234
- <span class='name'>single</span>
4235
-
4236
-
4237
- <span class='type'>(<tt>Boolean</tt>)</span>
4238
-
4239
-
4240
- <em class="default">(defaults to: <tt>false</tt>)</em>
4241
-
4242
-
4243
- &mdash;
4244
- <div class='inline'><p>Log as a single change?</p>
4194
+ <li>
4195
+ <span class="name">:note</span>
4196
+ <span class="type">(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
4197
+ <span class="default">
4198
+
4199
+ </span>
4200
+
4201
+ &mdash; <div class='inline'><p>note content for new item</p>
4245
4202
  </div>
4203
+
4204
+ </li>
4246
4205
 
4247
- </li>
4206
+ </ul>
4248
4207
 
4249
- </ul>
4250
4208
 
4251
- <p class="tag_title">Returns:</p>
4252
- <ul class="return">
4253
-
4254
- <li>
4255
-
4256
-
4257
- <span class='type'>(<tt><span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span></tt>)</span>
4258
-
4259
-
4260
-
4261
- &mdash;
4262
- <div class='inline'><p>updated item</p>
4209
+
4263
4210
  </div>
4264
-
4265
- </li>
4211
+ </div>
4212
+
4213
+ <div class="method_details ">
4214
+ <h3 class="signature " id="tag_groups-instance_method">
4215
+
4216
+ #<strong>tag_groups</strong>(items, opt: {}) &#x21d2; <tt>Object</tt>
4266
4217
 
4267
- </ul>
4268
4218
 
4269
- </div>
4219
+
4220
+
4221
+
4222
+ </h3>
4270
4223
  </div>
4271
4224
 
4272
4225
  <div class="method_details ">
@@ -4489,75 +4442,6 @@ json, or text)</p>
4489
4442
  </ul>
4490
4443
 
4491
4444
 
4492
- </div>
4493
- </div>
4494
-
4495
- <div class="method_details ">
4496
- <h3 class="signature " id="update_item-instance_method">
4497
-
4498
- #<strong>update_item</strong>(old_item, new_item) &#x21d2; <tt>Object</tt>
4499
-
4500
-
4501
-
4502
-
4503
-
4504
- </h3><div class="docstring">
4505
- <div class="discussion">
4506
- <p>Update an item in the index with a modified item</p>
4507
-
4508
-
4509
- </div>
4510
- </div>
4511
- <div class="tags">
4512
- <p class="tag_title">Parameters:</p>
4513
- <ul class="param">
4514
-
4515
- <li>
4516
-
4517
- <span class='name'>old_item</span>
4518
-
4519
-
4520
- <span class='type'></span>
4521
-
4522
-
4523
-
4524
- &mdash;
4525
- <div class='inline'><p>The old item</p>
4526
- </div>
4527
-
4528
- </li>
4529
-
4530
- <li>
4531
-
4532
- <span class='name'>new_item</span>
4533
-
4534
-
4535
- <span class='type'></span>
4536
-
4537
-
4538
-
4539
- &mdash;
4540
- <div class='inline'><p>The new item</p>
4541
- </div>
4542
-
4543
- </li>
4544
-
4545
- </ul>
4546
-
4547
- <p class="tag_title">Raises:</p>
4548
- <ul class="raise">
4549
-
4550
- <li>
4551
-
4552
-
4553
- <span class='type'>(<tt>ItemNotFound</tt>)</span>
4554
-
4555
-
4556
-
4557
- </li>
4558
-
4559
- </ul>
4560
-
4561
4445
  </div>
4562
4446
  </div>
4563
4447
 
@@ -4732,83 +4616,6 @@ json, or text)</p>
4732
4616
  </ul>
4733
4617
 
4734
4618
 
4735
- </div>
4736
- </div>
4737
-
4738
- <div class="method_details ">
4739
- <h3 class="signature " id="yn-instance_method">
4740
-
4741
- #<strong>yn</strong>(question, default_response: false) &#x21d2; <tt>Bool</tt>
4742
-
4743
-
4744
-
4745
-
4746
-
4747
- </h3><div class="docstring">
4748
- <div class="discussion">
4749
- <p>Ask a yes or no question in the terminal</p>
4750
-
4751
-
4752
- </div>
4753
- </div>
4754
- <div class="tags">
4755
- <p class="tag_title">Parameters:</p>
4756
- <ul class="param">
4757
-
4758
- <li>
4759
-
4760
- <span class='name'>question</span>
4761
-
4762
-
4763
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
4764
-
4765
-
4766
-
4767
- &mdash;
4768
- <div class='inline'><p>The question
4769
- to ask</p>
4770
- </div>
4771
-
4772
- </li>
4773
-
4774
- <li>
4775
-
4776
- <span class='name'>default_response</span>
4777
-
4778
-
4779
- <span class='type'>(<tt>Bool</tt>)</span>
4780
-
4781
-
4782
- <em class="default">(defaults to: <tt>false</tt>)</em>
4783
-
4784
-
4785
- &mdash;
4786
- <div class='inline'><p>default
4787
- response if no input</p>
4788
- </div>
4789
-
4790
- </li>
4791
-
4792
- </ul>
4793
-
4794
- <p class="tag_title">Returns:</p>
4795
- <ul class="return">
4796
-
4797
- <li>
4798
-
4799
-
4800
- <span class='type'>(<tt>Bool</tt>)</span>
4801
-
4802
-
4803
-
4804
- &mdash;
4805
- <div class='inline'><p>yes or no</p>
4806
- </div>
4807
-
4808
- </li>
4809
-
4810
- </ul>
4811
-
4812
4619
  </div>
4813
4620
  </div>
4814
4621
 
@@ -4817,7 +4624,7 @@ response if no input</p>
4817
4624
  </div>
4818
4625
 
4819
4626
  <div id="footer">
4820
- Generated on Thu Nov 18 16:39:12 2021 by
4627
+ Generated on Sat Nov 27 10:06:03 2021 by
4821
4628
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4822
4629
  0.9.26 (ruby-3.0.1).
4823
4630
  </div>