doing 2.1.16 → 2.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +8 -8
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +20 -0
  6. data/Gemfile.lock +1 -1
  7. data/README.md +1 -1
  8. data/bin/doing +23 -2
  9. data/docs/doc/Array.html +1 -1
  10. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  11. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  12. data/docs/doc/BooleanTermParser/Query.html +1 -1
  13. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  14. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  15. data/docs/doc/BooleanTermParser.html +1 -1
  16. data/docs/doc/Doing/Color.html +6 -2
  17. data/docs/doc/Doing/Completion.html +1 -1
  18. data/docs/doc/Doing/Configuration.html +4 -3
  19. data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  20. data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  21. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  22. data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
  23. data/docs/doc/Doing/Errors/NoResults.html +1 -1
  24. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  25. data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
  26. data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
  27. data/docs/doc/Doing/Errors.html +1 -1
  28. data/docs/doc/Doing/Hooks.html +1 -1
  29. data/docs/doc/Doing/Item.html +119 -1
  30. data/docs/doc/Doing/Items.html +1 -1
  31. data/docs/doc/Doing/LogAdapter.html +1 -1
  32. data/docs/doc/Doing/Note.html +1 -1
  33. data/docs/doc/Doing/Pager.html +1 -1
  34. data/docs/doc/Doing/Plugins.html +1 -1
  35. data/docs/doc/Doing/Prompt.html +1 -1
  36. data/docs/doc/Doing/Section.html +1 -1
  37. data/docs/doc/Doing/TemplateString.html +2 -2
  38. data/docs/doc/Doing/Util/Backup.html +1 -1
  39. data/docs/doc/Doing/Util.html +1 -1
  40. data/docs/doc/Doing/WWID.html +1 -1
  41. data/docs/doc/Doing.html +2 -2
  42. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  43. data/docs/doc/GLI/Commands.html +1 -1
  44. data/docs/doc/GLI.html +1 -1
  45. data/docs/doc/Hash.html +1 -1
  46. data/docs/doc/Numeric.html +1 -1
  47. data/docs/doc/PhraseParser/Operator.html +1 -1
  48. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  49. data/docs/doc/PhraseParser/Query.html +1 -1
  50. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  51. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  52. data/docs/doc/PhraseParser/TermClause.html +1 -1
  53. data/docs/doc/PhraseParser.html +1 -1
  54. data/docs/doc/Status.html +1 -1
  55. data/docs/doc/String.html +137 -1
  56. data/docs/doc/Symbol.html +1 -1
  57. data/docs/doc/Time.html +1 -1
  58. data/docs/doc/_index.html +1 -1
  59. data/docs/doc/file.README.html +2 -2
  60. data/docs/doc/index.html +2 -2
  61. data/docs/doc/method_list.html +158 -110
  62. data/docs/doc/top-level-namespace.html +1 -1
  63. data/doing.rdoc +21 -1
  64. data/lib/completion/_doing.zsh +5 -5
  65. data/lib/completion/doing.bash +8 -8
  66. data/lib/completion/doing.fish +4 -0
  67. data/lib/doing/colors.rb +4 -0
  68. data/lib/doing/configuration.rb +2 -1
  69. data/lib/doing/item.rb +51 -0
  70. data/lib/doing/log_adapter.rb +2 -2
  71. data/lib/doing/plugins/export/template_export.rb +2 -0
  72. data/lib/doing/prompt.rb +16 -5
  73. data/lib/doing/string.rb +40 -0
  74. data/lib/doing/version.rb +1 -1
  75. data/lib/doing/wwid.rb +9 -8
  76. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 401f509f952c1f59117bd72b97a7539ee2aa011a876b24ddeacc6b535f7d0021
4
- data.tar.gz: afa5d5ca709bf06ef3c686ca5f6af48b75c6dbd09445c36a4de6c78f793ee879
3
+ metadata.gz: e904ebbd440b847f32f6d2cf8b323b662c974c485453400c058a1c7df08e0cd5
4
+ data.tar.gz: 38077937c8cb1616a83a965f0f4f004812a2c6333bf40a2d7f96832e575369ae
5
5
  SHA512:
6
- metadata.gz: 6b2fa35dd2651785705b36a8ae12aca8e806476c2309b3e580ae06b87f75b0a0ac317389ac0fd21c28bca52a9c623b9c3892556c483230cf8603fd2eb7fdaf5a
7
- data.tar.gz: 100407094cbcda4a0f24350ab84d5b923f367cee8913942e107f5bea177e6133be09819d1d1f408d8dd3ace35eff22446108d6bb377fb6f6149f2057566fbd8a
6
+ metadata.gz: 1981ea1841ac4bf1d0efb5c16a31cfdfc249e102c8d9dc9b006eecdfb501e229ba811c5764389efcde99e7d5b967801dd321a9254f9ed823b307c8ce1e885a44
7
+ data.tar.gz: b6d28943f49011a44970b96aa3f7ddf7e44aef9d4089c6a1cf232d4bebd7021e7b6a7da4cfccdcd89aef5a1dbb45b2f8a05acb1e6c1ec424a742293c0d90d7d5
data/.yardoc/checksums CHANGED
@@ -1,25 +1,25 @@
1
1
  lib/doing/hash.rb c2960de9603dcf90be85ce423d9430de27f4f893
2
- lib/doing/item.rb 017fe4de05ccfd8bab912e744f9dac9e52819b00
2
+ lib/doing/item.rb 276880933fef8a4e1ef7a80e92f0f2b029f8a6e7
3
3
  lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
4
4
  lib/doing/time.rb 60183c3c31532ffea1440c766de0f90042e0fd10
5
5
  lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
6
- lib/doing/wwid.rb ee8ab91af8d34f1fe9c9ec6e6c96e5e4e648a9b0
6
+ lib/doing/wwid.rb 58998ec0fccfa8450f7c065e1994acc6f314e819
7
7
  lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
8
8
  lib/doing/hooks.rb acf6e0615ccf1949f84915c979297845242c1205
9
9
  lib/doing/items.rb 8cda7caaef10645893267262f5eee681e35046ce
10
10
  lib/doing/pager.rb b58e478b0cb8d400ddb97988ba741e3a127b53c3
11
- lib/doing/colors.rb 9a628d48c821313c502deedc5b61a046a2bf79ef
11
+ lib/doing/colors.rb b7239a69e10c5df9378a5843441af5b93c1872f8
12
12
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
13
- lib/doing/prompt.rb d320de9f309a9069725b9e90e19bae808839c06b
14
- lib/doing/string.rb f5cf48e2e700a038aa9edaafdee3066ba117e851
13
+ lib/doing/prompt.rb 1c48923fc61d8714e3fc1f24b52fb8f358a8cc24
14
+ lib/doing/string.rb f5327c42aa2563d95f93d4c77a099b7076c3ea5f
15
15
  lib/doing/symbol.rb 309799458a1bc715c2707307c9a62ab26086275e
16
16
  lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
17
- lib/doing/version.rb 2bdd1caf85f391c64be4f792fe24f8ca017ebc54
17
+ lib/doing/version.rb c8b901ea8187c93194d977cb05924c4a6d6ccc7e
18
18
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
19
19
  lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
20
- lib/doing/log_adapter.rb 267dc637bc9ea445dd07edb8b5dbbe374ff80b2b
20
+ lib/doing/log_adapter.rb 57d831259f48d0757307244d35b87e9ffa9099d9
21
21
  lib/doing/util_backup.rb c13f71072581b1f0d2269853611ba09273261bf9
22
- lib/doing/configuration.rb 61c415e033c99355f5589e799344d60db42bd900
22
+ lib/doing/configuration.rb b8667ff80c7c8830108e5089a5d309356af64151
23
23
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
24
24
  lib/doing/array_chronify.rb 5852b38643aef2e7e796aaf19b2c052a52ee5e2b
25
25
  lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ### 2.1.17
2
+
3
+ 2022-01-18 07:26
4
+
5
+ #### NEW
6
+
7
+ - `--hilite` option for `doing search` to highlight matches in search results (terminal output only)
8
+ - `--hilite` flag for `show` and `view` to highlight results when used with `--search`
9
+
10
+ #### IMPROVED
11
+
12
+ - Show preview of up to 5 items when confirming a delete operation so you actually know what you're deleting
13
+ - Allow `--ask` when creating new entry via STDIN pipe
14
+ - Tab completion for known tags when creating an entry interactively
15
+ - Add purple as an alias for magenta in template colors
16
+
17
+ #### FIXED
18
+
19
+ - Clear STDIN before requesting input
20
+
1
21
  ### 2.1.16
2
22
 
3
23
  2022-01-18 02:45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.16)
4
+ doing (2.1.17)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
7
  gli (~> 2.19, >= 2.19.2)
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.15<!--END VER-->.
11
+ The current version of `doing` is <!--VER-->2.1.16<!--END VER-->.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
data/bin/doing CHANGED
@@ -1236,14 +1236,20 @@ command %i[now next] do |c|
1236
1236
  date = d
1237
1237
  end
1238
1238
  note.add(options[:note]) if options[:note]
1239
- note.add(ask_note) unless ask_note.empty?
1239
+ if ask_note.empty? && options[:ask]
1240
+ ask_note = Doing::Prompt.read_lines(prompt: 'Add a note')
1241
+ note.add(ask_note) unless ask_note.empty?
1242
+ end
1240
1243
  wwid.add_item(title.cap_first, section, { note: note, back: date, timed: options[:finish_last] })
1241
1244
  wwid.write(wwid.doing_file)
1242
1245
  else
1243
- title = Doing::Prompt.read_line(prompt: 'Entry content')
1246
+ tags = wwid.all_tags(wwid.content)
1247
+ $stderr.puts Doing::Color.boldgreen("Add a new entry. Tab will autocomplete known tags. Ctrl-c to cancel.")
1248
+ title = Doing::Prompt.read_line(prompt: 'Entry content', completions: tags)
1244
1249
  raise EmptyInput, 'You must provide content when creating a new entry' if title.strip.empty?
1245
1250
 
1246
1251
  note = Doing::Note.new
1252
+ note.add(options[:note]) if options[:note]
1247
1253
  res = Doing::Prompt.yn('Add a note', default_response: false)
1248
1254
  ask_note = res ? Doing::Prompt.read_lines(prompt: 'Enter note') : []
1249
1255
  note.add(ask_note)
@@ -1744,6 +1750,9 @@ command %i[grep search] do |c|
1744
1750
  c.arg_name 'TYPE'
1745
1751
  c.flag [:case], must_match: /^[csi]/, default_value: settings.dig('search', 'case')
1746
1752
 
1753
+ c.desc "Highlight search matches in output. Only affects command line output"
1754
+ c.switch %i[h hilite], default_value: settings.dig('search', 'highlight')
1755
+
1747
1756
  c.desc "Edit matching entries with #{Doing::Util.default_editor}"
1748
1757
  c.switch %i[e editor], negatable: false, default_value: false
1749
1758
 
@@ -1821,6 +1830,9 @@ command :last do |c|
1821
1830
  c.arg_name 'QUERY'
1822
1831
  c.flag [:search]
1823
1832
 
1833
+ c.desc "Highlight search matches in output. Only affects command line output"
1834
+ c.switch %i[h hilite], default_value: settings.dig('search', 'highlight')
1835
+
1824
1836
  c.desc 'Perform a tag value query ("@done > two hours ago" or "@progress < 50"). May be used multiple times, combined with --bool'
1825
1837
  c.arg_name 'QUERY'
1826
1838
  c.flag [:val], multiple: true, must_match: REGEX_VALUE_QUERY
@@ -1875,6 +1887,7 @@ command :last do |c|
1875
1887
  search: options[:search],
1876
1888
  fuzzy: options[:fuzzy],
1877
1889
  case: options[:case],
1890
+ hilite: options[:hilite],
1878
1891
  negate: options[:not],
1879
1892
  tag: options[:tag],
1880
1893
  tag_bool: options[:bool],
@@ -2020,6 +2033,9 @@ command :show do |c|
2020
2033
  c.arg_name 'QUERY'
2021
2034
  c.flag [:search]
2022
2035
 
2036
+ c.desc "Highlight search matches in output. Only affects command line output"
2037
+ c.switch %i[h hilite], default_value: settings.dig('search', 'highlight')
2038
+
2023
2039
  # c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
2024
2040
  # c.switch [:fuzzy], default_value: false, negatable: false
2025
2041
 
@@ -2167,6 +2183,7 @@ command :show do |c|
2167
2183
  opt[:sort_tags] = options[:tag_sort] =~ /^n/i
2168
2184
  opt[:count] = options[:count].to_i
2169
2185
  opt[:highlight] = true
2186
+ opt[:hilite] = options[:hilite]
2170
2187
  opt[:order] = options[:sort].normalize_order
2171
2188
  opt[:tag] = nil
2172
2189
  opt[:tag_order] = options[:tag_order].normalize_order
@@ -2493,6 +2510,9 @@ command :view do |c|
2493
2510
  c.arg_name 'QUERY'
2494
2511
  c.flag [:search]
2495
2512
 
2513
+ c.desc "Highlight search matches in output. Only affects command line output"
2514
+ c.switch %i[h hilite], default_value: settings.dig('search', 'highlight')
2515
+
2496
2516
  # c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
2497
2517
  # c.switch [:fuzzy], default_value: false, negatable: false
2498
2518
 
@@ -2653,6 +2673,7 @@ command :view do |c|
2653
2673
  opts[:count] = count
2654
2674
  opts[:format] = date_format
2655
2675
  opts[:highlight] = options[:color]
2676
+ opts[:hilite] = options[:hilite]
2656
2677
  opts[:only_timed] = only_timed
2657
2678
  opts[:order] = order
2658
2679
  opts[:output] = options[:interactive] ? nil : options[:output]
data/docs/doc/Array.html CHANGED
@@ -654,7 +654,7 @@ minutes]</p>
654
654
  </div>
655
655
 
656
656
  <div id="footer">
657
- Generated on Tue Jan 18 02:48:57 2022 by
657
+ Generated on Tue Jan 18 07:38:21 2022 by
658
658
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
659
659
  0.9.26 (ruby-3.0.1).
660
660
  </div>
@@ -283,7 +283,7 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Tue Jan 18 02:48:58 2022 by
286
+ Generated on Tue Jan 18 07:38:21 2022 by
287
287
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
288
  0.9.26 (ruby-3.0.1).
289
289
  </div>
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Tue Jan 18 02:48:58 2022 by
165
+ Generated on Tue Jan 18 07:38:21 2022 by
166
166
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
167
  0.9.26 (ruby-3.0.1).
168
168
  </div>
@@ -407,7 +407,7 @@
407
407
  </div>
408
408
 
409
409
  <div id="footer">
410
- Generated on Tue Jan 18 02:48:58 2022 by
410
+ Generated on Tue Jan 18 07:38:21 2022 by
411
411
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
412
412
  0.9.26 (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 Tue Jan 18 02:48:58 2022 by
128
+ Generated on Tue Jan 18 07:38:21 2022 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.26 (ruby-3.0.1).
131
131
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Jan 18 02:48:58 2022 by
117
+ Generated on Tue Jan 18 07:38:21 2022 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.26 (ruby-3.0.1).
120
120
  </div>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Tue Jan 18 02:48:57 2022 by
108
+ Generated on Tue Jan 18 07:38:21 2022 by
109
109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
110
  0.9.26 (ruby-3.0.1).
111
111
  </div>
@@ -81,7 +81,7 @@
81
81
 
82
82
  <dl>
83
83
  <dt>Included in:</dt>
84
- <dd><span class='object_link'><a href="" title="Doing::Color (module)">Color</a></span>, <span class='object_link'><a href="Prompt.html" title="Doing::Prompt (module)">Prompt</a></span>, <span class='object_link'><a href="TemplateString.html" title="Doing::TemplateString (class)">TemplateString</a></span>, <span class='object_link'><a href="WWID.html" title="Doing::WWID (class)">WWID</a></span>, <span class='object_link'><a href="../String.html" title="String (class)">String</a></span></dd>
84
+ <dd><span class='object_link'><a href="" title="Doing::Color (module)">Color</a></span>, <span class='object_link'><a href="Item.html" title="Doing::Item (class)">Item</a></span>, <span class='object_link'><a href="Prompt.html" title="Doing::Prompt (module)">Prompt</a></span>, <span class='object_link'><a href="TemplateString.html" title="Doing::TemplateString (class)">TemplateString</a></span>, <span class='object_link'><a href="WWID.html" title="Doing::WWID (class)">WWID</a></span>, <span class='object_link'><a href="../String.html" title="String (class)">String</a></span></dd>
85
85
  </dl>
86
86
 
87
87
 
@@ -144,6 +144,7 @@
144
144
  <span class='lbracket'>[</span><span class='symbol'>:yellow</span><span class='comma'>,</span> <span class='int'>33</span><span class='rbracket'>]</span><span class='comma'>,</span>
145
145
  <span class='lbracket'>[</span><span class='symbol'>:blue</span><span class='comma'>,</span> <span class='int'>34</span><span class='rbracket'>]</span><span class='comma'>,</span>
146
146
  <span class='lbracket'>[</span><span class='symbol'>:magenta</span><span class='comma'>,</span> <span class='int'>35</span><span class='rbracket'>]</span><span class='comma'>,</span>
147
+ <span class='lbracket'>[</span><span class='symbol'>:purple</span><span class='comma'>,</span> <span class='int'>35</span><span class='rbracket'>]</span><span class='comma'>,</span>
147
148
  <span class='lbracket'>[</span><span class='symbol'>:cyan</span><span class='comma'>,</span> <span class='int'>36</span><span class='rbracket'>]</span><span class='comma'>,</span>
148
149
  <span class='lbracket'>[</span><span class='symbol'>:white</span><span class='comma'>,</span> <span class='int'>37</span><span class='rbracket'>]</span><span class='comma'>,</span>
149
150
  <span class='lbracket'>[</span><span class='symbol'>:bgblack</span><span class='comma'>,</span> <span class='int'>40</span><span class='rbracket'>]</span><span class='comma'>,</span>
@@ -152,6 +153,7 @@
152
153
  <span class='lbracket'>[</span><span class='symbol'>:bgyellow</span><span class='comma'>,</span> <span class='int'>43</span><span class='rbracket'>]</span><span class='comma'>,</span>
153
154
  <span class='lbracket'>[</span><span class='symbol'>:bgblue</span><span class='comma'>,</span> <span class='int'>44</span><span class='rbracket'>]</span><span class='comma'>,</span>
154
155
  <span class='lbracket'>[</span><span class='symbol'>:bgmagenta</span><span class='comma'>,</span> <span class='int'>45</span><span class='rbracket'>]</span><span class='comma'>,</span>
156
+ <span class='lbracket'>[</span><span class='symbol'>:bgpurple</span><span class='comma'>,</span> <span class='int'>45</span><span class='rbracket'>]</span><span class='comma'>,</span>
155
157
  <span class='lbracket'>[</span><span class='symbol'>:bgcyan</span><span class='comma'>,</span> <span class='int'>46</span><span class='rbracket'>]</span><span class='comma'>,</span>
156
158
  <span class='lbracket'>[</span><span class='symbol'>:bgwhite</span><span class='comma'>,</span> <span class='int'>47</span><span class='rbracket'>]</span><span class='comma'>,</span>
157
159
  <span class='lbracket'>[</span><span class='symbol'>:boldblack</span><span class='comma'>,</span> <span class='int'>90</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='comment'># High intensity, aixterm (works in OS X)
@@ -160,6 +162,7 @@
160
162
  <span class='lbracket'>[</span><span class='symbol'>:boldyellow</span><span class='comma'>,</span> <span class='int'>93</span><span class='rbracket'>]</span><span class='comma'>,</span>
161
163
  <span class='lbracket'>[</span><span class='symbol'>:boldblue</span><span class='comma'>,</span> <span class='int'>94</span><span class='rbracket'>]</span><span class='comma'>,</span>
162
164
  <span class='lbracket'>[</span><span class='symbol'>:boldmagenta</span><span class='comma'>,</span> <span class='int'>95</span><span class='rbracket'>]</span><span class='comma'>,</span>
165
+ <span class='lbracket'>[</span><span class='symbol'>:boldpurple</span><span class='comma'>,</span> <span class='int'>95</span><span class='rbracket'>]</span><span class='comma'>,</span>
163
166
  <span class='lbracket'>[</span><span class='symbol'>:boldcyan</span><span class='comma'>,</span> <span class='int'>96</span><span class='rbracket'>]</span><span class='comma'>,</span>
164
167
  <span class='lbracket'>[</span><span class='symbol'>:boldwhite</span><span class='comma'>,</span> <span class='int'>97</span><span class='rbracket'>]</span><span class='comma'>,</span>
165
168
  <span class='lbracket'>[</span><span class='symbol'>:boldbgblack</span><span class='comma'>,</span> <span class='int'>100</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='comment'># High intensity background, aixterm (works in OS X)
@@ -168,6 +171,7 @@
168
171
  <span class='lbracket'>[</span><span class='symbol'>:boldbgyellow</span><span class='comma'>,</span> <span class='int'>103</span><span class='rbracket'>]</span><span class='comma'>,</span>
169
172
  <span class='lbracket'>[</span><span class='symbol'>:boldbgblue</span><span class='comma'>,</span> <span class='int'>104</span><span class='rbracket'>]</span><span class='comma'>,</span>
170
173
  <span class='lbracket'>[</span><span class='symbol'>:boldbgmagenta</span><span class='comma'>,</span> <span class='int'>105</span><span class='rbracket'>]</span><span class='comma'>,</span>
174
+ <span class='lbracket'>[</span><span class='symbol'>:boldbgpurple</span><span class='comma'>,</span> <span class='int'>105</span><span class='rbracket'>]</span><span class='comma'>,</span>
171
175
  <span class='lbracket'>[</span><span class='symbol'>:boldbgcyan</span><span class='comma'>,</span> <span class='int'>106</span><span class='rbracket'>]</span><span class='comma'>,</span>
172
176
  <span class='lbracket'>[</span><span class='symbol'>:boldbgwhite</span><span class='comma'>,</span> <span class='int'>107</span><span class='rbracket'>]</span><span class='comma'>,</span>
173
177
  <span class='lbracket'>[</span><span class='symbol'>:softpurple</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0;35;40</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
@@ -508,7 +512,7 @@ ANSI-sequences are stripped from the string.</p>
508
512
  </div>
509
513
 
510
514
  <div id="footer">
511
- Generated on Tue Jan 18 02:48:57 2022 by
515
+ Generated on Tue Jan 18 07:38:21 2022 by
512
516
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
513
517
  0.9.26 (ruby-3.0.1).
514
518
  </div>
@@ -206,7 +206,7 @@ stdout</p>
206
206
  </div>
207
207
 
208
208
  <div id="footer">
209
- Generated on Tue Jan 18 02:48:57 2022 by
209
+ Generated on Tue Jan 18 07:38:21 2022 by
210
210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
211
211
  0.9.26 (ruby-3.0.1).
212
212
  </div>
@@ -210,8 +210,9 @@
210
210
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>search</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='lbrace'>{</span>
211
211
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>matching</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>pattern</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='comment'># fuzzy, pattern, exact
212
212
  </span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>distance</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='int'>3</span><span class='comma'>,</span>
213
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>case</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>smart</span><span class='tstring_end'>&#39;</span></span> <span class='comment'># sensitive, ignore, smart
214
- </span> <span class='rbrace'>}</span><span class='comma'>,</span>
213
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>case</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>smart</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='comment'># sensitive, ignore, smart
214
+ </span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>highlight</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='kw'>false</span>
215
+ <span class='rbrace'>}</span><span class='comma'>,</span>
215
216
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>include_notes</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span>
216
217
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>interaction</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='lbrace'>{</span>
217
218
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>confirm_longer_than</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>5h</span><span class='tstring_end'>&#39;</span></span>
@@ -1104,7 +1105,7 @@ matched, first match wins)</p>
1104
1105
  </div>
1105
1106
 
1106
1107
  <div id="footer">
1107
- Generated on Tue Jan 18 02:48:58 2022 by
1108
+ Generated on Tue Jan 18 07:38:21 2022 by
1108
1109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1109
1110
  0.9.26 (ruby-3.0.1).
1110
1111
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Tue Jan 18 02:48:57 2022 by
241
+ Generated on Tue Jan 18 07:38:21 2022 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.9.26 (ruby-3.0.1).
244
244
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Tue Jan 18 02:48:57 2022 by
179
+ Generated on Tue Jan 18 07:38:21 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.26 (ruby-3.0.1).
182
182
  </div>
@@ -181,7 +181,7 @@
181
181
  </div>
182
182
 
183
183
  <div id="footer">
184
- Generated on Tue Jan 18 02:48:57 2022 by
184
+ Generated on Tue Jan 18 07:38:21 2022 by
185
185
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
186
  0.9.26 (ruby-3.0.1).
187
187
  </div>
@@ -354,7 +354,7 @@
354
354
  </div>
355
355
 
356
356
  <div id="footer">
357
- Generated on Tue Jan 18 02:48:57 2022 by
357
+ Generated on Tue Jan 18 07:38:21 2022 by
358
358
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
359
359
  0.9.26 (ruby-3.0.1).
360
360
  </div>
@@ -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">
@@ -344,6 +355,28 @@
344
355
  <span class="summary_desc"><div class='inline'><p>Updates the title of the Item by expanding natural language dates within configured date tags (tags whose value is expected to be a date).</p>
345
356
  </div></span>
346
357
 
358
+ </li>
359
+
360
+
361
+ <li class="public ">
362
+ <span class="summary_signature">
363
+
364
+ <a href="#highlight_search-instance_method" title="#highlight_search (instance method)">#<strong>highlight_search</strong>(search, distance: nil, negate: false, case_type: nil) &#x21d2; Object </a>
365
+
366
+
367
+
368
+ </span>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+ <span class="summary_desc"><div class='inline'></div></span>
379
+
347
380
  </li>
348
381
 
349
382
 
@@ -691,6 +724,29 @@
691
724
  <span class="summary_desc"><div class='inline'><p>Test if item contains tag(s).</p>
692
725
  </div></span>
693
726
 
727
+ </li>
728
+
729
+
730
+ <li class="public ">
731
+ <span class="summary_signature">
732
+
733
+ <a href="#to_pretty-instance_method" title="#to_pretty (instance method)">#<strong>to_pretty</strong>(elements: %i[date title section]) &#x21d2; Object </a>
734
+
735
+
736
+
737
+ </span>
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+ <span class="summary_desc"><div class='inline'><p>outputs a colored string with relative date and highlighted tags.</p>
748
+ </div></span>
749
+
694
750
  </li>
695
751
 
696
752
 
@@ -720,6 +776,17 @@
720
776
  </ul>
721
777
 
722
778
 
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Color.html" title="Doing::Color (module)">Color</a></span></h3>
789
+ <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>
723
790
  <div id="constructor_details" class="method_details_list">
724
791
  <h2>Constructor Details</h2>
725
792
 
@@ -1098,6 +1165,18 @@ dates</p>
1098
1165
 
1099
1166
 
1100
1167
  </div>
1168
+ </div>
1169
+
1170
+ <div class="method_details ">
1171
+ <h3 class="signature " id="highlight_search-instance_method">
1172
+
1173
+ #<strong>highlight_search</strong>(search, distance: nil, negate: false, case_type: nil) &#x21d2; <tt>Object</tt>
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+ </h3>
1101
1180
  </div>
1102
1181
 
1103
1182
  <div class="method_details ">
@@ -2047,6 +2126,45 @@ thus should not receive a date on the @done tag</p>
2047
2126
 
2048
2127
  </ul>
2049
2128
 
2129
+ </div>
2130
+ </div>
2131
+
2132
+ <div class="method_details ">
2133
+ <h3 class="signature " id="to_pretty-instance_method">
2134
+
2135
+ #<strong>to_pretty</strong>(elements: %i[date title section]) &#x21d2; <tt>Object</tt>
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+ </h3><div class="docstring">
2142
+ <div class="discussion">
2143
+ <p>outputs a colored string with relative date and highlighted tags</p>
2144
+
2145
+
2146
+ </div>
2147
+ </div>
2148
+ <div class="tags">
2149
+
2150
+ <p class="tag_title">Returns:</p>
2151
+ <ul class="return">
2152
+
2153
+ <li>
2154
+
2155
+
2156
+ <span class='type'></span>
2157
+
2158
+
2159
+
2160
+
2161
+ <div class='inline'><p>Pretty representation of the object.</p>
2162
+ </div>
2163
+
2164
+ </li>
2165
+
2166
+ </ul>
2167
+
2050
2168
  </div>
2051
2169
  </div>
2052
2170
 
@@ -2077,7 +2195,7 @@ thus should not receive a date on the @done tag</p>
2077
2195
  </div>
2078
2196
 
2079
2197
  <div id="footer">
2080
- Generated on Tue Jan 18 02:48:57 2022 by
2198
+ Generated on Tue Jan 18 07:38:21 2022 by
2081
2199
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2082
2200
  0.9.26 (ruby-3.0.1).
2083
2201
  </div>