na 1.2.82 → 1.2.83

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 742c746b884aa5ac75841f771fb9f13c95ead1a161d340ca0ea362c52b584914
4
- data.tar.gz: 9b62bb218a75b19767dc7d2ebc59b1a49d2770df1ee44c28077cc077add2e1a4
3
+ metadata.gz: 345970813fdbd36c16fc2dbe64d170039644939543828e9447d16703ed81eb1d
4
+ data.tar.gz: d5a1f454a83ba7b5ab3072ba69a9b8ebb3f8cfc38165ae6c8433cef9c6183b9d
5
5
  SHA512:
6
- metadata.gz: 4a57ecae0c67beb917c7b1f9986acbdd8f8cd4315c50cef6800da7dc3707a0b19919d2aff2496dd786dd7373fce45ec361feb2b36e768a04f0653545196d08f0
7
- data.tar.gz: f4c5bf1a7d6169d8fd77eb94816469e196c626357e0c73ca25a7084e9e2e94480036c739f4880cbd98ffddae351e872ca667c31e54901473ec0bc19c92edad0a
6
+ metadata.gz: 86f9e53d24bbcae8ae97b890adb2e59a92cfba2887ac3a6851fa6fd41de677bd33ee410c52958b3d1ee26457b722f74fc3dbaef7ba001162d08a4fd9cfe5e8df
7
+ data.tar.gz: a45b00b9b87e6244e6b9cc9c732f47706457763e083d89f2fe54596ac4e6fb18e3305a3670514b030e723d882059eff8b150a7bf86697c70ca6ef501426a787d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### 1.2.83
2
+
3
+ 2025-10-25 10:06
4
+
5
+ #### FIXED
6
+
7
+ - Gracefully ignore -d X commands where X is deeper than existing structure
8
+ - Allow depth > 9
9
+
1
10
  ### 1.2.82
2
11
 
3
12
  2025-10-25 09:47
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.82)
4
+ na (1.2.83)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  git (~> 3.0.0)
7
7
  gli (~> 2.21.0)
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.82.
12
+ The current version of `na` is 1.2.83.
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
 
@@ -76,7 +76,7 @@ SYNOPSIS
76
76
  na [global options] command [command options] [arguments...]
77
77
 
78
78
  VERSION
79
- 1.2.82
79
+ 1.2.83
80
80
 
81
81
  GLOBAL OPTIONS
82
82
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -551,12 +551,12 @@ This command will perform actions (tag, untag, complete, archive, add note, etc.
551
551
 
552
552
  You can specify a particular todo file using `--file PATH` or any todo from history using `--in QUERY`.
553
553
 
554
- If more than one file is matched, a menu will be presented, multiple selections allowed. If multiple actions match the search within the selected file(s), a menu will be presented. If you have fzf installed, you can select one action to update with return, or use tab to mark multiple tasks to which the action will be applied. With gum you can use j, k, and x to mark multiple actions. Use the `--all` switch to force operation on all matched tasks, skipping the menu.
555
-
556
- Any time an update action is carried out, a backup of the file before modification will be made in the same directory with a `.` prepended and `.bak` appended (e.g. `marked.taskpaper` is copied to `.marked.taskpaper.bak`). Only one undo step is available, but if something goes wrong (and this feature is still experimental, so be wary), you can just copy the ".bak" file back to the original.
554
+ If more than one file is matched, a menu will be presented, multiple selections allowed. If multiple actions match the search within the selected file(s), a menu will be presented. Use the `--all` switch to force operation on all matched tasks, skipping the menu.
557
555
 
558
556
  > **Note:** When using the `update` command, if you have [fzf](https://github.com/junegunn/fzf) installed, menus for selecting files or actions will support multi-select (tab to mark multiple, return to confirm). If [gum](https://github.com/charmbracelet/gum) is installed, multi-select is also supported (use j/k/x to navigate and mark). If neither is available, a simple prompt is used. This makes it easy to apply updates to multiple actions at once.
559
557
 
558
+ Any time an update action is carried out, a backup of the file before modification will be made in the same directory with a `.` prepended and `.bak` appended (e.g. `marked.taskpaper` is copied to `.marked.taskpaper.bak`). Only one undo step is available, but if something goes wrong (and this feature is still experimental, so be wary), you can just copy the ".bak" file back to the original.
559
+
560
560
  ###### Marking a task as complete
561
561
 
562
562
  You can mark an action complete using `--finish`, which will add a dated @done tag to the action. You can also mark it @done and immediately move it to the Archive project using `--archive`.
data/bin/commands/next.rb CHANGED
@@ -17,7 +17,7 @@ class App
17
17
 
18
18
  c.desc "Recurse to depth"
19
19
  c.arg_name "DEPTH"
20
- c.flag %i[d depth], type: :integer, must_match: /^[1-9]$/
20
+ c.flag %i[d depth], type: :integer, must_match: /^[1-9][0-9]*$/
21
21
 
22
22
  c.desc "Include hidden directories while traversing"
23
23
  c.switch %i[hidden], negatable: false, default_value: false
@@ -617,6 +617,7 @@ module NA
617
617
  }
618
618
  options = defaults.merge(options)
619
619
  files = find_files(depth: options[:depth], include_hidden: options[:hidden])
620
+ return [] if files.nil? || files.empty?
620
621
 
621
622
  files.delete_if do |file|
622
623
  cmd_options = {
data/lib/na/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Na
4
- VERSION = '1.2.82'
4
+ VERSION = '1.2.83'
5
5
  end
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.81<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.82<!--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
 
@@ -205,12 +205,12 @@ This command will perform actions (tag, untag, complete, archive, add note, etc.
205
205
 
206
206
  You can specify a particular todo file using `--file PATH` or any todo from history using `--in QUERY`.
207
207
 
208
- If more than one file is matched, a menu will be presented, multiple selections allowed. If multiple actions match the search within the selected file(s), a menu will be presented. If you have fzf installed, you can select one action to update with return, or use tab to mark multiple tasks to which the action will be applied. With gum you can use j, k, and x to mark multiple actions. Use the `--all` switch to force operation on all matched tasks, skipping the menu.
209
-
210
- Any time an update action is carried out, a backup of the file before modification will be made in the same directory with a `.` prepended and `.bak` appended (e.g. `marked.taskpaper` is copied to `.marked.taskpaper.bak`). Only one undo step is available, but if something goes wrong (and this feature is still experimental, so be wary), you can just copy the ".bak" file back to the original.
208
+ If more than one file is matched, a menu will be presented, multiple selections allowed. If multiple actions match the search within the selected file(s), a menu will be presented. Use the `--all` switch to force operation on all matched tasks, skipping the menu.
211
209
 
212
210
  > **Note:** When using the `update` command, if you have [fzf](https://github.com/junegunn/fzf) installed, menus for selecting files or actions will support multi-select (tab to mark multiple, return to confirm). If [gum](https://github.com/charmbracelet/gum) is installed, multi-select is also supported (use j/k/x to navigate and mark). If neither is available, a simple prompt is used. This makes it easy to apply updates to multiple actions at once.
213
211
 
212
+ Any time an update action is carried out, a backup of the file before modification will be made in the same directory with a `.` prepended and `.bak` appended (e.g. `marked.taskpaper` is copied to `.marked.taskpaper.bak`). Only one undo step is available, but if something goes wrong (and this feature is still experimental, so be wary), you can just copy the ".bak" file back to the original.
213
+
214
214
  ###### Marking a task as complete
215
215
 
216
216
  You can mark an action complete using `--finish`, which will add a dated @done tag to the action. You can also mark it @done and immediately move it to the Archive project using `--archive`.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: na
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.82
4
+ version: 1.2.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra