na 1.2.51 → 1.2.53
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 +2 -2
- data/Test.todo.markdown +21 -0
- data/lib/na/colors.rb +11 -9
- data/lib/na/next_action.rb +1 -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: 8cecace1a262d294c8ef240dd6413f488b736fc04b7a5edaff413df8184ce2c8
|
4
|
+
data.tar.gz: 2d34dedd3c0cedc257ad1e7761afab581522aed6d97aa48ad53f4e1b424b1c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a46c75398d031fa5a4d029ab99bf6df3cdc3958cbda22de87402480f5327afcfaed5b9353df6515a7610990b5d97e5553e37a94186402c0af0cb817bb7b59674
|
7
|
+
data.tar.gz: 705c122dbd8714a18676b633f201707a515d69e3e24ddbce2c008cce498e3ccdf4f9b3829f3e28e474b5aaa1e41de93ed775da14bc414db16649bece9ab185cc
|
data/CHANGELOG.md
CHANGED
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.53
|
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.53
|
81
81
|
|
82
82
|
GLOBAL OPTIONS
|
83
83
|
-a, --add - Add a next action (deprecated, for backwards compatibility)
|
data/Test.todo.markdown
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
comment: 2023-09-03
|
3
|
+
keywords:
|
4
|
+
---
|
5
|
+
|
6
|
+
2023-09-08:
|
7
|
+
Project2:
|
8
|
+
- new_task @na
|
9
|
+
- new_task @na
|
10
|
+
Project0:
|
11
|
+
- other task @na
|
12
|
+
- other task @na
|
13
|
+
- There, that's better @na
|
14
|
+
Subproject:
|
15
|
+
- new_task 2 @na
|
16
|
+
- new_task @na
|
17
|
+
- new_task 2 @na
|
18
|
+
Project1:
|
19
|
+
- Test4
|
20
|
+
- Test5
|
21
|
+
- Test6
|
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
@@ -296,8 +296,6 @@ module NA
|
|
296
296
|
contents = target.read_file.split("\n")
|
297
297
|
end
|
298
298
|
|
299
|
-
pp projects.map(&:inspect)
|
300
|
-
|
301
299
|
indent = "\t" * target_proj.indent
|
302
300
|
note = note.split("\n") unless note.is_a?(Array)
|
303
301
|
note = if note.empty?
|
@@ -837,7 +835,7 @@ module NA
|
|
837
835
|
## @param prompt [String] The prompt
|
838
836
|
##
|
839
837
|
def request_input(options, prompt: 'Enter text')
|
840
|
-
if $stdin.isatty && TTY::Which.exist?('gum') && options[:tagged].empty?
|
838
|
+
if $stdin.isatty && TTY::Which.exist?('gum') && (options[:tagged].nil? || options[:tagged].empty?)
|
841
839
|
opts = [%(--placeholder "#{prompt}"),
|
842
840
|
'--char-limit=500',
|
843
841
|
"--width=#{TTY::Screen.columns}"]
|
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.52<!--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.53
|
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
|