howzit 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +166 -7
- data/README.md +6 -0
- data/lib/howzit/stringutils.rb +4 -4
- data/lib/howzit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b746b36bbf197ee183372cf3fbfd111a0314912820b814b587ed1a186821ce6
|
4
|
+
data.tar.gz: e93e32a4ddb60e786c5b8e4428589571309089498df718f4f6f1c931e1d863c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aad98d851e6a6e712743da60a0cceaaee32ef23aecf029ec460fc15b6c3ff65ca3e95a25c93be9c2694decbd692101801fa98f32e7d0814818ab8584912efbaa
|
7
|
+
data.tar.gz: 4e92229bc8f27ce3aabe11c267fd2c8cde31c189028f1970ccb6e2690f1f2a8f87004df56e2510e31646641493aa1334769fd78cd3ac843ba348729b2e08edce
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,169 @@
|
|
1
|
-
|
1
|
+
### 1.2.8
|
2
2
|
|
3
|
-
|
4
|
-
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
|
-
This change log follows the conventions of
|
6
|
-
[keep a CHANGELOG](http://keepachangelog.com/).
|
3
|
+
2022-08-01 07:01
|
7
4
|
|
8
|
-
|
5
|
+
#### FIXED
|
9
6
|
|
10
|
-
|
7
|
+
- Frozen string error
|
8
|
+
|
9
|
+
### 1.2.6
|
10
|
+
|
11
|
+
2022-08-01 06:09
|
12
|
+
|
13
|
+
#### NEW
|
14
|
+
|
15
|
+
- Use @before...@end and @after...@end to specify prerequisites and a post-run message. Topics with @before will require y/n verification before running
|
16
|
+
|
17
|
+
#### FIXED
|
18
|
+
|
19
|
+
- ITerm markers weren't being inserted when paging was off
|
20
|
+
|
21
|
+
### 1.2.3
|
22
|
+
|
23
|
+
2022-07-31 14:20
|
24
|
+
|
25
|
+
#### IMPROVED
|
26
|
+
|
27
|
+
- Don't include a topic multiple times in one display
|
28
|
+
- Don't execute nested topics more than once
|
29
|
+
- Indicate nested includes in headers
|
30
|
+
- Code cleanup
|
31
|
+
|
32
|
+
### 1.2.2
|
33
|
+
|
34
|
+
2022-07-31 08:56
|
35
|
+
|
36
|
+
- Add -F option to pager setup (quit if less than one screen)
|
37
|
+
|
38
|
+
### 1.2.1
|
39
|
+
|
40
|
+
2022-07-31 05:12
|
41
|
+
|
42
|
+
- Add handling for delta pager to not clear screen on exit
|
43
|
+
|
44
|
+
### 1.2.0
|
45
|
+
|
46
|
+
2022-07-31 04:59
|
47
|
+
|
48
|
+
- Add grep feature, searches topic/content for pattern and displays matches (selection menu if multiple matches)
|
49
|
+
|
50
|
+
### 1.1.27
|
51
|
+
|
52
|
+
2022-01-17 11:45
|
53
|
+
|
54
|
+
#### NEW
|
55
|
+
|
56
|
+
- Use fzf for menus if available
|
57
|
+
- "@run() TITLE" will show TITLE instead of command when listing runnable topics
|
58
|
+
- @include(FILENAME) will import an external file if the path exists
|
59
|
+
|
60
|
+
### 1.1.26
|
61
|
+
|
62
|
+
- Fix for error in interactive build notes creation
|
63
|
+
|
64
|
+
### 1.1.25
|
65
|
+
|
66
|
+
- Hide run block contents by default
|
67
|
+
- :show_all_code: config setting to include run block contents
|
68
|
+
- --show-code flag to display run block contents at runtime
|
69
|
+
- Modify include display
|
70
|
+
|
71
|
+
### 1.1.24
|
72
|
+
|
73
|
+
- Use ~/.config/howzit/ignore.yaml to ignore patterns when scanning for build notes
|
74
|
+
- Use `required` and `optional` keys in templates to request that metadata be defined when importing
|
75
|
+
- Allow templates to include other templates
|
76
|
+
|
77
|
+
### 1.1.23
|
78
|
+
|
79
|
+
- Add flags to allow content to stay onscreen after exiting pager (less and bat)
|
80
|
+
|
81
|
+
### 1.1.21
|
82
|
+
|
83
|
+
- Merge directive and block handling so execution order is sequential
|
84
|
+
|
85
|
+
### 1.1.20
|
86
|
+
|
87
|
+
- Template functionality for including common tasks/topics
|
88
|
+
|
89
|
+
### 1.1.19
|
90
|
+
|
91
|
+
- Add `--upstream` option to traverse up parent directories for additional build notes
|
92
|
+
|
93
|
+
### 1.1.15
|
94
|
+
|
95
|
+
- Code refactoring/cleanup
|
96
|
+
- Rename "sections" to "topics"
|
97
|
+
- If no match found for topic search, only show error (`:show_all_on_error: false` option)
|
98
|
+
|
99
|
+
### 1.1.14
|
100
|
+
|
101
|
+
- Fix removal of non-alphanumeric characters from titles
|
102
|
+
- -s/--select option to display a menu of all available topics
|
103
|
+
- Allow arguments to be passed after `--` for variable substitution
|
104
|
+
- Allow --matching TYPE to match first non-ambigous keyword match
|
105
|
+
|
106
|
+
### 1.1.13
|
107
|
+
|
108
|
+
- --matching [fuzzy,beginswith,partial,exact] flag
|
109
|
+
- --edit-config flag
|
110
|
+
- sort flags in help
|
111
|
+
|
112
|
+
### 1.1.12
|
113
|
+
|
114
|
+
- After consideration, remove full fuzzy matching. Too many positives for shorter strings.
|
115
|
+
|
116
|
+
### 1.1.11
|
117
|
+
|
118
|
+
- Add full fuzzy matching for topic titles
|
119
|
+
- Add `@include(TOPIC)` command to import another topic's tasks
|
120
|
+
|
121
|
+
### 1.1.10
|
122
|
+
|
123
|
+
- Add config file for default options
|
124
|
+
|
125
|
+
### 1.1.9
|
126
|
+
|
127
|
+
- Use `system` instead of `exec` to allow multiple @run commands
|
128
|
+
- Add code block runner
|
129
|
+
|
130
|
+
### 1.1.8
|
131
|
+
|
132
|
+
- Add `-e/--edit` flag to open build notes in $EDITOR
|
133
|
+
|
134
|
+
### 1.1.7
|
135
|
+
|
136
|
+
- Use `exec` for @run commands to allow interactive processes (e.g. vim)
|
137
|
+
|
138
|
+
### 1.1.6
|
139
|
+
|
140
|
+
- Add option for outputting title with notes
|
141
|
+
- Add option for outputting note title only
|
142
|
+
|
143
|
+
### 1.1.4
|
144
|
+
|
145
|
+
- Fix for "topic not found" when run with no arguments
|
146
|
+
|
147
|
+
### 1.1.1
|
148
|
+
|
149
|
+
- Reorganize and rename long output options
|
150
|
+
- Fix wrapping long lines without spaces
|
151
|
+
|
152
|
+
### 1.1.0
|
153
|
+
|
154
|
+
- Add -R switch for listing "runnable" topics
|
155
|
+
- Add -T switch for completion-compatible listing of "runnable" topics
|
156
|
+
- Add -L switch for completion-compatible listing of all topics
|
157
|
+
|
158
|
+
### 1.0.1
|
159
|
+
|
160
|
+
- Allow topic matching within title, not just at start
|
161
|
+
- Remove formatting of topic text for better compatibility with mdless/mdcat
|
162
|
+
- Add @run() syntax to allow executable commands
|
163
|
+
- Add @copy() syntax to copy text to clipboard
|
164
|
+
- Add @url/@open() syntax to open urls/files, OS agnostic (hopefully)
|
165
|
+
- Add support for mdless/mdcat
|
166
|
+
- Add support for pager
|
167
|
+
- Offer to create skeleton buildnotes if none found
|
168
|
+
- Set iTerm 2 marks for navigation when paging is disabled
|
169
|
+
- Wrap output with option to specify width (default 80, 0 to disable)
|
data/README.md
CHANGED
@@ -87,6 +87,12 @@ You can include commands that can be executed by howzit. Commands start at the b
|
|
87
87
|
- `@include(TOPIC)`
|
88
88
|
|
89
89
|
Includes all tasks from another topic, matching the name (partial match allowed) and returning first match.
|
90
|
+
- `@before...@end`
|
91
|
+
|
92
|
+
A block defined between @before and @end markers will be considered prerequisite for any task the topic can run. If one or more of these blocks exist in the topic, they will be displayed before running and a yes/no dialog will request confirmation that the prerequisites have been met. The content between these markers is still included when viewing the topic, but the tags themselves do not show up in output.
|
93
|
+
- `@after...@end`
|
94
|
+
|
95
|
+
A block defined between @after and @end markers will be displayed after a topic is run. Use it to remind yourself of additional tasks after automated ones have been executed. The content between these markers is still included when viewing the topic, but the tags themselves do not show up in output.
|
90
96
|
|
91
97
|
### Run blocks (embedded scripts)
|
92
98
|
|
data/lib/howzit/stringutils.rb
CHANGED
@@ -49,11 +49,11 @@ module Howzit
|
|
49
49
|
# Truncate string to nearest word
|
50
50
|
# @param len <number> max length of string
|
51
51
|
def trunc(len)
|
52
|
-
split(/ /).each_with_object(
|
53
|
-
break ob unless ob.length + ' '.length + x.length <= len
|
52
|
+
split(/ /).each_with_object([]) do |x, ob|
|
53
|
+
break ob unless ob.join(' ').length + ' '.length + x.length <= len
|
54
54
|
|
55
|
-
ob
|
56
|
-
end.strip
|
55
|
+
ob.push(x)
|
56
|
+
end.join(' ').strip
|
57
57
|
end
|
58
58
|
|
59
59
|
def trunc!(len)
|
data/lib/howzit/version.rb
CHANGED