howzit 2.1.4 → 2.1.6

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: c6636feaeffc5a9b8ece43a5ac13d50959412ae83b45aa22f2c8f45aa3243b51
4
- data.tar.gz: 537931680e6c7edcb1149339b09877df06d283daa0d0513486cfd1452de4f0b3
3
+ metadata.gz: e053730ff4a0386a25682221bcf58a36a81e15b220659afb72cb1a5084172664
4
+ data.tar.gz: baea37c956d1c64506499a764a502c879eb5ee70830e2ced4cb04f596b8231a1
5
5
  SHA512:
6
- metadata.gz: 93b5c6136f0c612aa914151e0e0df4caa2c4a01259325b4b725aad289eda22d11b09f70d4801d40bb9587733ee8ff62c9117a9b14d53344ee449c6a1c394e612
7
- data.tar.gz: 1ccc318642663bde10dd806752f796d39344cebea009b930d7dbe2ead69a537fbd5077f66f1e0876d41706fba9a982c4bb6328ddfcea17d2d4f09ae42d4c69bc
6
+ metadata.gz: 78e286ded9e392237f321e7c3361945ee2e8f586c091ed9ab78fc68757d49710416dbe76d03edd43b464df857527b7e8412649a85c9543a3b490ff03994a8acd
7
+ data.tar.gz: 5df805459407073f865e5223bef535d1f488f2207f7cdb243cb5357da2a5ee8f19c05f5f4f1dec630b24122ce0892ef0783d46aaa161f9c36f5170823f18316b
@@ -0,0 +1,2 @@
1
+ github: [ttscoff]
2
+ custom: ['https://brettterpstra.com/support/', 'https://brettterpstra.com/donate/']
@@ -0,0 +1,27 @@
1
+ Inbox:
2
+ - Topic summaries @na
3
+ Maybe in square brackets on line after topic title, or as a blockquote. When doing a list of available topics, include its summary in the output. Ignore or specially style summary when viewing full topic.
4
+ - Named positional arguments for topics @na
5
+ Parenthesis after title like a function (arg1, arg2). Variables can have default values (arg1 = testing) and are available as [%var1] replacements in scripts
6
+ howzit:
7
+ New Features:
8
+ Ideas:
9
+ - Nested topics @maybe @na
10
+ Allow increased header levels to nest topics within a parent
11
+ Running/viewing a parent includes all nested subtopics
12
+ All topics still available via search
13
+ When reading file, set a base level from first header, then test each additional topic title to see whether it's greater than the current level. If so, change current level and begin collecting subtopics at the same level
14
+ Howzit::Topic has a subtopic attribute, consisting of an array of Topics. Each of these Topics also has a subtopics attr. These are collected and assigned during initila reading of note file
15
+ When read in, a topic is added to the top level build notes topic, as well as appended to its parent's subtopics if it's a higher level than the base
16
+ just need methods to determine base level (first # match) and check the current headers level when discovering a topic (count #)
17
+
18
+ no, wait. topics should read in their own children. Determine base header level, split topics at that level, then recurse each topic the same way
19
+ include statements will need to be adjusted to allow includes as children. Multiple at symbols could indicate the level to nest at, two symbols would indicate that the include belonged to the last parent. When importing, adjust base header levels appropriately (increase 1).
20
+ Bugs:
21
+ Archive:
22
+ - Add a preview when selecting topic with fzf @priority(3) @na @done(2022-08-06) @project(Inbox)
23
+ Search Definitions:
24
+ Top Priority @search(@priority = 5 and not @done)
25
+ High Priority @search(@priority > 3 and not @done)
26
+ Maybe @search(@maybe)
27
+ Next @search(@na and not @done and not project = "Archive")
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 2.1.6
2
+
3
+ 2023-05-29 12:42
4
+
5
+ #### FIXED
6
+
7
+ - Remove empty undefined variables with no default
8
+
9
+ ### 2.1.5
10
+
11
+ 2023-04-12 15:13
12
+
13
+ #### FIXED
14
+
15
+ - Allow tilde in path to editor
16
+
1
17
  ### 2.1.4
2
18
 
3
19
  2023-03-07 12:52
data/lib/howzit/config.rb CHANGED
@@ -212,7 +212,7 @@ module Howzit
212
212
  end
213
213
 
214
214
  ##
215
- ## Create a new config file (and directory if needed)
215
+ ## Create a new theme file (and directory if needed)
216
216
  ##
217
217
  ## @param default [Hash] default configuration to write
218
218
  ##
@@ -223,7 +223,11 @@ module Howzit
223
223
  gsub!(/\[%#{k}(:.*?)?\]/, v)
224
224
  end
225
225
 
226
- gsub(/\[%(.*?):(.*?)\]/, '\2')
226
+ # Replace empty variables with default
227
+ gsub!(/\[%(.*?):(.*?)\]/, '\2')
228
+
229
+ # Remove remaining empty variables
230
+ gsub(/\[%(.*?)\]/, '')
227
231
  end
228
232
 
229
233
  ##
data/lib/howzit/util.rb CHANGED
@@ -39,6 +39,7 @@ module Howzit
39
39
  ##
40
40
  def command_exist?(command)
41
41
  exts = ENV.fetch('PATHEXT', '').split(::File::PATH_SEPARATOR)
42
+ command = File.expand_path(command) if command =~ /^~/
42
43
  if Pathname.new(command).absolute?
43
44
  ::File.exist?(command) || exts.any? { |ext| ::File.exist?("#{command}#{ext}") }
44
45
  else
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.1.4'
6
+ VERSION = '2.1.6'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.6
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-03-07 00:00:00.000000000 Z
11
+ date: 2023-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -291,7 +291,9 @@ extensions: []
291
291
  extra_rdoc_files: []
292
292
  files:
293
293
  - ".editorconfig"
294
+ - ".github/FUNDING.yml"
294
295
  - ".gitignore"
296
+ - ".howzit.taskpaper.bak"
295
297
  - ".rspec"
296
298
  - ".rubocop.yml"
297
299
  - ".travis.yml"