doing 2.1.33 → 2.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/Gemfile.lock +1 -5
- data/README.md +1 -1
- data/bin/commands/config.rb +11 -11
- data/bin/commands/done.rb +2 -2
- data/bin/commands/grep.rb +2 -29
- data/bin/commands/meanwhile.rb +1 -1
- data/bin/commands/now.rb +1 -1
- data/bin/commands/on.rb +6 -16
- data/bin/commands/open.rb +2 -2
- data/bin/commands/recent.rb +2 -14
- data/bin/commands/rotate.rb +17 -0
- data/bin/commands/sections.rb +82 -7
- data/bin/commands/show.rb +1 -21
- data/bin/commands/since.rb +5 -16
- data/bin/commands/today.rb +3 -28
- data/bin/commands/yesterday.rb +2 -35
- data/bin/doing +5 -6
- data/docs/doc/Array.html +1 -1
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/Color.html +1 -1
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +1 -1
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +20 -3
- data/docs/doc/Doing/Items.html +209 -1
- data/docs/doc/Doing/Logger.html +1807 -0
- data/docs/doc/Doing/Note.html +1 -1
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +1 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +1 -1
- data/docs/doc/Doing/Types.html +2 -2
- data/docs/doc/Doing/Util/Backup.html +1 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/WWID.html +3 -53
- data/docs/doc/Doing.html +4 -4
- data/docs/doc/FalseClass.html +1 -1
- data/docs/doc/GLI/Commands/Help.html +1 -1
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/Object.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +1 -1
- data/docs/doc/Symbol.html +1 -1
- data/docs/doc/Time.html +1 -1
- data/docs/doc/TrueClass.html +1 -1
- data/docs/doc/_index.html +10 -10
- data/docs/doc/class_list.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +407 -383
- data/docs/doc/top-level-namespace.html +1 -1
- data/doing.gemspec +0 -1
- data/doing.rdoc +229 -17
- data/lib/completion/_doing.zsh +11 -15
- data/lib/completion/doing.bash +12 -23
- data/lib/completion/doing.fish +38 -12
- data/lib/doing/add_options.rb +36 -1
- data/lib/doing/chronify/string.rb +1 -1
- data/lib/doing/item.rb +9 -2
- data/lib/doing/items.rb +48 -0
- data/lib/doing/{log_adapter.rb → logger.rb} +8 -2
- data/lib/doing/plugins/import/calendar_import.rb +1 -1
- data/lib/doing/plugins/import/doing_import.rb +1 -1
- data/lib/doing/plugins/import/timing_import.rb +1 -1
- data/lib/doing/string/tags.rb +1 -1
- data/lib/doing/types.rb +1 -1
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +43 -43
- data/lib/doing.rb +4 -4
- data/lib/examples/plugins/capture_thing_import.rb +1 -1
- metadata +4 -24
- data/bin/commands/add_section.rb +0 -15
data/bin/doing
CHANGED
|
@@ -63,7 +63,6 @@ Doing.set('backup_dir', ENV['DOING_BACKUP_DIR']) if ENV['DOING_BACKUP_DIR']
|
|
|
63
63
|
|
|
64
64
|
# Set up class vars for backwards compatibility
|
|
65
65
|
@settings = Doing.settings
|
|
66
|
-
@wwid.config = Doing.settings
|
|
67
66
|
|
|
68
67
|
accept BooleanSymbol do |value|
|
|
69
68
|
value.normalize_bool(:pattern)
|
|
@@ -144,8 +143,6 @@ accept TagArray do |value|
|
|
|
144
143
|
value.gsub(/[, ]+/, ' ').split(' ').map { |tag| tag.sub(/^@/, '') }.map(&:strip)
|
|
145
144
|
end
|
|
146
145
|
|
|
147
|
-
commands_from File.expand_path(Doing.setting('plugins.command_path')) if Doing.setting('plugins.command_path')
|
|
148
|
-
|
|
149
146
|
program_desc 'A CLI for a What Was I Doing system'
|
|
150
147
|
program_long_desc %(Doing uses a TaskPaper-like formatting to keep a plain text
|
|
151
148
|
record of what you've been doing, complete with tag-based time tracking. The
|
|
@@ -214,7 +211,7 @@ add_commands(%w[undo redo])
|
|
|
214
211
|
## Hidden commands
|
|
215
212
|
add_commands(%w[commands_accepting install_fzf])
|
|
216
213
|
## Optional commands
|
|
217
|
-
add_commands(%w[again cancel flag meanwhile reset tags today yesterday since
|
|
214
|
+
add_commands(%w[again cancel flag meanwhile reset tags today yesterday since tag_dir colors completion plugins sections template views changes])
|
|
218
215
|
|
|
219
216
|
pre do |global, _command, _options, _args|
|
|
220
217
|
# global[:pager] ||= Doing.setting('paginate')
|
|
@@ -235,7 +232,7 @@ pre do |global, _command, _options, _args|
|
|
|
235
232
|
end
|
|
236
233
|
|
|
237
234
|
on_error do |exception|
|
|
238
|
-
if exception.kind_of?(GLI::UnknownCommand)
|
|
235
|
+
if exception.kind_of?(GLI::UnknownCommand) && ARGV.count > 1
|
|
239
236
|
exit run(['now'].concat(ARGV.unshift(@command)))
|
|
240
237
|
elsif exception.kind_of?(SystemExit)
|
|
241
238
|
false
|
|
@@ -298,7 +295,7 @@ around do |global, command, options, arguments, code|
|
|
|
298
295
|
@wwid.init_doing_file
|
|
299
296
|
end
|
|
300
297
|
Doing.logger.benchmark(:init, :finish)
|
|
301
|
-
|
|
298
|
+
Doing.auto_tag = !global[:noauto]
|
|
302
299
|
|
|
303
300
|
Doing.set('include_notes', false) unless global[:notes]
|
|
304
301
|
|
|
@@ -309,6 +306,8 @@ around do |global, command, options, arguments, code|
|
|
|
309
306
|
Doing.logger.benchmark("command_#{command.name.to_s}".to_sym, :finish)
|
|
310
307
|
end
|
|
311
308
|
|
|
309
|
+
commands_from File.expand_path(Doing.setting('plugins.command_path')) if Doing.setting('plugins.command_path')
|
|
310
|
+
|
|
312
311
|
@command = ARGV[0]
|
|
313
312
|
|
|
314
313
|
exit run(ARGV)
|
data/docs/doc/Array.html
CHANGED
|
@@ -195,7 +195,7 @@ has content</p>
|
|
|
195
195
|
</div>
|
|
196
196
|
|
|
197
197
|
<div id="footer">
|
|
198
|
-
Generated on Fri Feb
|
|
198
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
199
199
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
200
200
|
0.9.27 (ruby-3.0.1).
|
|
201
201
|
</div>
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
</div>
|
|
284
284
|
|
|
285
285
|
<div id="footer">
|
|
286
|
-
Generated on Fri Feb
|
|
286
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
287
287
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
288
288
|
0.9.27 (ruby-3.0.1).
|
|
289
289
|
</div>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div id="footer">
|
|
165
|
-
Generated on Fri Feb
|
|
165
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
166
166
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
167
167
|
0.9.27 (ruby-3.0.1).
|
|
168
168
|
</div>
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
</div>
|
|
408
408
|
|
|
409
409
|
<div id="footer">
|
|
410
|
-
Generated on Fri Feb
|
|
410
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
411
411
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
412
412
|
0.9.27 (ruby-3.0.1).
|
|
413
413
|
</div>
|
|
@@ -125,7 +125,7 @@ parser. In order to do that, a new "clause" node is added to the parse
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div id="footer">
|
|
128
|
-
Generated on Fri Feb
|
|
128
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
130
130
|
0.9.27 (ruby-3.0.1).
|
|
131
131
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on Fri Feb
|
|
117
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.27 (ruby-3.0.1).
|
|
120
120
|
</div>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on Fri Feb
|
|
108
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
110
|
0.9.27 (ruby-3.0.1).
|
|
111
111
|
</div>
|
data/docs/doc/Doing/Color.html
CHANGED
|
@@ -518,7 +518,7 @@ ANSI-sequences are stripped from the string.</p>
|
|
|
518
518
|
</div>
|
|
519
519
|
|
|
520
520
|
<div id="footer">
|
|
521
|
-
Generated on Fri Feb
|
|
521
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
522
522
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
523
523
|
0.9.27 (ruby-3.0.1).
|
|
524
524
|
</div>
|
|
@@ -526,7 +526,7 @@ stdout</p>
|
|
|
526
526
|
</div>
|
|
527
527
|
|
|
528
528
|
<div id="footer">
|
|
529
|
-
Generated on Fri Feb
|
|
529
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
530
530
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
531
531
|
0.9.27 (ruby-3.0.1).
|
|
532
532
|
</div>
|
|
@@ -1139,7 +1139,7 @@ matched, first match wins)</p>
|
|
|
1139
1139
|
</div>
|
|
1140
1140
|
|
|
1141
1141
|
<div id="footer">
|
|
1142
|
-
Generated on Fri Feb
|
|
1142
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
1143
1143
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1144
1144
|
0.9.27 (ruby-3.0.1).
|
|
1145
1145
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
</div>
|
|
239
239
|
|
|
240
240
|
<div id="footer">
|
|
241
|
-
Generated on Fri Feb
|
|
241
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
242
242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
243
243
|
0.9.27 (ruby-3.0.1).
|
|
244
244
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div id="footer">
|
|
179
|
-
Generated on Fri Feb
|
|
179
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
181
181
|
0.9.27 (ruby-3.0.1).
|
|
182
182
|
</div>
|
data/docs/doc/Doing/Errors.html
CHANGED
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
</div>
|
|
182
182
|
|
|
183
183
|
<div id="footer">
|
|
184
|
-
Generated on Fri Feb
|
|
184
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
185
185
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
186
186
|
0.9.27 (ruby-3.0.1).
|
|
187
187
|
</div>
|
data/docs/doc/Doing/Hooks.html
CHANGED
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
</div>
|
|
355
355
|
|
|
356
356
|
<div id="footer">
|
|
357
|
-
Generated on Fri Feb
|
|
357
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
358
358
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
359
359
|
0.9.27 (ruby-3.0.1).
|
|
360
360
|
</div>
|
data/docs/doc/Doing/Item.html
CHANGED
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
<li class="public ">
|
|
338
338
|
<span class="summary_signature">
|
|
339
339
|
|
|
340
|
-
<a href="#equal%3F-instance_method" title="#equal? (instance method)">#<strong>equal?</strong>(other) ⇒ Boolean </a>
|
|
340
|
+
<a href="#equal%3F-instance_method" title="#equal? (instance method)">#<strong>equal?</strong>(other, match_section: false) ⇒ Boolean </a>
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
|
|
@@ -1145,7 +1145,7 @@ the item belongs</p>
|
|
|
1145
1145
|
<div class="method_details ">
|
|
1146
1146
|
<h3 class="signature " id="equal?-instance_method">
|
|
1147
1147
|
|
|
1148
|
-
#<strong>equal?</strong>(other) ⇒ <tt>Boolean</tt>
|
|
1148
|
+
#<strong>equal?</strong>(other, match_section: false) ⇒ <tt>Boolean</tt>
|
|
1149
1149
|
|
|
1150
1150
|
|
|
1151
1151
|
|
|
@@ -1177,6 +1177,23 @@ the item belongs</p>
|
|
|
1177
1177
|
|
|
1178
1178
|
</li>
|
|
1179
1179
|
|
|
1180
|
+
<li>
|
|
1181
|
+
|
|
1182
|
+
<span class='name'>match_section</span>
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
—
|
|
1192
|
+
<div class='inline'><p>If true, require item sections to match</p>
|
|
1193
|
+
</div>
|
|
1194
|
+
|
|
1195
|
+
</li>
|
|
1196
|
+
|
|
1180
1197
|
</ul>
|
|
1181
1198
|
|
|
1182
1199
|
<p class="tag_title">Returns:</p>
|
|
@@ -2353,7 +2370,7 @@ thus should not receive a date on the @done tag</p>
|
|
|
2353
2370
|
</div>
|
|
2354
2371
|
|
|
2355
2372
|
<div id="footer">
|
|
2356
|
-
Generated on Fri Feb
|
|
2373
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
2357
2374
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2358
2375
|
0.9.27 (ruby-3.0.1).
|
|
2359
2376
|
</div>
|
data/docs/doc/Doing/Items.html
CHANGED
|
@@ -197,6 +197,51 @@
|
|
|
197
197
|
|
|
198
198
|
|
|
199
199
|
|
|
200
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
201
|
+
|
|
202
|
+
</li>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
<li class="public ">
|
|
206
|
+
<span class="summary_signature">
|
|
207
|
+
|
|
208
|
+
<a href="#dedup-instance_method" title="#dedup (instance method)">#<strong>dedup</strong>(match_section: true) ⇒ Items </a>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
</span>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<span class="summary_desc"><div class='inline'><p>Remove duplicated entries.</p>
|
|
223
|
+
</div></span>
|
|
224
|
+
|
|
225
|
+
</li>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<li class="public ">
|
|
229
|
+
<span class="summary_signature">
|
|
230
|
+
|
|
231
|
+
<a href="#dedup!-instance_method" title="#dedup! (instance method)">#<strong>dedup!</strong>(match_section: true) ⇒ Object </a>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</span>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
200
245
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
201
246
|
|
|
202
247
|
</li>
|
|
@@ -222,6 +267,28 @@
|
|
|
222
267
|
<span class="summary_desc"><div class='inline'><p>Delete an item from the index.</p>
|
|
223
268
|
</div></span>
|
|
224
269
|
|
|
270
|
+
</li>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
<li class="public ">
|
|
274
|
+
<span class="summary_signature">
|
|
275
|
+
|
|
276
|
+
<a href="#delete_section-instance_method" title="#delete_section (instance method)">#<strong>delete_section</strong>(section, log: false) ⇒ Object </a>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</span>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
291
|
+
|
|
225
292
|
</li>
|
|
226
293
|
|
|
227
294
|
|
|
@@ -268,6 +335,28 @@
|
|
|
268
335
|
<span class="summary_desc"><div class='inline'><p>Get a new Items object containing only items in a specified section.</p>
|
|
269
336
|
</div></span>
|
|
270
337
|
|
|
338
|
+
</li>
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
<li class="public ">
|
|
342
|
+
<span class="summary_signature">
|
|
343
|
+
|
|
344
|
+
<a href="#include%3F-instance_method" title="#include? (instance method)">#<strong>include?</strong>(item, match_section: true) ⇒ Boolean </a>
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
</span>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
359
|
+
|
|
271
360
|
</li>
|
|
272
361
|
|
|
273
362
|
|
|
@@ -553,6 +642,57 @@ creation of the section.</p>
|
|
|
553
642
|
|
|
554
643
|
|
|
555
644
|
|
|
645
|
+
</h3>
|
|
646
|
+
</div>
|
|
647
|
+
|
|
648
|
+
<div class="method_details ">
|
|
649
|
+
<h3 class="signature " id="dedup-instance_method">
|
|
650
|
+
|
|
651
|
+
#<strong>dedup</strong>(match_section: true) ⇒ <tt><span class='object_link'><a href="" title="Doing::Items (class)">Items</a></span></tt>
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
</h3><div class="docstring">
|
|
658
|
+
<div class="discussion">
|
|
659
|
+
<p>Remove duplicated entries. Duplicate entries must have matching start date, title, note, and section</p>
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
</div>
|
|
663
|
+
</div>
|
|
664
|
+
<div class="tags">
|
|
665
|
+
|
|
666
|
+
<p class="tag_title">Returns:</p>
|
|
667
|
+
<ul class="return">
|
|
668
|
+
|
|
669
|
+
<li>
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Doing::Items (class)">Items</a></span></tt>)</span>
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
—
|
|
677
|
+
<div class='inline'><p>Items array with duplicate entries removed</p>
|
|
678
|
+
</div>
|
|
679
|
+
|
|
680
|
+
</li>
|
|
681
|
+
|
|
682
|
+
</ul>
|
|
683
|
+
|
|
684
|
+
</div>
|
|
685
|
+
</div>
|
|
686
|
+
|
|
687
|
+
<div class="method_details ">
|
|
688
|
+
<h3 class="signature " id="dedup!-instance_method">
|
|
689
|
+
|
|
690
|
+
#<strong>dedup!</strong>(match_section: true) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
556
696
|
</h3>
|
|
557
697
|
</div>
|
|
558
698
|
|
|
@@ -594,6 +734,40 @@ creation of the section.</p>
|
|
|
594
734
|
</ul>
|
|
595
735
|
|
|
596
736
|
|
|
737
|
+
</div>
|
|
738
|
+
</div>
|
|
739
|
+
|
|
740
|
+
<div class="method_details ">
|
|
741
|
+
<h3 class="signature " id="delete_section-instance_method">
|
|
742
|
+
|
|
743
|
+
#<strong>delete_section</strong>(section, log: false) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
</h3><div class="docstring">
|
|
750
|
+
<div class="discussion">
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
</div>
|
|
754
|
+
</div>
|
|
755
|
+
<div class="tags">
|
|
756
|
+
|
|
757
|
+
<p class="tag_title">Raises:</p>
|
|
758
|
+
<ul class="raise">
|
|
759
|
+
|
|
760
|
+
<li>
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
<span class='type'>(<tt>DoingRuntimeError</tt>)</span>
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
</li>
|
|
768
|
+
|
|
769
|
+
</ul>
|
|
770
|
+
|
|
597
771
|
</div>
|
|
598
772
|
</div>
|
|
599
773
|
|
|
@@ -694,6 +868,40 @@ specified section</p>
|
|
|
694
868
|
|
|
695
869
|
</ul>
|
|
696
870
|
|
|
871
|
+
</div>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
<div class="method_details ">
|
|
875
|
+
<h3 class="signature " id="include?-instance_method">
|
|
876
|
+
|
|
877
|
+
#<strong>include?</strong>(item, match_section: true) ⇒ <tt>Boolean</tt>
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
</h3><div class="docstring">
|
|
884
|
+
<div class="discussion">
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
</div>
|
|
888
|
+
</div>
|
|
889
|
+
<div class="tags">
|
|
890
|
+
|
|
891
|
+
<p class="tag_title">Returns:</p>
|
|
892
|
+
<ul class="return">
|
|
893
|
+
|
|
894
|
+
<li>
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
</li>
|
|
902
|
+
|
|
903
|
+
</ul>
|
|
904
|
+
|
|
697
905
|
</div>
|
|
698
906
|
</div>
|
|
699
907
|
|
|
@@ -890,7 +1098,7 @@ specified section</p>
|
|
|
890
1098
|
</div>
|
|
891
1099
|
|
|
892
1100
|
<div id="footer">
|
|
893
|
-
Generated on Fri Feb
|
|
1101
|
+
Generated on Fri Feb 25 09:00:49 2022 by
|
|
894
1102
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
895
1103
|
0.9.27 (ruby-3.0.1).
|
|
896
1104
|
</div>
|