na 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +14 -9
- data/bin/na +1 -0
- data/lib/na/next_action.rb +7 -5
- data/lib/na/version.rb +1 -1
- data/src/README.md +13 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182588b3837e44b8361cc7c77b1bb52e95323deb7be15062af5487bcca016c3d
|
4
|
+
data.tar.gz: c46e5ed7493ac655419e41154036913493fb21a5d73de68acd7d10923ea464f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a8e4a51b093c696c691f240f2aa80d7775cd187c74954273bd477c9efbff8180dc14b895e98d1b825c26e2a87ef5393998dce741fc377cfe7a7cae4550d750
|
7
|
+
data.tar.gz: 82ff75620de7508e307f64f6d62286590ff8d68c657870ae4d11f91cd44fc8c6a09dcde14316768862b4dac5c889febbc87cdf46eb7b509457e8e7faaacc163c
|
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.1.
|
12
|
+
The current version of `na` is 1.1.3
|
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.
|
@@ -18,6 +18,14 @@ Used with Taskpaper files, it can add new todo items quickly from the command li
|
|
18
18
|
|
19
19
|
It can also auto-display next actions when you enter a project directory, automatically locating any todo files and listing their next actions when you `cd` to the project (optionally recursive). See the [Prompt Hooks](#prompt-hooks) section for details.
|
20
20
|
|
21
|
+
### Installation
|
22
|
+
|
23
|
+
Assuming you have Ruby and RubyGems installed, you can just run `gem install na`. If you run into errors, use `sudo gem install na`.
|
24
|
+
|
25
|
+
If you don't have Ruby/RubyGems, you can install them pretty easily with Homebrew, rvm, or asdf. I can't swear this tool is worth the time, but there _are_ a lot of great gems available...
|
26
|
+
|
27
|
+
|
28
|
+
|
21
29
|
### Features
|
22
30
|
|
23
31
|
You can list next actions in files in the current directory by typing `na`. By default, `na` looks for `*.taskpaper` files and extracts items tagged `@na` and not `@done`. All of these can be changed in the configuration.
|
@@ -36,14 +44,6 @@ You can also quickly add todo items from the command line with the `add` subcomm
|
|
36
44
|
|
37
45
|
If found, it will try to locate an `Inbox:` project, or create one if it doesn't exist. Any arguments after `add` will be combined to create a new task in TaskPaper format. They will automatically be assigned as next actions (tagged `@na`) and will show up when `na` lists the tasks for the project.
|
38
46
|
|
39
|
-
### Installation
|
40
|
-
|
41
|
-
Assuming you have Ruby and RubyGems installed, you can just run `gem install na`. If you run into errors, use `sudo gem install na`.
|
42
|
-
|
43
|
-
If you don't have Ruby/RubyGems, you can install them pretty easily with Homebrew, rvm, or asdf. I can't swear this tool is worth the time, but there _are_ a lot of great gems available...
|
44
|
-
|
45
|
-
|
46
|
-
|
47
47
|
### Usage
|
48
48
|
|
49
49
|
```
|
@@ -296,4 +296,9 @@ If you have [gum][] installed, na will use it for command line input when adding
|
|
296
296
|
[donate]: http://brettterpstra.com/donate/
|
297
297
|
[github]: https://github.com/ttscoff/na_gem/
|
298
298
|
|
299
|
+
|
299
300
|
PayPal link: [paypal.me/ttscoff](https://paypal.me/ttscoff)
|
301
|
+
|
302
|
+
## Changelog
|
303
|
+
|
304
|
+
See [CHANGELOG.md](https://github.com/ttscoff/na_gem/blob/master/CHANGELOG.md)
|
data/bin/na
CHANGED
data/lib/na/next_action.rb
CHANGED
@@ -81,7 +81,7 @@ module NA
|
|
81
81
|
else
|
82
82
|
'%filename%parent%action'
|
83
83
|
end
|
84
|
-
elsif
|
84
|
+
elsif find_files(depth: depth).count > 1
|
85
85
|
if depth > 1
|
86
86
|
'%filename%parent%action'
|
87
87
|
else
|
@@ -103,11 +103,13 @@ module NA
|
|
103
103
|
optional = []
|
104
104
|
|
105
105
|
tag&.each do |t|
|
106
|
-
|
107
|
-
|
106
|
+
unless t[:tag].nil?
|
107
|
+
new_rx = " @#{t[:tag]}"
|
108
|
+
new_rx = "#{new_rx}\\(#{t[:value]}\\)" if t[:value]
|
108
109
|
|
109
|
-
|
110
|
-
|
110
|
+
optional.push(new_rx)
|
111
|
+
required.push(new_rx) if t[:required]
|
112
|
+
end
|
111
113
|
end
|
112
114
|
|
113
115
|
unless search.nil?
|
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.2<!--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
|
|
@@ -17,6 +17,14 @@ Used with Taskpaper files, it can add new todo items quickly from the command li
|
|
17
17
|
|
18
18
|
It can also auto-display next actions when you enter a project directory, automatically locating any todo files and listing their next actions when you `cd` to the project (optionally recursive). See the [Prompt Hooks](#prompt-hooks) section for details.
|
19
19
|
|
20
|
+
### Installation
|
21
|
+
|
22
|
+
Assuming you have Ruby and RubyGems installed, you can just run `gem install na`. If you run into errors, use `sudo gem install na`.
|
23
|
+
|
24
|
+
If you don't have Ruby/RubyGems, you can install them pretty easily with Homebrew, rvm, or asdf. I can't swear this tool is worth the time, but there _are_ a lot of great gems available...
|
25
|
+
|
26
|
+
<!--JEKYLL> You can find the na source code (MIT license) on [GitHub][].-->
|
27
|
+
|
20
28
|
### Features
|
21
29
|
|
22
30
|
You can list next actions in files in the current directory by typing `na`. By default, `na` looks for `*.taskpaper` files and extracts items tagged `@na` and not `@done`. All of these can be changed in the configuration.
|
@@ -35,14 +43,6 @@ You can also quickly add todo items from the command line with the `add` subcomm
|
|
35
43
|
|
36
44
|
If found, it will try to locate an `Inbox:` project, or create one if it doesn't exist. Any arguments after `add` will be combined to create a new task in TaskPaper format. They will automatically be assigned as next actions (tagged `@na`) and will show up when `na` lists the tasks for the project.
|
37
45
|
|
38
|
-
### Installation
|
39
|
-
|
40
|
-
Assuming you have Ruby and RubyGems installed, you can just run `gem install na`. If you run into errors, use `sudo gem install na`.
|
41
|
-
|
42
|
-
If you don't have Ruby/RubyGems, you can install them pretty easily with Homebrew, rvm, or asdf. I can't swear this tool is worth the time, but there _are_ a lot of great gems available...
|
43
|
-
|
44
|
-
<!--JEKYLL> You can find the na source code (MIT license) on [GitHub][].-->
|
45
|
-
|
46
46
|
### Usage
|
47
47
|
|
48
48
|
```
|
@@ -295,8 +295,10 @@ If you have [gum][] installed, na will use it for command line input when adding
|
|
295
295
|
[donate]: http://brettterpstra.com/donate/
|
296
296
|
[github]: https://github.com/ttscoff/na_gem/
|
297
297
|
|
298
|
-
<!--GITHUB-->
|
299
|
-
|
298
|
+
<!--GITHUB-->
|
299
|
+
PayPal link: [paypal.me/ttscoff](https://paypal.me/ttscoff)
|
300
|
+
|
300
301
|
## Changelog
|
301
302
|
|
302
303
|
See [CHANGELOG.md](https://github.com/ttscoff/na_gem/blob/master/CHANGELOG.md)
|
304
|
+
<!--END GITHUB--><!--END README-->
|