doing 2.1.79 → 2.1.81
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +13 -15
- data/README.md +1 -1
- data/bin/commands/again.rb +1 -1
- data/bin/commands/archive.rb +1 -1
- data/bin/commands/cancel.rb +1 -1
- data/bin/commands/finish.rb +1 -1
- data/bin/commands/flag.rb +1 -1
- data/bin/commands/grep.rb +3 -2
- data/bin/commands/last.rb +1 -1
- data/bin/commands/note.rb +1 -1
- data/bin/commands/on.rb +1 -1
- data/bin/commands/recent.rb +1 -1
- data/bin/commands/reset.rb +1 -1
- data/bin/commands/select.rb +1 -1
- data/bin/commands/show.rb +5 -3
- data/bin/commands/since.rb +1 -1
- data/bin/commands/tag.rb +9 -16
- data/bin/commands/tags.rb +1 -1
- data/bin/commands/today.rb +1 -1
- data/bin/commands/view.rb +1 -1
- data/bin/commands/views.rb +1 -1
- data/bin/commands/yesterday.rb +1 -1
- data/docs/doc/Array.html +66 -4
- data/docs/doc/BooleanTermParser/Clause.html +3 -3
- data/docs/doc/BooleanTermParser/Operator.html +3 -3
- data/docs/doc/BooleanTermParser/Query.html +3 -3
- data/docs/doc/BooleanTermParser/QueryParser.html +3 -3
- data/docs/doc/BooleanTermParser/QueryTransformer.html +3 -3
- data/docs/doc/BooleanTermParser.html +3 -3
- data/docs/doc/Doing/ArrayCleanup.html +3 -3
- data/docs/doc/Doing/ArrayNestedHash.html +3 -3
- data/docs/doc/Doing/ArrayTags.html +3 -3
- data/docs/doc/Doing/ByDayExport.html +3 -3
- data/docs/doc/Doing/CSVExport.html +3 -3
- data/docs/doc/Doing/CalendarImport.html +3 -3
- data/docs/doc/Doing/Change.html +3 -3
- data/docs/doc/Doing/Changes.html +3 -3
- data/docs/doc/Doing/ChronifyArray.html +3 -3
- data/docs/doc/Doing/ChronifyNumeric.html +3 -3
- data/docs/doc/Doing/ChronifyString.html +3 -3
- data/docs/doc/Doing/Color.html +3 -19
- data/docs/doc/Doing/Completion/BashCompletions.html +3 -3
- data/docs/doc/Doing/Completion/FigCompletions.html +3 -3
- data/docs/doc/Doing/Completion/FishCompletions.html +3 -3
- data/docs/doc/Doing/Completion/StringUtils.html +3 -3
- data/docs/doc/Doing/Completion/ZshCompletions.html +3 -3
- data/docs/doc/Doing/Completion.html +3 -3
- data/docs/doc/Doing/Configuration.html +3 -3
- data/docs/doc/Doing/DayOneRenderer.html +3 -3
- data/docs/doc/Doing/DayoneExport.html +3 -3
- data/docs/doc/Doing/DoingExport.html +3 -3
- data/docs/doc/Doing/DoingImport.html +3 -3
- data/docs/doc/Doing/Entry.html +3 -3
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +3 -3
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +3 -3
- data/docs/doc/Doing/Errors/DoingStandardError.html +3 -3
- data/docs/doc/Doing/Errors/EmptyInput.html +3 -3
- data/docs/doc/Doing/Errors/HistoryLimitError.html +3 -3
- data/docs/doc/Doing/Errors/InvalidPlugin.html +3 -3
- data/docs/doc/Doing/Errors/MissingBackupFile.html +3 -3
- data/docs/doc/Doing/Errors/NoResults.html +3 -3
- data/docs/doc/Doing/Errors/PluginException.html +3 -3
- data/docs/doc/Doing/Errors/UserCancelled.html +3 -3
- data/docs/doc/Doing/Errors/WrongCommand.html +3 -3
- data/docs/doc/Doing/Errors.html +3 -3
- data/docs/doc/Doing/HTMLExport.html +3 -3
- data/docs/doc/Doing/Hooks.html +3 -3
- data/docs/doc/Doing/Item.html +4 -4
- data/docs/doc/Doing/ItemDates.html +3 -3
- data/docs/doc/Doing/ItemQuery.html +3 -3
- data/docs/doc/Doing/ItemState.html +3 -3
- data/docs/doc/Doing/ItemTags.html +3 -3
- data/docs/doc/Doing/Items.html +4 -4
- data/docs/doc/Doing/JSONExport.html +3 -3
- data/docs/doc/Doing/JSONImport.html +3 -3
- data/docs/doc/Doing/Logger.html +3 -3
- data/docs/doc/Doing/MarkdownExport.html +3 -3
- data/docs/doc/Doing/Note.html +4 -4
- data/docs/doc/Doing/Pager.html +3 -3
- data/docs/doc/Doing/Plugins.html +3 -3
- data/docs/doc/Doing/Prompt.html +4 -4
- data/docs/doc/Doing/PromptChoose.html +3 -3
- data/docs/doc/Doing/PromptFZF.html +3 -3
- data/docs/doc/Doing/PromptInput.html +3 -3
- data/docs/doc/Doing/PromptSTD.html +3 -3
- data/docs/doc/Doing/PromptYN.html +3 -3
- data/docs/doc/Doing/Section.html +3 -3
- data/docs/doc/Doing/StringHighlight.html +3 -3
- data/docs/doc/Doing/StringNormalize.html +3 -3
- data/docs/doc/Doing/StringQuery.html +3 -3
- data/docs/doc/Doing/StringTags.html +3 -3
- data/docs/doc/Doing/StringTransform.html +3 -3
- data/docs/doc/Doing/StringTruncate.html +3 -3
- data/docs/doc/Doing/StringURL.html +3 -3
- data/docs/doc/Doing/SymbolNormalize.html +3 -3
- data/docs/doc/Doing/TaskPaperExport.html +3 -3
- data/docs/doc/Doing/TemplateExport.html +4 -4
- data/docs/doc/Doing/TemplateString.html +4 -4
- data/docs/doc/Doing/TimingImport.html +3 -3
- data/docs/doc/Doing/Types.html +3 -3
- data/docs/doc/Doing/Util/Backup.html +3 -3
- data/docs/doc/Doing/Util.html +3 -3
- data/docs/doc/Doing/Version.html +3 -3
- data/docs/doc/Doing/WWID.html +4 -4
- data/docs/doc/Doing.html +4 -4
- data/docs/doc/FalseClass.html +3 -3
- data/docs/doc/GLI/Commands/Help.html +3 -3
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +3 -3
- data/docs/doc/GLI/Commands.html +3 -3
- data/docs/doc/GLI.html +3 -3
- data/docs/doc/Hash.html +3 -3
- data/docs/doc/Numeric.html +3 -3
- data/docs/doc/Object.html +3 -3
- data/docs/doc/PhraseParser/Operator.html +3 -3
- data/docs/doc/PhraseParser/PhraseClause.html +3 -3
- data/docs/doc/PhraseParser/Query.html +3 -3
- data/docs/doc/PhraseParser/QueryParser.html +3 -3
- data/docs/doc/PhraseParser/QueryTransformer.html +3 -3
- data/docs/doc/PhraseParser/TermClause.html +3 -3
- data/docs/doc/PhraseParser.html +3 -3
- data/docs/doc/Status.html +3 -3
- data/docs/doc/String.html +4 -4
- data/docs/doc/Symbol.html +3 -3
- data/docs/doc/Time.html +3 -3
- data/docs/doc/TrueClass.html +3 -3
- data/docs/doc/_index.html +4 -4
- data/docs/doc/file.README.html +4 -4
- data/docs/doc/frames.html +1 -1
- data/docs/doc/index.html +4 -4
- data/docs/doc/method_list.html +605 -597
- data/docs/doc/top-level-namespace.html +3 -3
- data/doing.rdoc +2 -2
- data/lib/doing/array/array.rb +9 -0
- data/lib/doing/colors.rb +3 -7
- data/lib/doing/item/query.rb +3 -3
- data/lib/doing/plugins/export/byday.rb +5 -4
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid/display.rb +20 -10
- data/lib/doing/wwid/filetools.rb +1 -0
- data/lib/doing/wwid/filter.rb +9 -2
- data/lib/doing/wwid/guess.rb +13 -2
- data/lib/doing/wwid/interactive.rb +2 -1
- data/lib/doing/wwid/modify.rb +2 -1
- data/lib/doing.rb +2 -2
- data/lib/examples/commands/autotag.rb +1 -1
- data/lib/examples/commands/wiki.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac827ac53ed27e5782122c4a9df7cd5bcab7054858c925f2418ea1d54432049
|
4
|
+
data.tar.gz: 958ff9e94ced24c87f1e053821e62f4fe9d5b76eb6487ab93f83ba3a7eec045b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c911ab7f535c030c1fe1f690d049a5760e31a0c28f43687d8b5322ca820fabd89eff08f6d57d012075d57e4dace043c1c77398a582786675a0f11b0c5ce420c
|
7
|
+
data.tar.gz: 2ec2b56dd434a91a2a841afec81961a52326ada279b1979dc3af36eda0a622e94051d1cf8a9a49ed45143c6b6839b68db08aef26e51bde4785e8ef5639c99d62
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
### 2.1.81
|
2
|
+
|
3
|
+
2023-05-31 11:47
|
4
|
+
|
5
|
+
#### IMPROVED
|
6
|
+
|
7
|
+
- Most commands that allow --section can now take multiple values, either by using --section multiple times or providing a comma separated list of sections to the flag
|
8
|
+
|
9
|
+
### 2.1.80
|
10
|
+
|
11
|
+
2023-03-11 10:50
|
12
|
+
|
13
|
+
#### FIXED
|
14
|
+
|
15
|
+
- Remove extra divider line before grand total in byday table
|
16
|
+
|
1
17
|
### 2.1.79
|
2
18
|
|
3
19
|
2023-03-11 10:21
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
doing (2.1.
|
4
|
+
doing (2.1.81)
|
5
5
|
chronic (~> 0.10, >= 0.10.2)
|
6
6
|
deep_merge (~> 1.2, >= 1.2.1)
|
7
7
|
gli (~> 2.20, >= 2.20.1)
|
@@ -21,43 +21,43 @@ GEM
|
|
21
21
|
specs:
|
22
22
|
chronic (0.10.2)
|
23
23
|
deep_merge (1.2.2)
|
24
|
-
github-markup (4.0.
|
24
|
+
github-markup (4.0.1)
|
25
25
|
gli (2.21.0)
|
26
26
|
haml (5.0.4)
|
27
27
|
temple (>= 0.8.0)
|
28
28
|
tilt
|
29
29
|
kramdown (2.4.0)
|
30
30
|
rexml
|
31
|
-
parallel (1.
|
32
|
-
parallel_tests (3.
|
31
|
+
parallel (1.23.0)
|
32
|
+
parallel_tests (3.13.0)
|
33
33
|
parallel
|
34
34
|
parslet (2.0.0)
|
35
35
|
pastel (0.8.0)
|
36
36
|
tty-color (~> 0.5)
|
37
|
-
plist (3.
|
38
|
-
power_assert (2.0.
|
37
|
+
plist (3.7.0)
|
38
|
+
power_assert (2.0.3)
|
39
39
|
rake (13.0.6)
|
40
40
|
rdoc (6.3.3)
|
41
|
-
redcarpet (3.
|
41
|
+
redcarpet (3.6.0)
|
42
42
|
rexml (3.2.5)
|
43
|
-
rouge (
|
43
|
+
rouge (4.1.0)
|
44
44
|
safe_yaml (1.0.5)
|
45
45
|
strings (0.2.1)
|
46
46
|
strings-ansi (~> 0.2)
|
47
47
|
unicode-display_width (>= 1.5, < 3.0)
|
48
48
|
unicode_utils (~> 1.4)
|
49
49
|
strings-ansi (0.2.0)
|
50
|
-
temple (0.
|
50
|
+
temple (0.10.0)
|
51
51
|
test-unit (3.4.9)
|
52
52
|
power_assert
|
53
|
-
tilt (2.0
|
53
|
+
tilt (2.1.0)
|
54
54
|
tty-color (0.6.0)
|
55
55
|
tty-cursor (0.7.1)
|
56
56
|
tty-link (0.1.1)
|
57
|
-
tty-markdown (0.7.
|
57
|
+
tty-markdown (0.7.2)
|
58
58
|
kramdown (>= 1.16.2, < 3.0)
|
59
59
|
pastel (~> 0.8)
|
60
|
-
rouge (
|
60
|
+
rouge (>= 3.14, < 5.0)
|
61
61
|
strings (~> 0.2.0)
|
62
62
|
tty-color (~> 0.5)
|
63
63
|
tty-screen (~> 0.8)
|
@@ -76,10 +76,8 @@ GEM
|
|
76
76
|
tty-which (0.5.0)
|
77
77
|
unicode-display_width (2.4.2)
|
78
78
|
unicode_utils (1.4.0)
|
79
|
-
webrick (1.7.0)
|
80
79
|
wisper (2.0.1)
|
81
|
-
yard (0.9.
|
82
|
-
webrick (~> 1.7.0)
|
80
|
+
yard (0.9.34)
|
83
81
|
|
84
82
|
PLATFORMS
|
85
83
|
ruby
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ _If you're one of the rare people like me who find this useful, feel free to
|
|
12
12
|
|
13
13
|
<!--README-->
|
14
14
|
|
15
|
-
The current version of `doing` is <!--VER-->2.1.
|
15
|
+
The current version of `doing` is <!--VER-->2.1.80<!--END VER-->.
|
16
16
|
|
17
17
|
Find all of the documentation in the [doing wiki][wiki].
|
18
18
|
|
data/bin/commands/again.rb
CHANGED
@@ -17,7 +17,7 @@ command %i[again resume] do |c|
|
|
17
17
|
|
18
18
|
c.desc 'Get last entry from a specific section'
|
19
19
|
c.arg_name 'NAME'
|
20
|
-
c.flag %i[s section], default_value: 'All'
|
20
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
21
21
|
|
22
22
|
c.desc 'Add new entry to section (default: same section as repeated entry)'
|
23
23
|
c.arg_name 'SECTION_NAME'
|
data/bin/commands/archive.rb
CHANGED
@@ -39,7 +39,7 @@ command %i[archive move] do |c|
|
|
39
39
|
elsif args[0] =~ /^@\S+/
|
40
40
|
['all', args.tags_to_array]
|
41
41
|
else
|
42
|
-
[args.shift.cap_first, args.tags_to_array]
|
42
|
+
[@wwid.guess_section(args.shift.cap_first), args.tags_to_array]
|
43
43
|
end
|
44
44
|
|
45
45
|
raise InvalidArgument, '--keep and --count can not be used together' if options[:keep] && options[:count]
|
data/bin/commands/cancel.rb
CHANGED
@@ -14,7 +14,7 @@ command :cancel do |c|
|
|
14
14
|
|
15
15
|
c.desc 'Section'
|
16
16
|
c.arg_name 'NAME'
|
17
|
-
c.flag %i[s section]
|
17
|
+
c.flag %i[s section], multiple: true
|
18
18
|
|
19
19
|
c.desc 'Cancel last entry (or entries) not already marked @done'
|
20
20
|
c.switch %i[u unfinished], negatable: false, default_value: false
|
data/bin/commands/finish.rb
CHANGED
@@ -41,7 +41,7 @@ module Doing
|
|
41
41
|
|
42
42
|
cmd.desc 'Section'
|
43
43
|
cmd.arg_name 'NAME'
|
44
|
-
cmd.flag %i[s section]
|
44
|
+
cmd.flag %i[s section], multiple: true
|
45
45
|
|
46
46
|
cmd.desc 'Select item(s) to finish from a menu of matching entries'
|
47
47
|
cmd.switch %i[i interactive], negatable: false, default_value: false
|
data/bin/commands/flag.rb
CHANGED
@@ -12,7 +12,7 @@ command %i[mark flag] do |c|
|
|
12
12
|
|
13
13
|
c.desc 'Section'
|
14
14
|
c.arg_name 'SECTION_NAME'
|
15
|
-
c.flag %i[s section], default_value: 'All'
|
15
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
16
16
|
|
17
17
|
c.desc 'How many recent entries to tag (0 for all)'
|
18
18
|
c.arg_name 'COUNT'
|
data/bin/commands/grep.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# @@grep @@search
|
2
2
|
desc 'Search for entries'
|
3
3
|
long_desc %(
|
4
|
-
Search all sections (or limit to a
|
4
|
+
Search all sections (or limit to a specific sections) for entries matching text or regular expression. Normal strings are fuzzy matched.
|
5
5
|
|
6
6
|
To search with regular expressions, single quote the string and surround with slashes: `doing search '/\bm.*?x\b/'`
|
7
7
|
)
|
@@ -11,10 +11,11 @@ command %i[grep search] do |c|
|
|
11
11
|
c.example 'doing search "\'search command"', desc: 'Find entries containing "search command" using exact matching (search is an alias for grep)'
|
12
12
|
c.example 'doing grep "/do.*?wiki.*?@done/"', desc: 'Find entries matching regular expression'
|
13
13
|
c.example 'doing search --before 12/21 "doing wiki"', desc: 'Find entries containing "doing wiki" with entry dates before 12/21 of the current year'
|
14
|
+
c.example 'doing grep @project1 -s currently -s projects', desc: 'Search only in Currently and Projects'
|
14
15
|
|
15
16
|
c.desc 'Section'
|
16
17
|
c.arg_name 'NAME'
|
17
|
-
c.flag %i[s section], default_value: 'All'
|
18
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
18
19
|
|
19
20
|
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
20
21
|
# c.switch [:fuzzy], default_value: false, negatable: false
|
data/bin/commands/last.rb
CHANGED
@@ -13,7 +13,7 @@ command :last do |c|
|
|
13
13
|
|
14
14
|
c.desc 'Specify a section'
|
15
15
|
c.arg_name 'NAME'
|
16
|
-
c.flag %i[s section], default_value: 'All'
|
16
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
17
17
|
|
18
18
|
c.desc "Edit entry with #{Doing::Util.default_editor}"
|
19
19
|
c.switch %i[e editor], negatable: false, default_value: false
|
data/bin/commands/note.rb
CHANGED
@@ -16,7 +16,7 @@ command :note do |c|
|
|
16
16
|
|
17
17
|
c.desc 'Section'
|
18
18
|
c.arg_name 'NAME'
|
19
|
-
c.flag %i[s section], default_value: 'All'
|
19
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
20
20
|
|
21
21
|
c.desc "Edit entry with #{Doing::Util.default_editor}"
|
22
22
|
c.switch %i[e editor], negatable: false, default_value: false
|
data/bin/commands/on.rb
CHANGED
data/bin/commands/recent.rb
CHANGED
@@ -11,7 +11,7 @@ command :recent do |c|
|
|
11
11
|
|
12
12
|
c.desc 'Section'
|
13
13
|
c.arg_name 'NAME'
|
14
|
-
c.flag %i[s section], default_value: 'All'
|
14
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
15
15
|
|
16
16
|
c.desc 'Select from a menu of matching entries to perform additional operations'
|
17
17
|
c.switch %i[i interactive], negatable: false, default_value: false
|
data/bin/commands/reset.rb
CHANGED
@@ -12,7 +12,7 @@ command %i[reset begin] do |c|
|
|
12
12
|
|
13
13
|
c.desc 'Limit search to section'
|
14
14
|
c.arg_name 'NAME'
|
15
|
-
c.flag %i[s section], default_value: 'All'
|
15
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
16
16
|
|
17
17
|
c.desc 'Resume entry (remove @done)'
|
18
18
|
c.switch %i[r resume], default_value: true
|
data/bin/commands/select.rb
CHANGED
data/bin/commands/show.rb
CHANGED
@@ -38,7 +38,7 @@ command :show do |c|
|
|
38
38
|
|
39
39
|
c.desc 'Only show entries within section'
|
40
40
|
c.arg_name 'NAME'
|
41
|
-
c.flag %i[s section]
|
41
|
+
c.flag %i[s section], multiple: true
|
42
42
|
|
43
43
|
c.desc 'Select section or tag to display from a menu'
|
44
44
|
c.switch %i[m menu], negatable: false, default_value: false
|
@@ -75,7 +75,8 @@ command :show do |c|
|
|
75
75
|
when /^[@+-]/
|
76
76
|
section = options[:section] ? @wwid.guess_section(options[:section]) : 'All'
|
77
77
|
else
|
78
|
-
sect = options[:section] ?
|
78
|
+
sect = options[:section].empty? ? args[0] : options[:section]
|
79
|
+
|
79
80
|
begin
|
80
81
|
section = @wwid.guess_section(sect)
|
81
82
|
rescue WrongCommand
|
@@ -88,6 +89,7 @@ command :show do |c|
|
|
88
89
|
|
89
90
|
args.shift
|
90
91
|
end
|
92
|
+
|
91
93
|
if args.length.positive?
|
92
94
|
args.each do |arg|
|
93
95
|
arg.split(/,/).each do |tag|
|
@@ -96,7 +98,7 @@ command :show do |c|
|
|
96
98
|
end
|
97
99
|
end
|
98
100
|
else
|
99
|
-
if options[:section]
|
101
|
+
if options[:section] && !options[:section].empty?
|
100
102
|
section = @wwid.guess_section(options[:section]) || 'All'
|
101
103
|
else
|
102
104
|
section = options[:menu] ? @wwid.choose_section(include_all: true) : Doing.setting('current_section')
|
data/bin/commands/since.rb
CHANGED
data/bin/commands/tag.rb
CHANGED
@@ -23,7 +23,7 @@ command :tag do |c|
|
|
23
23
|
|
24
24
|
c.desc 'Section'
|
25
25
|
c.arg_name 'SECTION_NAME'
|
26
|
-
c.flag %i[s section], default_value: 'All'
|
26
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
27
27
|
|
28
28
|
c.desc 'How many recent entries to tag (0 for all)'
|
29
29
|
c.arg_name 'COUNT'
|
@@ -73,25 +73,18 @@ command :tag do |c|
|
|
73
73
|
section = @wwid.guess_section(options[:section]) || options[:section].cap_first
|
74
74
|
end
|
75
75
|
|
76
|
-
|
77
|
-
if options[:tag].nil?
|
78
|
-
search_tags = []
|
79
|
-
else
|
80
|
-
search_tags = options[:tag]
|
81
|
-
end
|
76
|
+
search_tags = options[:tag].nil? ? [] : options[:tag]
|
82
77
|
|
83
78
|
if options[:autotag]
|
84
79
|
tags = []
|
85
80
|
else
|
86
|
-
if args.empty?
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
end
|
94
|
-
end
|
81
|
+
tags = if args.empty?
|
82
|
+
[]
|
83
|
+
elsif args.join('') =~ /,/
|
84
|
+
args.join('').split(/ *, */)
|
85
|
+
else
|
86
|
+
args.join(' ').split(' ') # in case tags are quoted as one arg
|
87
|
+
end
|
95
88
|
|
96
89
|
tags.map! { |tag| tag.sub(/^@/, '').strip }
|
97
90
|
end
|
data/bin/commands/tags.rb
CHANGED
@@ -4,7 +4,7 @@ arg_name 'MAX_COUNT', optional: true, type: Integer
|
|
4
4
|
command :tags do |c|
|
5
5
|
c.desc 'Section'
|
6
6
|
c.arg_name 'SECTION_NAME'
|
7
|
-
c.flag %i[s section], default_value: 'All'
|
7
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
8
8
|
|
9
9
|
c.desc 'Show count of occurrences'
|
10
10
|
c.switch %i[c counts]
|
data/bin/commands/today.rb
CHANGED
@@ -10,7 +10,7 @@ command :today do |c|
|
|
10
10
|
|
11
11
|
c.desc 'Specify a section'
|
12
12
|
c.arg_name 'NAME'
|
13
|
-
c.flag %i[s section], default_value: 'All'
|
13
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
14
14
|
|
15
15
|
add_options(:output_template, c, default_template: 'today')
|
16
16
|
add_options(:time_filter, c)
|
data/bin/commands/view.rb
CHANGED
data/bin/commands/views.rb
CHANGED
@@ -82,7 +82,7 @@ module Doing
|
|
82
82
|
res = if @options[:output] =~ /^j/i
|
83
83
|
JSON.parse(@wwid.fork_editor(JSON.pretty_generate(@views), message: nil))
|
84
84
|
else
|
85
|
-
|
85
|
+
Doing::Util.safe_load_file(@wwid.fork_editor(YAML.dump(@views), message: nil))
|
86
86
|
end
|
87
87
|
@args.each do |v|
|
88
88
|
save_view(v, res)
|
data/bin/commands/yesterday.rb
CHANGED
@@ -9,7 +9,7 @@ command :yesterday do |c|
|
|
9
9
|
|
10
10
|
c.desc 'Specify a section'
|
11
11
|
c.arg_name 'NAME'
|
12
|
-
c.flag %i[s section], default_value: 'All'
|
12
|
+
c.flag %i[s section], default_value: 'All', multiple: true
|
13
13
|
|
14
14
|
add_options(:output_template, c, default_template: 'today')
|
15
15
|
add_options(:time_filter, c)
|
data/docs/doc/Array.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Array
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -138,6 +138,29 @@
|
|
138
138
|
<li class="public ">
|
139
139
|
<span class="summary_signature">
|
140
140
|
|
141
|
+
<a href="#cap_first-instance_method" title="#cap_first (instance method)">#<strong>cap_first</strong> ⇒ Array </a>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</span>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<span class="summary_desc"><div class='inline'><p>Capitalize first letter of each element.</p>
|
156
|
+
</div></span>
|
157
|
+
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
161
|
+
<li class="public ">
|
162
|
+
<span class="summary_signature">
|
163
|
+
|
141
164
|
<a href="#good%3F-instance_method" title="#good? (instance method)">#<strong>good?</strong> ⇒ Boolean </a>
|
142
165
|
|
143
166
|
|
@@ -205,7 +228,46 @@
|
|
205
228
|
|
206
229
|
|
207
230
|
<div class="method_details first">
|
208
|
-
<h3 class="signature first" id="
|
231
|
+
<h3 class="signature first" id="cap_first-instance_method">
|
232
|
+
|
233
|
+
#<strong>cap_first</strong> ⇒ <tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</h3><div class="docstring">
|
240
|
+
<div class="discussion">
|
241
|
+
<p>Capitalize first letter of each element</p>
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div class="tags">
|
247
|
+
|
248
|
+
<p class="tag_title">Returns:</p>
|
249
|
+
<ul class="return">
|
250
|
+
|
251
|
+
<li>
|
252
|
+
|
253
|
+
|
254
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt>)</span>
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
—
|
259
|
+
<div class='inline'><p>capitalized items</p>
|
260
|
+
</div>
|
261
|
+
|
262
|
+
</li>
|
263
|
+
|
264
|
+
</ul>
|
265
|
+
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
<div class="method_details ">
|
270
|
+
<h3 class="signature " id="good?-instance_method">
|
209
271
|
|
210
272
|
#<strong>good?</strong> ⇒ <tt>Boolean</tt>
|
211
273
|
|
@@ -288,9 +350,9 @@ has content</p>
|
|
288
350
|
</div>
|
289
351
|
|
290
352
|
<div id="footer">
|
291
|
-
Generated on
|
353
|
+
Generated on Wed May 31 15:49:42 2023 by
|
292
354
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
|
-
0.9.
|
355
|
+
0.9.34 (ruby-3.2.0).
|
294
356
|
</div>
|
295
357
|
|
296
358
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BooleanTermParser::Clause
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -283,9 +283,9 @@
|
|
283
283
|
</div>
|
284
284
|
|
285
285
|
<div id="footer">
|
286
|
-
Generated on
|
286
|
+
Generated on Wed May 31 15:49:42 2023 by
|
287
287
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
|
-
0.9.
|
288
|
+
0.9.34 (ruby-3.2.0).
|
289
289
|
</div>
|
290
290
|
|
291
291
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BooleanTermParser::Operator
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -162,9 +162,9 @@
|
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on
|
165
|
+
Generated on Wed May 31 15:49:42 2023 by
|
166
166
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
167
|
-
0.9.
|
167
|
+
0.9.34 (ruby-3.2.0).
|
168
168
|
</div>
|
169
169
|
|
170
170
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BooleanTermParser::Query
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -407,9 +407,9 @@
|
|
407
407
|
</div>
|
408
408
|
|
409
409
|
<div id="footer">
|
410
|
-
Generated on
|
410
|
+
Generated on Wed May 31 15:49:42 2023 by
|
411
411
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
412
|
-
0.9.
|
412
|
+
0.9.34 (ruby-3.2.0).
|
413
413
|
</div>
|
414
414
|
|
415
415
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BooleanTermParser::QueryParser
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -125,9 +125,9 @@ 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
|
128
|
+
Generated on Wed May 31 15:49:42 2023 by
|
129
129
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.9.
|
130
|
+
0.9.34 (ruby-3.2.0).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BooleanTermParser::QueryTransformer
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -114,9 +114,9 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed May 31 15:49:42 2023 by
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.9.
|
119
|
+
0.9.34 (ruby-3.2.0).
|
120
120
|
</div>
|
121
121
|
|
122
122
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: BooleanTermParser
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -105,9 +105,9 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Wed May 31 15:49:42 2023 by
|
109
109
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
-
0.9.
|
110
|
+
0.9.34 (ruby-3.2.0).
|
111
111
|
</div>
|
112
112
|
|
113
113
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Doing::ArrayCleanup
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -306,9 +306,9 @@ removes empty elements</p>
|
|
306
306
|
</div>
|
307
307
|
|
308
308
|
<div id="footer">
|
309
|
-
Generated on
|
309
|
+
Generated on Wed May 31 15:49:42 2023 by
|
310
310
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
311
|
-
0.9.
|
311
|
+
0.9.34 (ruby-3.2.0).
|
312
312
|
</div>
|
313
313
|
|
314
314
|
</div>
|