na 1.2.62 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/0 +0 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +4 -6
- data/README.md +3 -3
- data/bin/commands/complete.rb +1 -1
- data/bin/commands/completed.rb +1 -1
- data/bin/commands/next.rb +0 -2
- data/bin/commands/update.rb +2 -1
- data/lib/na/action.rb +1 -2
- data/lib/na/editor.rb +1 -1
- data/lib/na/string.rb +1 -1
- 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: 8913d21ba15ed1f470aa073fbdd6a9d3cb081e1d7d99f09bbb11a56b4bac7167
|
|
4
|
+
data.tar.gz: ed3bff3d476c30cb44d2c1d5a0ddb553278f496952a2459585c15ed1f402af30
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68f9d3099ff4e2903e612252f17f56fe7c936b1eb2f854ce87f6866464b1a206eec80518ef673dc4f91e30c070a84b11165cd5f442c65f5c4c94593416cf2748
|
|
7
|
+
data.tar.gz: 0340b85bdac9837612ad361cd9da0fe96af557697f8e38ac77097a6dd5da0e22031e098c67348de035a95982c7f27445df5fa8bbab0087e6030ab87d6c22a014
|
data/0
ADDED
|
File without changes
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
na (1.2.
|
|
4
|
+
na (1.2.63)
|
|
5
5
|
chronic (~> 0.10, >= 0.10.2)
|
|
6
6
|
gli (~> 2.21.0)
|
|
7
7
|
mdless (~> 1.0, >= 1.0.32)
|
|
@@ -14,8 +14,8 @@ GEM
|
|
|
14
14
|
specs:
|
|
15
15
|
chronic (0.10.2)
|
|
16
16
|
gli (2.21.1)
|
|
17
|
-
mdless (1.0.
|
|
18
|
-
minitest (5.
|
|
17
|
+
mdless (1.0.37)
|
|
18
|
+
minitest (5.20.0)
|
|
19
19
|
rake (0.9.6)
|
|
20
20
|
rdoc (4.3.0)
|
|
21
21
|
tty-cursor (0.7.1)
|
|
@@ -25,10 +25,8 @@ GEM
|
|
|
25
25
|
wisper (~> 2.0)
|
|
26
26
|
tty-screen (0.8.1)
|
|
27
27
|
tty-which (0.5.0)
|
|
28
|
-
webrick (1.7.0)
|
|
29
28
|
wisper (2.0.1)
|
|
30
|
-
yard (0.9.
|
|
31
|
-
webrick (~> 1.7.0)
|
|
29
|
+
yard (0.9.34)
|
|
32
30
|
|
|
33
31
|
PLATFORMS
|
|
34
32
|
arm64-darwin-20
|
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.63
|
|
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.63
|
|
81
81
|
|
|
82
82
|
GLOBAL OPTIONS
|
|
83
83
|
-a, --add - Add a next action (deprecated, for backwards compatibility)
|
|
@@ -573,7 +573,7 @@ COMMAND OPTIONS
|
|
|
573
573
|
--search, --find, --grep=QUERY - Filter results using search terms (may be used more than once, default: none)
|
|
574
574
|
--[no-]search_notes - Include notes in search (default: enabled)
|
|
575
575
|
--tagged=TAG - Match actions containing tag. Allows value comparisons (may be used more than once, default: none)
|
|
576
|
-
--to, --move=PROJECT -
|
|
576
|
+
--to, --move=PROJECT - Add a @done tag and move action to specific project (default: none)
|
|
577
577
|
-x, --exact - Match pattern exactly
|
|
578
578
|
|
|
579
579
|
EXAMPLES
|
data/bin/commands/complete.rb
CHANGED
|
@@ -20,7 +20,7 @@ class App
|
|
|
20
20
|
c.desc 'Add a @done tag to action and move to Archive'
|
|
21
21
|
c.switch %i[a archive], negatable: false
|
|
22
22
|
|
|
23
|
-
c.desc '
|
|
23
|
+
c.desc 'Add a @done tag and move action to specific project'
|
|
24
24
|
c.arg_name 'PROJECT'
|
|
25
25
|
c.flag %i[to move]
|
|
26
26
|
|
data/bin/commands/completed.rb
CHANGED
data/bin/commands/next.rb
CHANGED
data/bin/commands/update.rb
CHANGED
|
@@ -178,7 +178,8 @@ class App
|
|
|
178
178
|
args = ['--placeholder "Enter a note, CTRL-d to save"']
|
|
179
179
|
args << '--char-limit 0'
|
|
180
180
|
args << '--width $(tput cols)'
|
|
181
|
-
|
|
181
|
+
gum = TTY::Which.which('gum')
|
|
182
|
+
`#{gum} write #{args.join(' ')}`.strip.split("\n")
|
|
182
183
|
else
|
|
183
184
|
NA.notify("#{NA.theme[:prompt]}Enter a note, {bw}CTRL-d#{NA.theme[:prompt]} to end editing:#{NA.theme[:action]}")
|
|
184
185
|
reader.read_multiline
|
data/lib/na/action.rb
CHANGED
|
@@ -39,8 +39,7 @@ module NA
|
|
|
39
39
|
|
|
40
40
|
string = "#{string.strip} @done(#{Time.now.strftime('%Y-%m-%d %H:%M')})" if finish && string !~ /(?<=\A| )@done/
|
|
41
41
|
|
|
42
|
-
@action = string
|
|
43
|
-
@action.expand_date_tags
|
|
42
|
+
@action = string.expand_date_tags
|
|
44
43
|
@note = note unless note.empty?
|
|
45
44
|
end
|
|
46
45
|
|
data/lib/na/editor.rb
CHANGED
|
@@ -105,7 +105,7 @@ module NA
|
|
|
105
105
|
title = input_lines[0]&.strip
|
|
106
106
|
NA.notify("#{NA.theme[:error]}No content in first line", exit_code: 1) if title.nil? || title.strip.empty?
|
|
107
107
|
|
|
108
|
-
title.expand_date_tags
|
|
108
|
+
title = title.expand_date_tags
|
|
109
109
|
|
|
110
110
|
note = if input_lines.length > 1
|
|
111
111
|
input_lines[1..-1]
|
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.2.
|
|
12
|
+
The current version of `na` is <!--VER-->1.2.62<!--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.63
|
|
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-
|
|
11
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -199,6 +199,7 @@ extra_rdoc_files:
|
|
|
199
199
|
- na.rdoc
|
|
200
200
|
files:
|
|
201
201
|
- ".travis.yml"
|
|
202
|
+
- '0'
|
|
202
203
|
- CHANGELOG.md
|
|
203
204
|
- Gemfile
|
|
204
205
|
- Gemfile.lock
|