na 1.2.37 → 1.2.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/Gemfile.lock +1 -1
- data/README.md +82 -6
- data/bin/commands/add.rb +11 -16
- data/bin/commands/edit.rb +15 -27
- data/bin/commands/find.rb +16 -9
- data/bin/commands/init.rb +1 -1
- data/bin/commands/next.rb +65 -27
- data/bin/commands/projects.rb +1 -1
- data/bin/commands/saved.rb +22 -11
- data/bin/commands/tagged.rb +7 -7
- data/bin/commands/todos.rb +24 -14
- data/bin/commands/update.rb +24 -36
- data/bin/na +2 -1
- data/lib/na/action.rb +24 -26
- data/lib/na/actions.rb +8 -8
- data/lib/na/colors.rb +24 -2
- data/lib/na/editor.rb +13 -11
- data/lib/na/hash.rb +31 -0
- data/lib/na/next_action.rb +90 -49
- data/lib/na/pager.rb +1 -1
- data/lib/na/prompt.rb +6 -6
- data/lib/na/string.rb +53 -7
- data/lib/na/theme.rb +71 -0
- data/lib/na/todo.rb +2 -2
- data/lib/na/version.rb +1 -1
- data/lib/na.rb +1 -0
- data/src/_README.md +35 -15
- metadata +3 -2
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.38<!--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
|
|
@@ -69,7 +69,7 @@ You can mark todos as complete, delete them, add and remove tags, change priorit
|
|
69
69
|
### Usage
|
70
70
|
|
71
71
|
```
|
72
|
-
@cli(na help)
|
72
|
+
@cli(bundle exec bin/na help)
|
73
73
|
```
|
74
74
|
|
75
75
|
#### Commands
|
@@ -87,13 +87,13 @@ Use the `--note` switch to add a note. If STDIN (piped) input is present when th
|
|
87
87
|
Notes are not displayed by the `next/tagged/find` commands unless `--notes` is specified.
|
88
88
|
|
89
89
|
```
|
90
|
-
@cli(na help add)
|
90
|
+
@cli(bundle exec bin/na help add)
|
91
91
|
```
|
92
92
|
|
93
93
|
##### edit
|
94
94
|
|
95
95
|
```
|
96
|
-
@cli(na help edit)
|
96
|
+
@cli(bundle exec bin/na help edit)
|
97
97
|
```
|
98
98
|
|
99
99
|
##### find
|
@@ -103,13 +103,13 @@ Example: `na find cool feature idea`
|
|
103
103
|
Unless `--exact` is specified, search is tokenized and combined with AND, so `na find cool feature idea` translates to `cool AND feature AND idea`, matching any string that contains all of the words. To make a token required and others optional, add a `+` before it (e.g. `cool +feature idea` is `(cool OR idea) AND feature`). Wildcards allowed (`*` and `?`), use `--regex` to interpret the search as a regular expression. Use `-v` to invert the results (display non-matching actions only).
|
104
104
|
|
105
105
|
```
|
106
|
-
@cli(na help find)
|
106
|
+
@cli(bundle exec bin/na help find)
|
107
107
|
```
|
108
108
|
|
109
109
|
##### init, create
|
110
110
|
|
111
111
|
```
|
112
|
-
@cli(na help init)
|
112
|
+
@cli(bundle exec bin/na help init)
|
113
113
|
```
|
114
114
|
|
115
115
|
##### next, show
|
@@ -123,7 +123,7 @@ Examples:
|
|
123
123
|
To see all next actions across all known todos, use `na next "*"`. You can combine multiple arguments to see actions across multiple todos, e.g. `na next marked nvultra`.
|
124
124
|
|
125
125
|
```
|
126
|
-
@cli(na help next)
|
126
|
+
@cli(bundle exec bin/na help next)
|
127
127
|
```
|
128
128
|
|
129
129
|
##### projects
|
@@ -131,7 +131,7 @@ To see all next actions across all known todos, use `na next "*"`. You can combi
|
|
131
131
|
List all projects in a file. If arguments are provided, they're used to match a todo file from history, otherwise the todo file(s) in the current directory will be used.
|
132
132
|
|
133
133
|
```
|
134
|
-
@cli(na help projects)
|
134
|
+
@cli(bundle exec bin/na help projects)
|
135
135
|
```
|
136
136
|
|
137
137
|
##### saved
|
@@ -146,7 +146,7 @@ Run `na saved` without an argument to list your saved searches.
|
|
146
146
|
<!--JEKYLL{:.tip}-->
|
147
147
|
|
148
148
|
```
|
149
|
-
@cli(na help saved)
|
149
|
+
@cli(bundle exec bin/na help saved)
|
150
150
|
```
|
151
151
|
|
152
152
|
##### tagged
|
@@ -160,7 +160,7 @@ You can also perform value comparisons on tags. A value in a TaskPaper tag is ad
|
|
160
160
|
To perform a string comparison, you can use `*=` (contains), `^=` (starts with), `$=` (ends with), or `=` (matches). E.g. `na tagged "note*=video"`.
|
161
161
|
|
162
162
|
```
|
163
|
-
@cli(na help show)
|
163
|
+
@cli(bundle exec bin/na help show)
|
164
164
|
```
|
165
165
|
|
166
166
|
##### todos
|
@@ -168,7 +168,7 @@ To perform a string comparison, you can use `*=` (contains), `^=` (starts with),
|
|
168
168
|
List all known todo files from history.
|
169
169
|
|
170
170
|
```
|
171
|
-
@cli(na help todos)
|
171
|
+
@cli(bundle exec bin/na help todos)
|
172
172
|
```
|
173
173
|
|
174
174
|
##### update
|
@@ -206,7 +206,7 @@ Notes are not displayed by the `next/tagged/find` commands unless `--notes` is s
|
|
206
206
|
See the help output for a list of all available actions.
|
207
207
|
|
208
208
|
```
|
209
|
-
@cli(na help update)
|
209
|
+
@cli(bundle exec bin/na help update)
|
210
210
|
```
|
211
211
|
|
212
212
|
##### changelog
|
@@ -214,7 +214,7 @@ See the help output for a list of all available actions.
|
|
214
214
|
View recent changes with `na changelog` or `na changes`.
|
215
215
|
|
216
216
|
```
|
217
|
-
@cli(na help changelog)
|
217
|
+
@cli(bundle exec bin/na help changelog)
|
218
218
|
```
|
219
219
|
|
220
220
|
##### complete
|
@@ -222,7 +222,7 @@ View recent changes with `na changelog` or `na changes`.
|
|
222
222
|
Mark an action as complete, shortcut for `na update --finish`.
|
223
223
|
|
224
224
|
```
|
225
|
-
@cli(na help complete)
|
225
|
+
@cli(bundle exec bin/na help complete)
|
226
226
|
```
|
227
227
|
|
228
228
|
##### archive
|
@@ -230,7 +230,27 @@ Mark an action as complete, shortcut for `na update --finish`.
|
|
230
230
|
Mark an action as complete and move to archive, shortcut for `na update --archive`.
|
231
231
|
|
232
232
|
```
|
233
|
-
@cli(na help archive)
|
233
|
+
@cli(bundle exec bin/na help archive)
|
234
|
+
```
|
235
|
+
|
236
|
+
##### tag
|
237
|
+
|
238
|
+
Add, remove, or modify tags.
|
239
|
+
|
240
|
+
Use `na tag TAGNAME --[search|tagged] SEARCH_STRING` to add a tag to matching action (use `--all` to apply to all matching actions). If you use `!TAGNAME` it will remove that tag (regardless of value). To change the value of an existing tag (or add it if it doesn't exist), use `~TAGNAME(NEW VALUE)`.
|
241
|
+
|
242
|
+
```
|
243
|
+
@cli(bundle exec bin/na help tag)
|
244
|
+
```
|
245
|
+
|
246
|
+
##### undo
|
247
|
+
|
248
|
+
Undoes the last file change resulting from an add or update command. If no argument is given, it undoes whatever the last change in history was. If an argument is provided, it's used to match against the change history, finding a specific file to restore from backup.
|
249
|
+
|
250
|
+
Only the most recent change can be undone.
|
251
|
+
|
252
|
+
```
|
253
|
+
@cli(bundle exec bin/na help undo)
|
234
254
|
```
|
235
255
|
|
236
256
|
### Configuration
|
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.39
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- lib/na/project.rb
|
239
239
|
- lib/na/prompt.rb
|
240
240
|
- lib/na/string.rb
|
241
|
+
- lib/na/theme.rb
|
241
242
|
- lib/na/todo.rb
|
242
243
|
- lib/na/version.rb
|
243
244
|
- na.gemspec
|