na 1.1.4 → 1.1.6
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 +1 -1
- data/README.md +1 -1
- data/bin/na +4 -2
- data/lib/na/next_action.rb +5 -4
- data/lib/na/string.rb +3 -1
- data/lib/na/version.rb +1 -1
- data/src/README.md +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c4375b396333ce69e4064947e572686950926d68fdb5ae667525507d0a4ec7
|
4
|
+
data.tar.gz: 0eec2704ac51ed2c9840f41c235e86f0420ea4d67323afe6be743ae7a6ec1601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c707ed84fcb1ecba18dcaa159e58a445df4e4be3940a6abc3c58c8a909293a98262c21fa48215d65abbd8234e56835279a94f9a8d214909c428b8713ac75f36
|
7
|
+
data.tar.gz: f46959d5c7869b53c32a6d454f805e966e3ed7fa2f5ae0eff03b65f173c4741bf285d17cde9cdb94a78fe1acac38a49fdcc04e3b57b7ef9499e7e976e0106ef8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
### 1.1.6
|
2
|
+
|
3
|
+
2022-10-02 11:46
|
4
|
+
|
5
|
+
#### CHANGED
|
6
|
+
|
7
|
+
- `na find` and `na tagged` now operate on all actions, not just actions tagged @na. If you want to limit to @na actions, just include +na in the query.
|
8
|
+
|
9
|
+
### 1.1.5
|
10
|
+
|
11
|
+
2022-10-01 11:32
|
12
|
+
|
13
|
+
#### FIXED
|
14
|
+
|
15
|
+
- Parsing of project hierarchy for an action
|
16
|
+
|
1
17
|
### 1.1.4
|
2
18
|
|
3
19
|
2022-09-29 04:17
|
data/Gemfile.lock
CHANGED
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.
|
12
|
+
The current version of `na` is 1.1.6
|
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.
|
data/bin/na
CHANGED
@@ -242,7 +242,8 @@ class App
|
|
242
242
|
end
|
243
243
|
|
244
244
|
files, actions = NA.parse_actions(depth: depth,
|
245
|
-
search: tokens
|
245
|
+
search: tokens,
|
246
|
+
require_na: false)
|
246
247
|
NA.output_actions(actions, depth, files: files)
|
247
248
|
end
|
248
249
|
end
|
@@ -282,7 +283,8 @@ class App
|
|
282
283
|
end
|
283
284
|
|
284
285
|
files, actions = NA.parse_actions(depth: depth,
|
285
|
-
tag: tags
|
286
|
+
tag: tags,
|
287
|
+
require_na: false)
|
286
288
|
NA.output_actions(actions, depth, files: files)
|
287
289
|
end
|
288
290
|
end
|
data/lib/na/next_action.rb
CHANGED
@@ -97,7 +97,7 @@ module NA
|
|
97
97
|
puts actions.map { |action| action.pretty(template: { output: template }) }
|
98
98
|
end
|
99
99
|
|
100
|
-
def parse_actions(depth: 1, query: nil, tag: nil, search: nil)
|
100
|
+
def parse_actions(depth: 1, query: nil, tag: nil, search: nil, require_na: true)
|
101
101
|
actions = []
|
102
102
|
required = []
|
103
103
|
optional = []
|
@@ -148,14 +148,15 @@ module NA
|
|
148
148
|
if indent.zero?
|
149
149
|
parent = [proj]
|
150
150
|
elsif indent <= indent_level
|
151
|
-
parent.slice!(
|
151
|
+
parent.slice!(indent, parent.count - indent)
|
152
152
|
parent.push(proj)
|
153
153
|
elsif indent > indent_level
|
154
154
|
parent.push(proj)
|
155
|
-
indent_level = indent
|
156
155
|
end
|
156
|
+
|
157
|
+
indent_level = indent
|
157
158
|
elsif line =~ /^[ \t]*- / && line !~ / @done/
|
158
|
-
next
|
159
|
+
next if require_na && line !~ /@#{NA.na_tag}\b/
|
159
160
|
|
160
161
|
unless optional.empty? && required.empty?
|
161
162
|
next unless line.matches(any: optional, all: required)
|
data/lib/na/string.rb
CHANGED
data/lib/na/version.rb
CHANGED
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.
|
12
|
+
The current version of `na` is <!--VER-->1.1.5<!--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
|
|
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.
|
4
|
+
version: 1.1.6
|
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-
|
11
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|