na 1.1.18 → 1.1.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca265b21ae87e7ce77028f5a5a61d335d54136998db65495aacda0d8f6ea1a67
4
- data.tar.gz: 10c5a7a4d7dda293f9d10cee00255a3c7e91e36be5adaf57677ff57cac8352c4
3
+ metadata.gz: cca7f5724f71b44df5ad9ac04646a26b9258cb2fb491b0e93b15b6c1f29c68d2
4
+ data.tar.gz: 249da515ff5d4b44928b8401f691e337440f0abd60d78b7155a1e5490b981519
5
5
  SHA512:
6
- metadata.gz: cce03bc78f6622640b3d707b804af98838782786a6b9d026f50ab97715611a34fe26829d1c3b09850679779b5c838e8b41168922973f5e4cf94d3b25859c6746
7
- data.tar.gz: aa8965262c15291fadada3b61be77d7da36710f4a77b4e32a3909e072c30b6a67fb3c5aa8969bb6361e71cbf6efbf7bec8cf9400e0646ba10a4246e82e526359
6
+ metadata.gz: eb3e8285512ba4091326d3c20c5d69e671d7a2f310b6d11f3f7b36ba6b3b19ab237059b12aa091158515eff675d8f6df0e10436119714a5de718e1f8f45a84bb
7
+ data.tar.gz: 1244b815b5666fb758c0b6359a584a5a11e493ce4f30a8c7e325cd9438b1d8ebaee638115d3765954cf9335947648105447941603a168c53aeaeb1ed5a7e5031
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ### 1.1.20
2
+
3
+ 2022-10-07 03:16
4
+
5
+ #### IMPROVED
6
+
7
+ - Date comparisons that don't specify a time are automatically adjusted to "noon" to allow direct comparison of days
8
+
9
+ ### 1.1.19
10
+
11
+ 2022-10-07 03:06
12
+
13
+ #### IMPROVED
14
+
15
+ - More help updates
16
+ - Added `--or` flag to `tagged` and `find` to default to OR boolean combination of search terms/tags
17
+ - Special handling for date comparisons to "today"
18
+
1
19
  ### 1.1.18
2
20
 
3
21
  2022-10-06 17:23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.1.17)
4
+ na (1.1.20)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  gli (~> 2.21.0)
7
7
  tty-reader (~> 0.9, >= 0.9.0)
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  _If you're one of the rare people like me who find this useful, feel free to
10
10
  [buy me some coffee][donate]._
11
11
 
12
- The current version of `na` is 1.1.18
12
+ The current version of `na` is 1.1.20
13
13
  .
14
14
 
15
15
  `na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
@@ -59,24 +59,24 @@ SYNOPSIS
59
59
  na [global options] command [command options] [arguments...]
60
60
 
61
61
  VERSION
62
- 1.1.1
62
+ 1.1.19
63
63
 
64
64
  GLOBAL OPTIONS
65
65
  -a, --[no-]add - Add a next action (deprecated, for backwards compatibility)
66
66
  -d, --depth=DEPTH - Recurse to depth (default: 1)
67
67
  --[no-]debug - Display verbose output
68
- --ext=FILE_EXTENSION - File extension to consider a todo file (default: taskpaper)
68
+ --ext=EXT - File extension to consider a todo file (default: taskpaper)
69
69
  --help - Show this message
70
- -n, --[no-]note - Prompt for additional notes (deprecated, for backwards compatibility)
71
- --na_tag=TAG - Tag to consider a next action (default: na)
70
+ -n, --note - Prompt for additional notes (deprecated, for backwards compatibility)
72
71
  -p, --priority=PRIORITY - Set a priority 0-5 (deprecated, for backwards compatibility) (default: none)
73
- -r, --[no-]recurse - Recurse 3 directories deep (deprecated, for backwards compatability) (default: enabled)
72
+ -r, --[no-]recurse - Recurse 3 directories deep (deprecated, for backwards compatability)
73
+ -t, --na_tag=TAG - Tag to consider a next action (default: na)
74
74
  --version - Display the program version
75
75
 
76
76
  COMMANDS
77
77
  add - Add a new next action
78
78
  edit - Open a todo file in the default editor
79
- find - Find actions matching a search pattern
79
+ find, grep - Find actions matching a search pattern
80
80
  help - Shows a list of commands or help for one command
81
81
  init, create - Create a new todo file in the current directory
82
82
  initconfig - Initialize the config file using current global options
@@ -99,17 +99,19 @@ NAME
99
99
 
100
100
  SYNOPSIS
101
101
 
102
- na [global options] add [command options] TASK
102
+ na [global options] add [command options] ACTION
103
103
 
104
104
  DESCRIPTION
105
105
  Provides an easy way to store todos while you work. Add quick reminders and (if you set up Prompt Hooks) they'll automatically display next time you enter the directory. If multiple todo files are found in the current directory, a menu will allow you to pick to which file the action gets added.
106
106
 
107
107
  COMMAND OPTIONS
108
- -f, --file=PATH - Specify the file to which the task should be added (default: none)
109
- -n, --note - Prompt for additional notes
110
- -p, --priority=arg - Add a priority level 1-5 (default: 0)
111
- -t, --tag=TAG - Use a tag other than the default next action tag (default: none)
112
- -x - Don't add next action tag to new entry
108
+ -d, --depth=DEPTH - Search for files X directories deep (default: 1)
109
+ -f, --file=PATH - Specify the file to which the task should be added (default: none)
110
+ -n, --note - Prompt for additional notes
111
+ -p, --priority=PRIO - Add a priority level 1-5 (default: 0)
112
+ -t, --tag=TAG - Use a tag other than the default next action tag (default: none)
113
+ --to=PROJECT - Add action to specific project (default: Inbox)
114
+ -x - Don't add next action tag to new entry
113
115
 
114
116
  EXAMPLES
115
117
 
@@ -163,22 +165,24 @@ SYNOPSIS
163
165
  na [global options] find [command options] PATTERN
164
166
 
165
167
  DESCRIPTION
166
- Search tokens are separated by spaces. Actions matching any token in the pattern will be shown (partial matches allowed). Add a + before a token to make it required, e.g. `na find +feature +maybe`
168
+ Search tokens are separated by spaces. Actions matching all tokens in the pattern will be shown (partial matches allowed). Add a + before a token to make it required, e.g. `na find +feature +maybe`
167
169
 
168
170
  COMMAND OPTIONS
169
- -d, --depth=DEPTH - Recurse to depth (default: 1)
170
- -x, --exact - Match pattern exactly
171
+ -d, --depth=DEPTH - Recurse to depth (default: none)
172
+ -e, --regex - Interpret search pattern as regular expression
173
+ --in=TODO_PATH - Show actions from a specific todo file in history (default: none)
174
+ -o, --or - Combine search tokens with OR, displaying actions matching ANY of the terms
175
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
176
+ -v, --invert - Show actions not matching search pattern
177
+ -x, --exact - Match pattern exactly
171
178
 
172
179
  EXAMPLES
173
180
 
174
181
  # Find all actions containing feature, idea, and swift
175
- na find feature +idea +swift
182
+ na find feature idea swift
176
183
 
177
184
  # Find all actions containing the exact text "feature idea"
178
185
  na find -x feature idea
179
-
180
- # Find all actions 3 directories deep containing either swift or obj-c
181
- na find -d 3 swift obj-c
182
186
  ```
183
187
 
184
188
  ##### init, create
@@ -217,16 +221,20 @@ SYNOPSIS
217
221
  na [global options] next [command options] OPTIONAL_QUERY
218
222
 
219
223
  COMMAND OPTIONS
220
- -d, --depth=DEPTH - Recurse to depth (default: none)
221
- -t, --tag=arg - Alternate tag to search for (default: na)
224
+ -d, --depth=DEPTH - Recurse to depth (default: 2)
225
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
226
+ -t, --tag=TAG - Alternate tag to search for (default: none)
222
227
 
223
228
  EXAMPLES
224
229
 
225
230
  # display the next actions from any todo files in the current directory
226
- doing next
231
+ na next
232
+
233
+ # display the next actions from the current directory, traversing 3 levels deep
234
+ na next -d 3
227
235
 
228
- # display the next actions from the current directory and its children, 3 levels deep
229
- doing next -d 3
236
+ # display next actions for a project you visited in the past
237
+ na next marked
230
238
  ```
231
239
 
232
240
  ##### tagged
@@ -244,18 +252,31 @@ SYNOPSIS
244
252
  na [global options] tagged [command options] TAG [VALUE]
245
253
 
246
254
  DESCRIPTION
247
- Finds actions with tags matching the arguments. An action is shown if it contains any of the tags listed. Add a + before a tag to make it required, e.g. `na tagged feature +maybe`
255
+ Finds actions with tags matching the arguments. An action is shown if it contains all of the tags listed. Add a + before a tag to make it required and others optional. You can specify values using TAG=VALUE pairs. Use <, >, and = for numeric comparisons, and *=, ^=, and $= for text comparisons. Date comparisons use natural language (`na tagged "due<=today"`) and are detected automatically.
248
256
 
249
257
  COMMAND OPTIONS
250
- -d, --depth=DEPTH - Recurse to depth (default: 1)
258
+ -d, --depth=DEPTH - Recurse to depth (default: 1)
259
+ --in=TODO_PATH - Show actions from a specific todo file in history (default: none)
260
+ -o, --or - Combine tags with OR, displaying actions matching ANY of the tags
261
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
262
+ -v, --invert - Show actions not matching tags
251
263
 
252
264
  EXAMPLES
253
265
 
254
266
  # Show all actions tagged @maybe
255
- na tagged +maybe
267
+ na tagged maybe
268
+
269
+ # Show all actions tagged @feature AND @idea, recurse 3 levels
270
+ na tagged -d 3 "feature, idea"
271
+
272
+ # Show all actions tagged @feature OR @idea
273
+ na tagged --or "feature, idea"
274
+
275
+ # Show actions with @priority(4) or @priority(5)
276
+ na tagged "priority>=4"
256
277
 
257
- # Show all actions tagged @feature and @idea, recurse 3 levels
258
- na tagged -d 3 feature idea
278
+ # Show actions with a due date coming up in the next 2 days
279
+ na tagged "due<in 2 days"
259
280
  ```
260
281
 
261
282
  ### Configuration
data/bin/na CHANGED
@@ -119,7 +119,7 @@ class App
119
119
 
120
120
  If multiple todo files are found in the current directory, a menu will allow you to pick to which
121
121
  file the action gets added.'
122
- arg_name 'TASK'
122
+ arg_name 'ACTION'
123
123
  command :add do |c|
124
124
  c.example 'na add "A cool feature I thought of @idea"', desc: 'Add a new action to the Inbox, including a tag'
125
125
  c.example 'na add "A bug I need to fix" -p 4 -n',
@@ -231,7 +231,7 @@ class App
231
231
  end
232
232
 
233
233
  desc 'Find actions matching a search pattern'
234
- long_desc 'Search tokens are separated by spaces. Actions matching any token in the pattern will be shown
234
+ long_desc 'Search tokens are separated by spaces. Actions matching all tokens in the pattern will be shown
235
235
  (partial matches allowed). Add a + before a token to make it required, e.g. `na find +feature +maybe`'
236
236
  arg_name 'PATTERN'
237
237
  command %i[find grep] do |c|
@@ -252,6 +252,9 @@ class App
252
252
  c.arg_name 'TODO_PATH'
253
253
  c.flag %i[in]
254
254
 
255
+ c.desc 'Combine search tokens with OR, displaying actions matching ANY of the terms'
256
+ c.switch %i[o or], negatable: false
257
+
255
258
  c.desc 'Show actions from a specific project'
256
259
  c.arg_name 'PROJECT[/SUBPROJECT]'
257
260
  c.flag %i[proj project]
@@ -272,7 +275,7 @@ class App
272
275
  tokens = Regexp.new(args.join(' '), Regexp::IGNORECASE)
273
276
  else
274
277
  tokens = []
275
- all_req = args.join(' ') !~ /[+!\-]/
278
+ all_req = args.join(' ') !~ /[+!\-]/ && !options[:or]
276
279
 
277
280
  args.join(' ').split(/ /).each do |arg|
278
281
  m = arg.match(/^(?<req>[+\-!])?(?<tok>.*?)$/)
@@ -311,13 +314,18 @@ class App
311
314
 
312
315
  desc 'Find actions matching a tag'
313
316
  long_desc 'Finds actions with tags matching the arguments. An action is shown if it
314
- contains any of the tags listed. Add a + before a tag to make it required.
315
- You can specify values using TAG=VALUE pairs.'
317
+ contains all of the tags listed. Add a + before a tag to make it required
318
+ and others optional. You can specify values using TAG=VALUE pairs.
319
+ Use <, >, and = for numeric comparisons, and *=, ^=, and $= for text comparisons.
320
+ Date comparisons use natural language (`na tagged "due<=today"`) and
321
+ are detected automatically.'
316
322
  arg_name 'TAG [VALUE]'
317
323
  command %i[tagged] do |c|
318
324
  c.example 'na tagged maybe', desc: 'Show all actions tagged @maybe'
319
- c.example 'na tagged -d 3 feature idea', desc: 'Show all actions tagged @feature and @idea, recurse 3 levels'
320
- c.example 'na tagged priority>=4', desc: 'Show actions with @priority(4) or @priority(5)'
325
+ c.example 'na tagged -d 3 "feature, idea"', desc: 'Show all actions tagged @feature AND @idea, recurse 3 levels'
326
+ c.example 'na tagged --or "feature, idea"', desc: 'Show all actions tagged @feature OR @idea'
327
+ c.example 'na tagged "priority>=4"', desc: 'Show actions with @priority(4) or @priority(5)'
328
+ c.example 'na tagged "due<in 2 days"', desc: 'Show actions with a due date coming up in the next 2 days'
321
329
 
322
330
  c.desc 'Recurse to depth'
323
331
  c.arg_name 'DEPTH'
@@ -328,6 +336,9 @@ class App
328
336
  c.arg_name 'TODO_PATH'
329
337
  c.flag %i[in]
330
338
 
339
+ c.desc 'Combine tags with OR, displaying actions matching ANY of the tags'
340
+ c.switch %i[o or], negatable: false
341
+
331
342
  c.desc 'Show actions from a specific project'
332
343
  c.arg_name 'PROJECT[/SUBPROJECT]'
333
344
  c.flag %i[proj project]
@@ -344,7 +355,7 @@ class App
344
355
 
345
356
  tags = []
346
357
 
347
- all_req = args.join(' ') !~ /[+!\-]/
358
+ all_req = args.join(' ') !~ /[+!\-]/ && !options[:or]
348
359
  args.join(',').split(/ *, */).each do |arg|
349
360
  # TODO: <> comparisons do nothing right now
350
361
  m = arg.match(/^(?<req>[+\-!])?(?<tag>[^ =<>*$\^]+)(?:(?<op>[=<>*$\^]+)(?<val>.*?))?$/)
data/lib/na/action.rb CHANGED
@@ -140,6 +140,11 @@ module NA
140
140
  tag_date = Time.parse(tag_val)
141
141
  date = Chronic.parse(val)
142
142
 
143
+ unless val =~ /(\d:\d|a[mp]|now)/i
144
+ tag_date = Time.parse(tag_date.strftime('%Y-%m-%d 12:00'))
145
+ date = Time.parse(date.strftime('%Y-%m-%d 12:00'))
146
+ end
147
+
143
148
  puts "Comparing #{tag_date} #{tag[:comp]} #{date}" if NA.verbose
144
149
 
145
150
  case tag[:comp]
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.1.18'
2
+ VERSION = '1.1.20'
3
3
  end
data/scripts/fixreadme.rb CHANGED
@@ -13,6 +13,11 @@ content.gsub!(/<!--VER-->(.*?)<!--END VER-->/, current_ver)
13
13
  content.gsub!(/<!--GITHUB-->(.*?)<!--END GITHUB-->/m, '\1')
14
14
  content.gsub!(/<!--JEKYLL(.*?)-->/m, '')
15
15
 
16
+ content.gsub!(/^@cli\((.*?)\)/) do
17
+ cmd = Regexp.last_match(1)
18
+ `#{cmd}`.strip.gsub(/\n{2,}/, "\n\n")
19
+ end
20
+
16
21
  File.open(dest, 'w') { |f| f.puts(content) }
17
22
 
18
23
  Process.exit 0
data/src/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  _If you're one of the rare people like me who find this useful, feel free to
10
10
  [buy me some coffee][donate]._
11
11
 
12
- The current version of `na` is <!--VER-->1.1.17<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.1.19<!--END VER-->.
13
13
 
14
14
  `na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
15
15
 
@@ -58,24 +58,24 @@ SYNOPSIS
58
58
  na [global options] command [command options] [arguments...]
59
59
 
60
60
  VERSION
61
- 1.1.1
61
+ 1.1.19
62
62
 
63
63
  GLOBAL OPTIONS
64
64
  -a, --[no-]add - Add a next action (deprecated, for backwards compatibility)
65
65
  -d, --depth=DEPTH - Recurse to depth (default: 1)
66
66
  --[no-]debug - Display verbose output
67
- --ext=FILE_EXTENSION - File extension to consider a todo file (default: taskpaper)
67
+ --ext=EXT - File extension to consider a todo file (default: taskpaper)
68
68
  --help - Show this message
69
- -n, --[no-]note - Prompt for additional notes (deprecated, for backwards compatibility)
70
- --na_tag=TAG - Tag to consider a next action (default: na)
69
+ -n, --note - Prompt for additional notes (deprecated, for backwards compatibility)
71
70
  -p, --priority=PRIORITY - Set a priority 0-5 (deprecated, for backwards compatibility) (default: none)
72
- -r, --[no-]recurse - Recurse 3 directories deep (deprecated, for backwards compatability) (default: enabled)
71
+ -r, --[no-]recurse - Recurse 3 directories deep (deprecated, for backwards compatability)
72
+ -t, --na_tag=TAG - Tag to consider a next action (default: na)
73
73
  --version - Display the program version
74
74
 
75
75
  COMMANDS
76
76
  add - Add a new next action
77
77
  edit - Open a todo file in the default editor
78
- find - Find actions matching a search pattern
78
+ find, grep - Find actions matching a search pattern
79
79
  help - Shows a list of commands or help for one command
80
80
  init, create - Create a new todo file in the current directory
81
81
  initconfig - Initialize the config file using current global options
@@ -98,17 +98,19 @@ NAME
98
98
 
99
99
  SYNOPSIS
100
100
 
101
- na [global options] add [command options] TASK
101
+ na [global options] add [command options] ACTION
102
102
 
103
103
  DESCRIPTION
104
104
  Provides an easy way to store todos while you work. Add quick reminders and (if you set up Prompt Hooks) they'll automatically display next time you enter the directory. If multiple todo files are found in the current directory, a menu will allow you to pick to which file the action gets added.
105
105
 
106
106
  COMMAND OPTIONS
107
- -f, --file=PATH - Specify the file to which the task should be added (default: none)
108
- -n, --note - Prompt for additional notes
109
- -p, --priority=arg - Add a priority level 1-5 (default: 0)
110
- -t, --tag=TAG - Use a tag other than the default next action tag (default: none)
111
- -x - Don't add next action tag to new entry
107
+ -d, --depth=DEPTH - Search for files X directories deep (default: 1)
108
+ -f, --file=PATH - Specify the file to which the task should be added (default: none)
109
+ -n, --note - Prompt for additional notes
110
+ -p, --priority=PRIO - Add a priority level 1-5 (default: 0)
111
+ -t, --tag=TAG - Use a tag other than the default next action tag (default: none)
112
+ --to=PROJECT - Add action to specific project (default: Inbox)
113
+ -x - Don't add next action tag to new entry
112
114
 
113
115
  EXAMPLES
114
116
 
@@ -162,22 +164,24 @@ SYNOPSIS
162
164
  na [global options] find [command options] PATTERN
163
165
 
164
166
  DESCRIPTION
165
- Search tokens are separated by spaces. Actions matching any token in the pattern will be shown (partial matches allowed). Add a + before a token to make it required, e.g. `na find +feature +maybe`
167
+ Search tokens are separated by spaces. Actions matching all tokens in the pattern will be shown (partial matches allowed). Add a + before a token to make it required, e.g. `na find +feature +maybe`
166
168
 
167
169
  COMMAND OPTIONS
168
- -d, --depth=DEPTH - Recurse to depth (default: 1)
169
- -x, --exact - Match pattern exactly
170
+ -d, --depth=DEPTH - Recurse to depth (default: none)
171
+ -e, --regex - Interpret search pattern as regular expression
172
+ --in=TODO_PATH - Show actions from a specific todo file in history (default: none)
173
+ -o, --or - Combine search tokens with OR, displaying actions matching ANY of the terms
174
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
175
+ -v, --invert - Show actions not matching search pattern
176
+ -x, --exact - Match pattern exactly
170
177
 
171
178
  EXAMPLES
172
179
 
173
180
  # Find all actions containing feature, idea, and swift
174
- na find feature +idea +swift
181
+ na find feature idea swift
175
182
 
176
183
  # Find all actions containing the exact text "feature idea"
177
184
  na find -x feature idea
178
-
179
- # Find all actions 3 directories deep containing either swift or obj-c
180
- na find -d 3 swift obj-c
181
185
  ```
182
186
 
183
187
  ##### init, create
@@ -216,16 +220,20 @@ SYNOPSIS
216
220
  na [global options] next [command options] OPTIONAL_QUERY
217
221
 
218
222
  COMMAND OPTIONS
219
- -d, --depth=DEPTH - Recurse to depth (default: none)
220
- -t, --tag=arg - Alternate tag to search for (default: na)
223
+ -d, --depth=DEPTH - Recurse to depth (default: 2)
224
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
225
+ -t, --tag=TAG - Alternate tag to search for (default: none)
221
226
 
222
227
  EXAMPLES
223
228
 
224
229
  # display the next actions from any todo files in the current directory
225
- doing next
230
+ na next
231
+
232
+ # display the next actions from the current directory, traversing 3 levels deep
233
+ na next -d 3
226
234
 
227
- # display the next actions from the current directory and its children, 3 levels deep
228
- doing next -d 3
235
+ # display next actions for a project you visited in the past
236
+ na next marked
229
237
  ```
230
238
 
231
239
  ##### tagged
@@ -243,18 +251,31 @@ SYNOPSIS
243
251
  na [global options] tagged [command options] TAG [VALUE]
244
252
 
245
253
  DESCRIPTION
246
- Finds actions with tags matching the arguments. An action is shown if it contains any of the tags listed. Add a + before a tag to make it required, e.g. `na tagged feature +maybe`
254
+ Finds actions with tags matching the arguments. An action is shown if it contains all of the tags listed. Add a + before a tag to make it required and others optional. You can specify values using TAG=VALUE pairs. Use <, >, and = for numeric comparisons, and *=, ^=, and $= for text comparisons. Date comparisons use natural language (`na tagged "due<=today"`) and are detected automatically.
247
255
 
248
256
  COMMAND OPTIONS
249
- -d, --depth=DEPTH - Recurse to depth (default: 1)
257
+ -d, --depth=DEPTH - Recurse to depth (default: 1)
258
+ --in=TODO_PATH - Show actions from a specific todo file in history (default: none)
259
+ -o, --or - Combine tags with OR, displaying actions matching ANY of the tags
260
+ --proj, --project=PROJECT[/SUBPROJECT] - Show actions from a specific project (default: none)
261
+ -v, --invert - Show actions not matching tags
250
262
 
251
263
  EXAMPLES
252
264
 
253
265
  # Show all actions tagged @maybe
254
- na tagged +maybe
266
+ na tagged maybe
267
+
268
+ # Show all actions tagged @feature AND @idea, recurse 3 levels
269
+ na tagged -d 3 "feature, idea"
270
+
271
+ # Show all actions tagged @feature OR @idea
272
+ na tagged --or "feature, idea"
273
+
274
+ # Show actions with @priority(4) or @priority(5)
275
+ na tagged "priority>=4"
255
276
 
256
- # Show all actions tagged @feature and @idea, recurse 3 levels
257
- na tagged -d 3 feature idea
277
+ # Show actions with a due date coming up in the next 2 days
278
+ na tagged "due<in 2 days"
258
279
  ```
259
280
 
260
281
  ### Configuration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: na
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.18
4
+ version: 1.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake