na 1.1.3 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 182588b3837e44b8361cc7c77b1bb52e95323deb7be15062af5487bcca016c3d
4
- data.tar.gz: c46e5ed7493ac655419e41154036913493fb21a5d73de68acd7d10923ea464f0
3
+ metadata.gz: e3bf171b4029a85c4a1277e989eef561e81306c925e1f816b75158885020df8d
4
+ data.tar.gz: e006d499ca796b2d40ee5079fd67c48a36c492882cecb252786805eaeddc3f3e
5
5
  SHA512:
6
- metadata.gz: 91a8e4a51b093c696c691f240f2aa80d7775cd187c74954273bd477c9efbff8180dc14b895e98d1b825c26e2a87ef5393998dce741fc377cfe7a7cae4550d750
7
- data.tar.gz: 82ff75620de7508e307f64f6d62286590ff8d68c657870ae4d11f91cd44fc8c6a09dcde14316768862b4dac5c889febbc87cdf46eb7b509457e8e7faaacc163c
6
+ metadata.gz: ad1811c1c5c6a9e9198d43ecb2b2fd8b3b14e6290a0b31e48822b4123bf156b5774d97334dba4ecb6f239e645356d087a98e238c64392cc50f47645dd4d2f05b
7
+ data.tar.gz: 235473855acaefc65b28eb88cfb21646a98573ad2e2d37fe2c33e5415671ea9b2f8d03e070913a534e21a31632794c3a44ca604da9acbe9e75b8f3c720cd1393
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.1.5
2
+
3
+ 2022-10-01 11:32
4
+
5
+ #### FIXED
6
+
7
+ - Parsing of project hierarchy for an action
8
+
9
+ ### 1.1.4
10
+
11
+ 2022-09-29 04:17
12
+
13
+ #### FIXED
14
+
15
+ - Doing reference in help screen for next
16
+
1
17
  ### 1.1.3
2
18
 
3
19
  2022-09-28 07:12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.1.3)
4
+ na (1.1.6)
5
5
  gli (~> 2.21.0)
6
6
  tty-reader (~> 0.9, >= 0.9.0)
7
7
  tty-screen (~> 0.8, >= 0.8.1)
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.3
12
+ The current version of `na` is 1.1.5
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.
data/bin/na CHANGED
@@ -53,9 +53,9 @@ class App
53
53
  desc 'Show next actions'
54
54
  arg_name 'OPTIONAL_QUERY'
55
55
  command %i[next show] do |c|
56
- c.example 'doing next', desc: 'display the next actions from any todo files in the current directory'
57
- c.example 'doing next -d 3', desc: 'display the next actions from the current directory, traversing 3 levels deep'
58
- c.example 'doing next marked', desc: 'display next actions for a project you visited in the past'
56
+ c.example 'na next', desc: 'display the next actions from any todo files in the current directory'
57
+ c.example 'na next -d 3', desc: 'display the next actions from the current directory, traversing 3 levels deep'
58
+ c.example 'na next marked', desc: 'display next actions for a project you visited in the past'
59
59
  c.desc 'Recurse to depth'
60
60
  c.arg_name 'DEPTH'
61
61
  c.flag %i[d depth], type: :integer, must_match: /^\d+$/
@@ -349,7 +349,7 @@ class App
349
349
  end
350
350
 
351
351
  if options[:editor]
352
- system %(#{options[:editor]} "#{file}")
352
+ system options[:editor], file
353
353
  else
354
354
  NA.edit_file(file: file, app: options[:app])
355
355
  end
@@ -148,12 +148,13 @@ module NA
148
148
  if indent.zero?
149
149
  parent = [proj]
150
150
  elsif indent <= indent_level
151
- parent.slice!(indent_level, parent.count - indent_level)
151
+ parent.slice!(indent, parent.count - indent)
152
152
  parent.push(proj)
153
153
  elsif indent > indent_level
154
154
  parent.push(proj)
155
- indent_level = indent
156
155
  end
156
+
157
+ indent_level = indent
157
158
  elsif line =~ /^[ \t]*- / && line !~ / @done/
158
159
  next unless line =~ /@#{NA.na_tag}\b/
159
160
 
data/lib/na/string.rb CHANGED
@@ -5,7 +5,9 @@ class ::String
5
5
  prefix = match(/(^[ \t]+)/)
6
6
  return 0 if prefix.nil?
7
7
 
8
- prefix[1].gsub(/ /, "\t").scan(/\t/).count
8
+ tabs = prefix[1].gsub(/ /, "\t").scan(/\t/).count
9
+
10
+ tabs
9
11
  end
10
12
 
11
13
  ##
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.5'
3
3
  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.1.2<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.1.4<!--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.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake