na 1.2.50 → 1.2.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/Test.todo.markdown +16 -0
- data/lib/na/colors.rb +11 -9
- data/lib/na/next_action.rb +4 -3
- data/lib/na/version.rb +1 -1
- data/src/_README.md +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab5b88ac338b40822248e4c33b5c87b65add30e67ffdebda203c66c8dd77330a
|
4
|
+
data.tar.gz: 3bb7a4bf303ffa98502c30b122ebe728c1c31dc2377f839daa1a34ed3f516570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75a990f0117537c9087ee6872c93e6213b98fe57b992c0d0c82476df603427fc3f3586a307f4b05be0af77adf20950777576cd3d3966936d2e0cb9d88562cdd
|
7
|
+
data.tar.gz: 531a7e450af89094784b0228be1821d11c71b3e40b94ad6c68c613eb6f79a29a03285d1c5724cc76932ad8891756363385108c9ba67e2a7d8f7481f6c2ae567d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
### 1.2.52
|
2
|
+
|
3
|
+
2023-09-10 06:32
|
4
|
+
|
5
|
+
#### FIXED
|
6
|
+
|
7
|
+
- Remove debug statement
|
8
|
+
|
9
|
+
### 1.2.51
|
10
|
+
|
11
|
+
2023-09-09 13:20
|
12
|
+
|
13
|
+
#### FIXED
|
14
|
+
|
15
|
+
- Ensure new actions are added within newly created projects
|
16
|
+
- When creating a subproject, ensure new project gets inserted
|
17
|
+
|
1
18
|
### 1.2.50
|
2
19
|
|
3
20
|
2023-09-09 08:04
|
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.2.
|
12
|
+
The current version of `na` is 1.2.52
|
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.
|
@@ -77,7 +77,7 @@ SYNOPSIS
|
|
77
77
|
na [global options] command [command options] [arguments...]
|
78
78
|
|
79
79
|
VERSION
|
80
|
-
1.2.
|
80
|
+
1.2.52
|
81
81
|
|
82
82
|
GLOBAL OPTIONS
|
83
83
|
-a, --add - Add a next action (deprecated, for backwards compatibility)
|
data/Test.todo.markdown
ADDED
data/lib/na/colors.rb
CHANGED
@@ -210,18 +210,20 @@ module NA
|
|
210
210
|
## Colors are specified with single letters inside
|
211
211
|
## curly braces. Uppercase changes background color.
|
212
212
|
##
|
213
|
-
## w: white, k: black, g: green, l: blue, y: yellow,
|
214
|
-
## m: magenta, r: red, b: bold, u: underline,
|
215
|
-
## x: reset (remove background, color,
|
213
|
+
## w: white, k: black, g: green, l: blue, y: yellow,
|
214
|
+
## c: cyan, m: magenta, r: red, b: bold, u: underline,
|
215
|
+
## i: italic, x: reset (remove background, color,
|
216
|
+
## emphasis)
|
216
217
|
##
|
217
|
-
## Also accepts {#RGB} and {#RRGGBB} strings. Put a b
|
218
|
-
## the hash to make it a background color
|
218
|
+
## Also accepts {#RGB} and {#RRGGBB} strings. Put a b
|
219
|
+
## before the hash to make it a background color
|
219
220
|
##
|
220
|
-
## @example
|
221
|
-
##
|
221
|
+
## @example Convert a templated string
|
222
|
+
## Color.template('{Rwb}Warning:{x} {w}you look a
|
223
|
+
## little {g}ill{x}')
|
222
224
|
##
|
223
|
-
## @example
|
224
|
-
##
|
225
|
+
## @example Convert using RGB colors
|
226
|
+
## Color.template('{#f0a}This is an RGB color')
|
225
227
|
##
|
226
228
|
## @param input [String, Array] The template
|
227
229
|
## string. If this is an array, the
|
data/lib/na/next_action.rb
CHANGED
@@ -203,15 +203,15 @@ module NA
|
|
203
203
|
content = content.split(/\n/).insert(line, input.join("\n")).join("\n")
|
204
204
|
else
|
205
205
|
split = content.split(/\n/)
|
206
|
-
line = todo.projects.first&.
|
206
|
+
line = todo.projects.first&.last_line || 0
|
207
207
|
before = split.slice(0, line).join("\n")
|
208
208
|
after = split.slice(line, split.count - 0).join("\n")
|
209
209
|
content = "#{before}\n#{input.join("\n")}\n#{after}"
|
210
210
|
end
|
211
211
|
|
212
|
-
new_project = NA::Project.new(path.map(&:cap_first).join(':'), indent - 1, line, line
|
212
|
+
new_project = NA::Project.new(path.map(&:cap_first).join(':'), indent - 1, line, line)
|
213
213
|
else
|
214
|
-
line = final_match.
|
214
|
+
line = final_match.last_line + 1
|
215
215
|
indent = final_match.indent + 1
|
216
216
|
input = []
|
217
217
|
new_path.each do |part|
|
@@ -292,6 +292,7 @@ module NA
|
|
292
292
|
|
293
293
|
NA.notify("#{NA.theme[:error]}Error parsing project #{NA.theme[:filename]}#{target}", exit_code: 1) if target_proj.nil?
|
294
294
|
|
295
|
+
projects = find_projects(target)
|
295
296
|
contents = target.read_file.split("\n")
|
296
297
|
end
|
297
298
|
|
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.2.
|
12
|
+
The current version of `na` is <!--VER-->1.2.51<!--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.2.
|
4
|
+
version: 1.2.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- README.md
|
207
207
|
- README.rdoc
|
208
208
|
- Rakefile
|
209
|
+
- Test.todo.markdown
|
209
210
|
- bin/commands/add.rb
|
210
211
|
- bin/commands/archive.rb
|
211
212
|
- bin/commands/changes.rb
|