doing 2.0.10 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +5 -15
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/bin/doing +58 -36
- data/doing.gemspec +2 -1
- data/doing.rdoc +1 -71
- data/lib/completion/_doing.zsh +24 -20
- data/lib/completion/doing.bash +41 -30
- data/lib/completion/doing.fish +50 -1
- data/lib/doing/array.rb +14 -1
- data/lib/doing/item.rb +18 -17
- data/lib/doing/log_adapter.rb +9 -6
- data/lib/doing/string.rb +2 -2
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +94 -46
- data/lib/doing.rb +1 -1
- metadata +16 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 262b91be12667a7fe32b425976d59da69e29c7a6979ef51b57672db4e2d6ac5f
|
4
|
+
data.tar.gz: 40557fb4ab216703c4c72d8509c42373187be1f328d9e54ba562b95d9d8af4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae876bc4a6aefe32d7fa4e2b81d86b0a8d1fe3a8299c8e4567065a707e03468a0e65cb3bba51519e9e2bf9a9f09be41ae13d918f50707677cfa8fb61f5a3345
|
7
|
+
data.tar.gz: d2dbc67e2479d98084eb4e4375c4ccdf3701747ed4b138879449c121abdbc64298e7070c2845ee8f5187058d2bd04bb3d2d5347af814807ed5c1cc902e657d16
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
### 2.0.16
|
2
|
+
|
3
|
+
- Test release to validate git flow automation
|
4
|
+
|
5
|
+
### 2.0.13
|
6
|
+
|
7
|
+
#### FIXED
|
8
|
+
|
9
|
+
- Remove amatch gem dependency due to compatibility issues with Windows systems (also removes `--fuzzy` option from all search commands)
|
10
|
+
|
11
|
+
### 2.0.11
|
12
|
+
|
13
|
+
#### NEW
|
14
|
+
|
15
|
+
- Append `/r` to tag transforms to replace original tag
|
16
|
+
|
17
|
+
#### FIXED
|
18
|
+
|
19
|
+
- Autotag tag transform fixes
|
20
|
+
|
1
21
|
### 2.0.10
|
2
22
|
|
3
23
|
#### NEW
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
doing (2.0.
|
5
|
-
amatch (~> 0.4, >= 0.4.0)
|
4
|
+
doing (2.0.16)
|
6
5
|
chronic (~> 0.10, >= 0.10.2)
|
7
6
|
deep_merge (~> 1.2, >= 1.2.1)
|
8
7
|
gli (~> 2.19, >= 2.19.2)
|
@@ -18,9 +17,6 @@ GEM
|
|
18
17
|
minitest (>= 5.1)
|
19
18
|
tzinfo (~> 2.0)
|
20
19
|
zeitwerk (~> 2.3)
|
21
|
-
amatch (0.4.0)
|
22
|
-
mize
|
23
|
-
tins (~> 1.0)
|
24
20
|
aruba (1.0.4)
|
25
21
|
childprocess (>= 2.0, < 5.0)
|
26
22
|
contracts (~> 0.16.0)
|
@@ -75,17 +71,16 @@ GEM
|
|
75
71
|
concurrent-ruby (~> 1.0)
|
76
72
|
middleware (0.1.0)
|
77
73
|
minitest (5.14.4)
|
78
|
-
mize (0.4.0)
|
79
|
-
protocol (~> 2.0)
|
80
74
|
multi_test (0.1.2)
|
75
|
+
parallel (1.21.0)
|
76
|
+
parallel_tests (3.7.3)
|
77
|
+
parallel
|
81
78
|
power_assert (2.0.1)
|
82
79
|
protobuf-cucumber (3.10.8)
|
83
80
|
activesupport (>= 3.2)
|
84
81
|
middleware
|
85
82
|
thor
|
86
83
|
thread_safe
|
87
|
-
protocol (2.0.0)
|
88
|
-
ruby_parser (~> 3.0)
|
89
84
|
rake (13.0.6)
|
90
85
|
rdoc (6.3.3)
|
91
86
|
redcarpet (3.5.1)
|
@@ -93,11 +88,7 @@ GEM
|
|
93
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
94
89
|
rspec-support (~> 3.10.0)
|
95
90
|
rspec-support (3.10.3)
|
96
|
-
ruby_parser (3.18.1)
|
97
|
-
sexp_processor (~> 4.16)
|
98
91
|
safe_yaml (1.0.5)
|
99
|
-
sexp_processor (4.16.0)
|
100
|
-
sync (0.5.0)
|
101
92
|
sys-uname (1.2.2)
|
102
93
|
ffi (~> 1.1)
|
103
94
|
temple (0.8.2)
|
@@ -106,8 +97,6 @@ GEM
|
|
106
97
|
thor (1.1.0)
|
107
98
|
thread_safe (0.3.6)
|
108
99
|
tilt (2.0.10)
|
109
|
-
tins (1.29.1)
|
110
|
-
sync
|
111
100
|
tzinfo (2.0.4)
|
112
101
|
concurrent-ruby (~> 1.0)
|
113
102
|
yard (0.9.26)
|
@@ -120,6 +109,7 @@ DEPENDENCIES
|
|
120
109
|
aruba (~> 1.0.2)
|
121
110
|
doing!
|
122
111
|
github-markup
|
112
|
+
parallel_tests
|
123
113
|
rake (~> 13.0, >= 13.0.1)
|
124
114
|
rdoc (~> 6.3.1)
|
125
115
|
redcarpet
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ _If you're one of the rare people like me who find this useful, feel free to [bu
|
|
6
6
|
|
7
7
|
<!--README-->
|
8
8
|
|
9
|
-
The current version of `doing` is <!--VER-->2.0.
|
9
|
+
The current version of `doing` is <!--VER-->2.0.15<!--END VER-->.
|
10
10
|
|
11
11
|
Find all of the documentation in the [doing wiki](https://github.com/ttscoff/doing/wiki).
|
12
12
|
|
data/Rakefile
CHANGED
data/bin/doing
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
$LOAD_PATH.unshift File.join(__dir__, '..', 'lib')
|
@@ -198,8 +198,8 @@ command %i[reset begin] do |c|
|
|
198
198
|
c.arg_name 'QUERY'
|
199
199
|
c.flag [:search]
|
200
200
|
|
201
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
202
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
201
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
202
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
203
203
|
|
204
204
|
c.desc 'Force exact search string matching (case sensitive)'
|
205
205
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -219,6 +219,7 @@ command %i[reset begin] do |c|
|
|
219
219
|
c.switch %i[i interactive], negatable: false, default_value: false
|
220
220
|
|
221
221
|
c.action do |global_options, options, args|
|
222
|
+
options[:fuzzy] = false
|
222
223
|
if options[:section]
|
223
224
|
options[:section] = wwid.guess_section(options[:section]) || options[:section].cap_first
|
224
225
|
end
|
@@ -296,8 +297,8 @@ command :note do |c|
|
|
296
297
|
c.arg_name 'QUERY'
|
297
298
|
c.flag [:search]
|
298
299
|
|
299
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
300
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
300
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
301
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
301
302
|
|
302
303
|
c.desc 'Force exact search string matching (case sensitive)'
|
303
304
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -317,6 +318,7 @@ command :note do |c|
|
|
317
318
|
c.switch %i[i interactive], negatable: false, default_value: false
|
318
319
|
|
319
320
|
c.action do |_global_options, options, args|
|
321
|
+
options[:fuzzy] = false
|
320
322
|
if options[:section]
|
321
323
|
options[:section] = wwid.guess_section(options[:section]) || options[:section].cap_first
|
322
324
|
end
|
@@ -854,8 +856,8 @@ command :cancel do |c|
|
|
854
856
|
c.arg_name 'QUERY'
|
855
857
|
c.flag [:search]
|
856
858
|
|
857
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
858
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
859
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
860
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
859
861
|
|
860
862
|
c.desc 'Force exact search string matching (case sensitive)'
|
861
863
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -874,6 +876,7 @@ command :cancel do |c|
|
|
874
876
|
c.switch %i[i interactive], negatable: false, default_value: false
|
875
877
|
|
876
878
|
c.action do |_global_options, options, args|
|
879
|
+
options[:fuzzy] = false
|
877
880
|
if options[:section]
|
878
881
|
section = wwid.guess_section(options[:section]) || options[:section].cap_first
|
879
882
|
else
|
@@ -956,8 +959,8 @@ command :finish do |c|
|
|
956
959
|
c.arg_name 'QUERY'
|
957
960
|
c.flag [:search]
|
958
961
|
|
959
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
960
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
962
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
963
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
961
964
|
|
962
965
|
c.desc 'Force exact search string matching (case sensitive)'
|
963
966
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -995,6 +998,7 @@ command :finish do |c|
|
|
995
998
|
c.switch %i[i interactive], negatable: false, default_value: false
|
996
999
|
|
997
1000
|
c.action do |_global_options, options, args|
|
1001
|
+
options[:fuzzy] = false
|
998
1002
|
unless options[:auto]
|
999
1003
|
if options[:took]
|
1000
1004
|
took = wwid.chronify_qty(options[:took])
|
@@ -1086,8 +1090,8 @@ command %i[again resume] do |c|
|
|
1086
1090
|
c.arg_name 'QUERY'
|
1087
1091
|
c.flag [:search]
|
1088
1092
|
|
1089
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1090
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
1093
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
1094
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1091
1095
|
|
1092
1096
|
c.desc 'Force exact search string matching (case sensitive)'
|
1093
1097
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -1114,6 +1118,7 @@ command %i[again resume] do |c|
|
|
1114
1118
|
c.switch %i[i interactive], negatable: false, default_value: false
|
1115
1119
|
|
1116
1120
|
c.action do |_global_options, options, _args|
|
1121
|
+
options[:fuzzy] = false
|
1117
1122
|
tags = options[:tag].nil? ? [] : options[:tag].to_tags
|
1118
1123
|
|
1119
1124
|
options[:case] = options[:case].normalize_case
|
@@ -1195,8 +1200,8 @@ command :tag do |c|
|
|
1195
1200
|
c.arg_name 'QUERY'
|
1196
1201
|
c.flag [:search]
|
1197
1202
|
|
1198
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1199
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
1203
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
1204
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1200
1205
|
|
1201
1206
|
c.desc 'Force exact search string matching (case sensitive)'
|
1202
1207
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -1216,6 +1221,7 @@ command :tag do |c|
|
|
1216
1221
|
c.switch %i[i interactive], negatable: false, default_value: false
|
1217
1222
|
|
1218
1223
|
c.action do |_global_options, options, args|
|
1224
|
+
options[:fuzzy] = false
|
1219
1225
|
raise MissingArgument, 'You must specify at least one tag' if args.empty? && !options[:autotag]
|
1220
1226
|
|
1221
1227
|
raise InvalidArgument, '--search and --tag can not be used together' if options[:search] && options[:tag]
|
@@ -1252,6 +1258,7 @@ command :tag do |c|
|
|
1252
1258
|
count = options[:count].to_i
|
1253
1259
|
end
|
1254
1260
|
|
1261
|
+
options[:case] ||= :smart
|
1255
1262
|
options[:case] = options[:case].normalize_case
|
1256
1263
|
|
1257
1264
|
if options[:search]
|
@@ -1330,8 +1337,8 @@ command [:mark, :flag] do |c|
|
|
1330
1337
|
c.arg_name 'QUERY'
|
1331
1338
|
c.flag [:search]
|
1332
1339
|
|
1333
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1334
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
1340
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
1341
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1335
1342
|
|
1336
1343
|
c.desc 'Force exact search string matching (case sensitive)'
|
1337
1344
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -1351,6 +1358,7 @@ command [:mark, :flag] do |c|
|
|
1351
1358
|
c.switch %i[i interactive], negatable: false, default_value: false
|
1352
1359
|
|
1353
1360
|
c.action do |_global_options, options, _args|
|
1361
|
+
options[:fuzzy] = false
|
1354
1362
|
mark = settings['marker_tag'] || 'flagged'
|
1355
1363
|
|
1356
1364
|
raise InvalidArgument, '--search and --tag can not be used together' if options[:search] && options[:tag]
|
@@ -1458,8 +1466,8 @@ command :show do |c|
|
|
1458
1466
|
c.arg_name 'QUERY'
|
1459
1467
|
c.flag [:search]
|
1460
1468
|
|
1461
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1462
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
1469
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
1470
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1463
1471
|
|
1464
1472
|
c.desc 'Force exact search string matching (case sensitive)'
|
1465
1473
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -1509,6 +1517,7 @@ command :show do |c|
|
|
1509
1517
|
c.arg_name 'FORMAT'
|
1510
1518
|
c.flag %i[o output]
|
1511
1519
|
c.action do |global_options, options, args|
|
1520
|
+
options[:fuzzy] = false
|
1512
1521
|
raise DoingRuntimeError, %(Invalid output type "#{options[:output]}") if options[:output] && options[:output] !~ Doing::Plugins.plugin_regex(type: :export)
|
1513
1522
|
|
1514
1523
|
tag_filter = false
|
@@ -1573,7 +1582,12 @@ command :show do |c|
|
|
1573
1582
|
|
1574
1583
|
options[:times] = true if options[:totals]
|
1575
1584
|
|
1576
|
-
|
1585
|
+
template = settings['templates']['default'].deep_merge({
|
1586
|
+
'wrap_width' => settings['wrap_width'] || 0,
|
1587
|
+
'date_format' => settings['default_date_format'],
|
1588
|
+
'order' => settings['order'] || 'asc',
|
1589
|
+
'tags_color' => settings['tags_color']
|
1590
|
+
})
|
1577
1591
|
|
1578
1592
|
options[:case] = options[:case].normalize_case
|
1579
1593
|
|
@@ -1594,7 +1608,7 @@ command :show do |c|
|
|
1594
1608
|
opt[:tag] = nil
|
1595
1609
|
opt[:tag_filter] = tag_filter
|
1596
1610
|
opt[:tag_order] = options[:tag_order].normalize_order
|
1597
|
-
opt[:tags_color] = tags_color
|
1611
|
+
opt[:tags_color] = template['tags_color']
|
1598
1612
|
|
1599
1613
|
Doing::Pager.page wwid.list_section(opt)
|
1600
1614
|
end
|
@@ -1645,8 +1659,8 @@ command %i[grep search] do |c|
|
|
1645
1659
|
c.desc 'Only show items with recorded time intervals'
|
1646
1660
|
c.switch [:only_timed], default_value: false, negatable: false
|
1647
1661
|
|
1648
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1649
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
1662
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
1663
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1650
1664
|
|
1651
1665
|
c.desc 'Force exact string matching (case sensitive)'
|
1652
1666
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -1662,9 +1676,11 @@ command %i[grep search] do |c|
|
|
1662
1676
|
c.switch %i[i interactive], default_value: false, negatable: false
|
1663
1677
|
|
1664
1678
|
c.action do |_global_options, options, args|
|
1679
|
+
options[:fuzzy] = false
|
1665
1680
|
raise DoingRuntimeError, %(Invalid output type "#{options[:output]}") if options[:output] && options[:output] !~ Doing::Plugins.plugin_regex(type: :export)
|
1666
1681
|
|
1667
|
-
|
1682
|
+
template = settings['templates']['default'].deep_merge(settings)
|
1683
|
+
tags_color = template.key?('tags_color') ? template['tags_color'] : nil
|
1668
1684
|
|
1669
1685
|
section = wwid.guess_section(options[:section]) if options[:section]
|
1670
1686
|
|
@@ -1730,7 +1746,9 @@ command :recent do |c|
|
|
1730
1746
|
|
1731
1747
|
options[:t] = true if options[:totals]
|
1732
1748
|
options[:sort_tags] = options[:tag_sort] =~ /^n/i
|
1733
|
-
|
1749
|
+
|
1750
|
+
template = settings['templates']['recent'].deep_merge(settings['templates']['default'])
|
1751
|
+
tags_color = template.key?('tags_color') ? template['tags_color'] : nil
|
1734
1752
|
|
1735
1753
|
opts = {
|
1736
1754
|
sort_tags: options[:sort_tags],
|
@@ -1791,8 +1809,7 @@ command :today do |c|
|
|
1791
1809
|
before: options[:before],
|
1792
1810
|
section: options[:section],
|
1793
1811
|
sort_tags: options[:sort_tags],
|
1794
|
-
totals: options[:totals]
|
1795
|
-
order: settings.dig('templates', 'today', 'order')
|
1812
|
+
totals: options[:totals]
|
1796
1813
|
}
|
1797
1814
|
Doing::Pager.page wwid.today(options[:times], options[:output], opt).chomp
|
1798
1815
|
end
|
@@ -1994,8 +2011,8 @@ command :last do |c|
|
|
1994
2011
|
c.arg_name 'QUERY'
|
1995
2012
|
c.flag [:search]
|
1996
2013
|
|
1997
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
1998
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
2014
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
2015
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
1999
2016
|
|
2000
2017
|
c.desc 'Force exact search string matching (case sensitive)'
|
2001
2018
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -2008,6 +2025,7 @@ command :last do |c|
|
|
2008
2025
|
c.flag [:case], must_match: /^[csi]/, default_value: 'smart'
|
2009
2026
|
|
2010
2027
|
c.action do |global_options, options, _args|
|
2028
|
+
options[:fuzzy] = false
|
2011
2029
|
raise InvalidArgument, '--tag and --search can not be used together' if options[:tag] && options[:search]
|
2012
2030
|
|
2013
2031
|
if options[:tag].nil?
|
@@ -2196,8 +2214,8 @@ command :view do |c|
|
|
2196
2214
|
c.arg_name 'QUERY'
|
2197
2215
|
c.flag [:search]
|
2198
2216
|
|
2199
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
2200
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
2217
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
2218
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
2201
2219
|
|
2202
2220
|
c.desc 'Force exact search string matching (case sensitive)'
|
2203
2221
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -2232,6 +2250,7 @@ command :view do |c|
|
|
2232
2250
|
c.switch %i[i interactive], negatable: false, default_value: false
|
2233
2251
|
|
2234
2252
|
c.action do |global_options, options, args|
|
2253
|
+
options[:fuzzy] = false
|
2235
2254
|
raise DoingRuntimeError, %(Invalid output type "#{options[:output]}") if options[:output] && options[:output] !~ Doing::Plugins.plugin_regex(type: :export)
|
2236
2255
|
|
2237
2256
|
raise InvalidArgument, '--tag and --search can not be used together' if options[:tag] && options[:search]
|
@@ -2266,6 +2285,7 @@ command :view do |c|
|
|
2266
2285
|
|
2267
2286
|
template = view.key?('template') ? view['template'] : nil
|
2268
2287
|
date_format = view.key?('date_format') ? view['date_format'] : nil
|
2288
|
+
|
2269
2289
|
tags_color = view.key?('tags_color') ? view['tags_color'] : nil
|
2270
2290
|
tag_filter = false
|
2271
2291
|
if options[:tag]
|
@@ -2423,8 +2443,8 @@ command %i[archive move] do |c|
|
|
2423
2443
|
c.arg_name 'QUERY'
|
2424
2444
|
c.flag [:search]
|
2425
2445
|
|
2426
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
2427
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
2446
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
2447
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
2428
2448
|
|
2429
2449
|
c.desc 'Force exact search string matching (case sensitive)'
|
2430
2450
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -2442,6 +2462,7 @@ command %i[archive move] do |c|
|
|
2442
2462
|
c.flag [:before]
|
2443
2463
|
|
2444
2464
|
c.action do |_global_options, options, args|
|
2465
|
+
options[:fuzzy] = false
|
2445
2466
|
if args.empty?
|
2446
2467
|
section = settings['current_section']
|
2447
2468
|
tags = []
|
@@ -2504,8 +2525,8 @@ command :rotate do |c|
|
|
2504
2525
|
c.arg_name 'QUERY'
|
2505
2526
|
c.flag [:search]
|
2506
2527
|
|
2507
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
2508
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
2528
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
2529
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
2509
2530
|
|
2510
2531
|
c.desc 'Force exact search string matching (case sensitive)'
|
2511
2532
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -2523,6 +2544,7 @@ command :rotate do |c|
|
|
2523
2544
|
c.flag [:before]
|
2524
2545
|
|
2525
2546
|
c.action do |_global_options, options, args|
|
2547
|
+
options[:fuzzy] = false
|
2526
2548
|
if options[:section] && options[:section] !~ /^all$/i
|
2527
2549
|
options[:section] = wwid.guess_section(options[:section])
|
2528
2550
|
end
|
@@ -2727,8 +2749,8 @@ command :import do |c|
|
|
2727
2749
|
c.arg_name 'QUERY'
|
2728
2750
|
c.flag [:search]
|
2729
2751
|
|
2730
|
-
c.desc 'Use alternative fuzzy matching for search string'
|
2731
|
-
c.switch [:fuzzy], default_value: false, negatable: false
|
2752
|
+
# c.desc '[DEPRECATED] Use alternative fuzzy matching for search string'
|
2753
|
+
# c.switch [:fuzzy], default_value: false, negatable: false
|
2732
2754
|
|
2733
2755
|
c.desc 'Force exact search string matching (case sensitive)'
|
2734
2756
|
c.switch %i[x exact], default_value: false, negatable: false
|
@@ -2778,7 +2800,7 @@ command :import do |c|
|
|
2778
2800
|
c.switch [:overlap], negatable: true
|
2779
2801
|
|
2780
2802
|
c.action do |_global_options, options, args|
|
2781
|
-
|
2803
|
+
options[:fuzzy] = false
|
2782
2804
|
if options[:section]
|
2783
2805
|
options[:section] = wwid.guess_section(options[:section]) || options[:section].cap_first
|
2784
2806
|
end
|
data/doing.gemspec
CHANGED
@@ -30,9 +30,10 @@ spec = Gem::Specification.new do |s|
|
|
30
30
|
s.add_development_dependency 'yard'
|
31
31
|
s.add_development_dependency 'redcarpet'
|
32
32
|
s.add_development_dependency 'github-markup'
|
33
|
+
s.add_development_dependency 'parallel_tests'
|
33
34
|
s.add_runtime_dependency('gli', '~> 2.19', '>= 2.19.2')
|
34
35
|
s.add_runtime_dependency('haml','~>5.0.0', '>= 5.0.0')
|
35
36
|
s.add_runtime_dependency('chronic','~> 0.10', '>= 0.10.2')
|
36
37
|
s.add_runtime_dependency('deep_merge', '~> 1.2', '>= 1.2.1')
|
37
|
-
s.add_runtime_dependency('amatch', '~> 0.4', '>= 0.4.0')
|
38
|
+
# s.add_runtime_dependency('amatch', '~> 0.4', '>= 0.4.0')
|
38
39
|
end
|
data/doing.rdoc
CHANGED
@@ -5,7 +5,7 @@ record of what you've been doing, complete with tag-based time tracking. The
|
|
5
5
|
command line tool allows you to add entries, annotate with tags and notes, and
|
6
6
|
view your entries with myriad options, with a focus on a "natural" language syntax.
|
7
7
|
|
8
|
-
v2.0.
|
8
|
+
v2.0.16
|
9
9
|
|
10
10
|
=== Global Options
|
11
11
|
=== --config_file arg
|
@@ -139,11 +139,6 @@ Edit duplicated entry with vim before adding
|
|
139
139
|
|
140
140
|
|
141
141
|
|
142
|
-
===== --fuzzy
|
143
|
-
Use alternative fuzzy matching for search string
|
144
|
-
|
145
|
-
|
146
|
-
|
147
142
|
===== -i|--interactive
|
148
143
|
Select item to resume from a menu of matching entries
|
149
144
|
|
@@ -220,11 +215,6 @@ Tag filter, combine multiple tags with a comma. Added for compatibility with oth
|
|
220
215
|
[Default Value] None
|
221
216
|
|
222
217
|
|
223
|
-
===== --fuzzy
|
224
|
-
Use alternative fuzzy matching for search string
|
225
|
-
|
226
|
-
|
227
|
-
|
228
218
|
===== --[no-]label
|
229
219
|
Label moved items with @from(SECTION_NAME)
|
230
220
|
|
@@ -347,11 +337,6 @@ Archive entries
|
|
347
337
|
|
348
338
|
|
349
339
|
|
350
|
-
===== --fuzzy
|
351
|
-
Use alternative fuzzy matching for search string
|
352
|
-
|
353
|
-
|
354
|
-
|
355
340
|
===== -i|--interactive
|
356
341
|
Select item(s) to cancel from a menu of matching entries
|
357
342
|
|
@@ -606,11 +591,6 @@ Include date
|
|
606
591
|
|
607
592
|
|
608
593
|
|
609
|
-
===== --fuzzy
|
610
|
-
Use alternative fuzzy matching for search string
|
611
|
-
|
612
|
-
|
613
|
-
|
614
594
|
===== -i|--interactive
|
615
595
|
Select item(s) to finish from a menu of matching entries
|
616
596
|
|
@@ -687,11 +667,6 @@ Sort tags by (name|time)
|
|
687
667
|
[Must Match] (?i-mx:^(?:name|time)$)
|
688
668
|
|
689
669
|
|
690
|
-
===== --fuzzy
|
691
|
-
Use alternative fuzzy matching for search string
|
692
|
-
|
693
|
-
|
694
|
-
|
695
670
|
===== -i|--interactive
|
696
671
|
Display an interactive menu of results to perform further operations
|
697
672
|
|
@@ -808,11 +783,6 @@ Autotag entries
|
|
808
783
|
|
809
784
|
|
810
785
|
|
811
|
-
===== --fuzzy
|
812
|
-
Use alternative fuzzy matching for search string
|
813
|
-
|
814
|
-
|
815
|
-
|
816
786
|
===== --not
|
817
787
|
Import items that *don't* match search/tag/date filters
|
818
788
|
|
@@ -880,11 +850,6 @@ Edit entry with vim
|
|
880
850
|
|
881
851
|
|
882
852
|
|
883
|
-
===== --fuzzy
|
884
|
-
Use alternative fuzzy matching for search string
|
885
|
-
|
886
|
-
|
887
|
-
|
888
853
|
===== --not
|
889
854
|
Show items that *don't* match search string or tag filter
|
890
855
|
|
@@ -980,11 +945,6 @@ Don't ask permission to flag all entries when count is 0
|
|
980
945
|
|
981
946
|
|
982
947
|
|
983
|
-
===== --fuzzy
|
984
|
-
Use alternative fuzzy matching for search string
|
985
|
-
|
986
|
-
|
987
|
-
|
988
948
|
===== -i|--interactive
|
989
949
|
Select item(s) to flag from a menu of matching entries
|
990
950
|
|
@@ -1097,11 +1057,6 @@ Edit entry with vim
|
|
1097
1057
|
|
1098
1058
|
|
1099
1059
|
|
1100
|
-
===== --fuzzy
|
1101
|
-
Use alternative fuzzy matching for search string
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
1060
|
===== -i|--interactive
|
1106
1061
|
Select item for new note from a menu of matching entries
|
1107
1062
|
|
@@ -1319,11 +1274,6 @@ Reset last entry matching tag
|
|
1319
1274
|
[Default Value] None
|
1320
1275
|
|
1321
1276
|
|
1322
|
-
===== --fuzzy
|
1323
|
-
Use alternative fuzzy matching for search string
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
1277
|
===== -i|--interactive
|
1328
1278
|
Select from a menu of matching entries
|
1329
1279
|
|
@@ -1402,11 +1352,6 @@ Tag filter, combine multiple tags with a comma. Added for compatibility with oth
|
|
1402
1352
|
[Default Value] None
|
1403
1353
|
|
1404
1354
|
|
1405
|
-
===== --fuzzy
|
1406
|
-
Use alternative fuzzy matching for search string
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
1355
|
===== --not
|
1411
1356
|
Rotate items that *don't* match search string or tag filter
|
1412
1357
|
|
@@ -1650,11 +1595,6 @@ Sort tags by (name|time)
|
|
1650
1595
|
[Must Match] (?i-mx:^(?:name|time))
|
1651
1596
|
|
1652
1597
|
|
1653
|
-
===== --fuzzy
|
1654
|
-
Use alternative fuzzy matching for search string
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
1598
|
===== -i|--interactive
|
1659
1599
|
Select from a menu of matching entries to perform additional operations
|
1660
1600
|
|
@@ -1808,11 +1748,6 @@ Don't ask permission to tag all entries when count is 0
|
|
1808
1748
|
|
1809
1749
|
|
1810
1750
|
|
1811
|
-
===== --fuzzy
|
1812
|
-
Use alternative fuzzy matching for search string
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
1751
|
===== -i|--interactive
|
1817
1752
|
Select item(s) to tag from a menu of matching entries
|
1818
1753
|
|
@@ -2018,11 +1953,6 @@ Include colors in output
|
|
2018
1953
|
|
2019
1954
|
|
2020
1955
|
|
2021
|
-
===== --fuzzy
|
2022
|
-
Use alternative fuzzy matching for search string
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
1956
|
===== -i|--interactive
|
2027
1957
|
Select from a menu of matching entries to perform additional operations
|
2028
1958
|
|