hookapp 2.0.7 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS.md +4 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +35 -40
- data/LICENSE +21 -0
- data/README.md +32 -22
- data/bin/hook +57 -67
- data/hook.rdoc +16 -11
- data/hookapp.gemspec +1 -0
- data/html/App.html +107 -0
- data/html/GLI/Commands/Doc.html +91 -0
- data/html/GLI/Commands/MarkdownDocumentListener.html +521 -0
- data/html/GLI/Commands.html +91 -0
- data/html/GLI.html +91 -0
- data/html/Hook/Prompt.html +100 -0
- data/html/Hook/PromptFZF.html +243 -0
- data/html/Hook/PromptSTD.html +177 -0
- data/html/Hook.html +100 -0
- data/html/HookApp.html +1008 -0
- data/html/Hooker.html +141 -0
- data/html/README_rdoc.html +354 -0
- data/html/String.html +335 -0
- data/html/created.rid +10 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +639 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +320 -0
- data/html/js/darkfish.js +84 -0
- data/html/js/navigation.js +105 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +409 -0
- data/lib/hook/hookapp.rb +11 -12
- data/lib/hook/hooker.rb +1 -0
- data/lib/hook/markdown_document_listener.rb +12 -2
- data/lib/hook/prompt.rb +113 -0
- data/lib/hook/version.rb +1 -1
- data/lib/hook.rb +2 -0
- data/test/hook_clip_test.rb +1 -1
- data/test/hook_link_test.rb +2 -1
- data/test/hook_scripts_test.rb +1 -1
- metadata +82 -3
- data/lib/helpers/fuzzyfilefinder +0 -0
data/hook.rdoc
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
== hook - CLI interface for Hook.app (macOS)
|
2
2
|
|
3
3
|
Hook.app is a productivity tool for macOS <https://hookproductivity.com/>.
|
4
|
-
This gem includes a `hook` binary that allows interaction with the features of Hook.app.
|
5
4
|
|
6
|
-
|
5
|
+
This gem includes a `hook` binary that allows interaction with the features of Hook.app.
|
6
|
+
|
7
|
+
v2.0.10
|
7
8
|
|
8
9
|
=== Global Options
|
9
10
|
=== --help
|
@@ -22,7 +23,7 @@ Copy Hook URL for file/url to clipboard
|
|
22
23
|
|
23
24
|
Creates a bookmark for the specified file or URL and copies its Hook URL to the clipboard.
|
24
25
|
|
25
|
-
The copied Hook URL can be used to link to other files (use `hook link --paste FILE/URL
|
26
|
+
The copied Hook URL can be used to link to other files (use `hook link --paste FILE/URL`,
|
26
27
|
or to paste into another app as a link. Use the -m flag to copy a full Markdown link.
|
27
28
|
===== Options
|
28
29
|
===== -a|--app APP_NAME
|
@@ -40,15 +41,17 @@ Copy as Markdown
|
|
40
41
|
==== Command: <tt>clone SOURCE TARGET</tt>
|
41
42
|
Clone all hooks from one file or url onto another
|
42
43
|
|
43
|
-
Copy all the files and urls that the first file is hooked to onto another file.
|
44
|
-
|
44
|
+
Copy all the files and urls that the first file is hooked to onto another file.
|
45
|
+
|
46
|
+
Exactly two arguments (SOURCE, TARGET) required.
|
47
|
+
==== Command: <tt>find|search [SEARCH_STRING]</tt>
|
45
48
|
Search bookmarks
|
46
49
|
|
47
50
|
Search bookmark urls and names for a string and output in specified format (default "paths").
|
48
51
|
|
49
52
|
Run `hook find` with no search argument to list all bookmarks.
|
50
53
|
===== Options
|
51
|
-
===== -o|--output_format
|
54
|
+
===== -o|--output_format FORMAT
|
52
55
|
|
53
56
|
Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]
|
54
57
|
|
@@ -98,7 +101,7 @@ List commands one per line, to assist with shell completion
|
|
98
101
|
|
99
102
|
|
100
103
|
|
101
|
-
==== Command: <tt>link|ln SOURCE
|
104
|
+
==== Command: <tt>link|ln SOURCE... TARGET</tt>
|
102
105
|
Create bidirectional hooks between two or more files/urls
|
103
106
|
|
104
107
|
If two files/urls are provided, links will be bi-directional.
|
@@ -119,14 +122,14 @@ Paste URL from clipboard
|
|
119
122
|
|
120
123
|
|
121
124
|
|
122
|
-
==== Command: <tt>list|ls
|
125
|
+
==== Command: <tt>list|ls [FILE_OR_URL]...</tt>
|
123
126
|
List hooks on a file or url
|
124
127
|
|
125
128
|
Output a list of all hooks attached to given url(s) or file(s) in the specified format (default "paths").
|
126
129
|
|
127
130
|
Run `hook list` with no file/url argument to list all bookmarks.
|
128
131
|
===== Options
|
129
|
-
===== -o|--output_format
|
132
|
+
===== -o|--output_format FORMAT
|
130
133
|
|
131
134
|
Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]
|
132
135
|
|
@@ -151,7 +154,9 @@ This option is a shortcut to `hook select` and overrides any other arguments.
|
|
151
154
|
==== Command: <tt>open|gui FILE_OR_URL</tt>
|
152
155
|
Open the specified file or url in Hook GUI
|
153
156
|
|
154
|
-
Opens Hook.app on the specified file/URL for browsing and performing actions.
|
157
|
+
Opens Hook.app on the specified file/URL for browsing and performing actions.
|
158
|
+
|
159
|
+
Exactly one argument (File/URL) required.
|
155
160
|
==== Command: <tt>percent STRING</tt>
|
156
161
|
Percent encode/decode a string
|
157
162
|
|
@@ -165,7 +170,7 @@ decode a percent-encoded string
|
|
165
170
|
percent encode a string
|
166
171
|
|
167
172
|
|
168
|
-
==== Command: <tt>remove|rm
|
173
|
+
==== Command: <tt>remove|rm FILE_OR_URL...</tt>
|
169
174
|
Remove a hook between two files/urls
|
170
175
|
|
171
176
|
Remove a hook between two files or URLs. If you use --all, all hooks on a given file will be removed.
|
data/hookapp.gemspec
CHANGED
data/html/App.html
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class App - hookapp</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="extends-section" class="nav-section">
|
70
|
+
<h3>Extended With Modules</h3>
|
71
|
+
|
72
|
+
<ul class="link-list">
|
73
|
+
<li><span class="extend">GLI::App</span>
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
</div>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
<main role="main" aria-labelledby="class-App">
|
82
|
+
<h1 id="class-App" class="class">
|
83
|
+
class App
|
84
|
+
</h1>
|
85
|
+
|
86
|
+
<section class="description">
|
87
|
+
|
88
|
+
<p>Main class for <a href="GLI.html"><code>GLI</code></a> app</p>
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
</section>
|
99
|
+
</main>
|
100
|
+
|
101
|
+
|
102
|
+
<footer id="validator-badges" role="contentinfo">
|
103
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
104
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
105
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
106
|
+
</footer>
|
107
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module GLI::Commands::Doc - hookapp</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../../";
|
11
|
+
var index_rel_prefix = "../../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../../js/navigation.js" defer></script>
|
15
|
+
<script src="../../js/search.js" defer></script>
|
16
|
+
<script src="../../js/search_index.js" defer></script>
|
17
|
+
<script src="../../js/searcher.js" defer></script>
|
18
|
+
<script src="../../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="module">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
</div>
|
65
|
+
</nav>
|
66
|
+
|
67
|
+
<main role="main" aria-labelledby="module-GLI::Commands::Doc">
|
68
|
+
<h1 id="module-GLI::Commands::Doc" class="module">
|
69
|
+
module GLI::Commands::Doc
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<section class="description">
|
73
|
+
|
74
|
+
</section>
|
75
|
+
|
76
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
</section>
|
83
|
+
</main>
|
84
|
+
|
85
|
+
|
86
|
+
<footer id="validator-badges" role="contentinfo">
|
87
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
88
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
89
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
90
|
+
</footer>
|
91
|
+
|