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 +4 -4
- data/.github/FUNDING.yml +2 -0
- data/.howzit.taskpaper.bak +27 -0
- data/CHANGELOG.md +16 -0
- data/lib/howzit/config.rb +1 -1
- data/lib/howzit/stringutils.rb +5 -1
- data/lib/howzit/util.rb +1 -0
- data/lib/howzit/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e053730ff4a0386a25682221bcf58a36a81e15b220659afb72cb1a5084172664
|
4
|
+
data.tar.gz: baea37c956d1c64506499a764a502c879eb5ee70830e2ced4cb04f596b8231a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e286ded9e392237f321e7c3361945ee2e8f586c091ed9ab78fc68757d49710416dbe76d03edd43b464df857527b7e8412649a85c9543a3b490ff03994a8acd
|
7
|
+
data.tar.gz: 5df805459407073f865e5223bef535d1f488f2207f7cdb243cb5357da2a5ee8f19c05f5f4f1dec630b24122ce0892ef0783d46aaa161f9c36f5170823f18316b
|
data/.github/FUNDING.yml
ADDED
@@ -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
data/lib/howzit/config.rb
CHANGED
data/lib/howzit/stringutils.rb
CHANGED
@@ -223,7 +223,11 @@ module Howzit
|
|
223
223
|
gsub!(/\[%#{k}(:.*?)?\]/, v)
|
224
224
|
end
|
225
225
|
|
226
|
-
|
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
|
data/lib/howzit/version.rb
CHANGED
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
|
+
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-
|
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"
|