hookapp 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +26 -3
  4. data/Rakefile +7 -3
  5. data/bin/hook +49 -2
  6. data/buildnotes.md +30 -0
  7. data/hook.rdoc +21 -2
  8. data/lib/helpers/fuzzyfilefinder +0 -0
  9. data/lib/hook/hookapp.rb +29 -10
  10. data/lib/hook/string.rb +4 -0
  11. data/lib/hook/version.rb +1 -1
  12. data/test/helpers/hook-helpers.rb +76 -0
  13. data/test/hook_clip_test.rb +24 -0
  14. data/test/hook_clone_test.rb +30 -0
  15. data/test/hook_encode_test.rb +30 -0
  16. data/test/hook_link_test.rb +39 -0
  17. data/test/hook_list_test.rb +25 -0
  18. data/test/hook_remove_test.rb +34 -0
  19. data/test/hook_scripts_test.rb +21 -0
  20. metadata +10 -69
  21. data/html/App.html +0 -107
  22. data/html/GLI/Commands/Doc.html +0 -91
  23. data/html/GLI/Commands/MarkdownDocumentListener.html +0 -511
  24. data/html/GLI/Commands.html +0 -91
  25. data/html/GLI.html +0 -91
  26. data/html/Hook.html +0 -100
  27. data/html/HookApp.html +0 -946
  28. data/html/Hooker.html +0 -141
  29. data/html/README_rdoc.html +0 -325
  30. data/html/String.html +0 -313
  31. data/html/created.rid +0 -9
  32. data/html/css/fonts.css +0 -167
  33. data/html/css/rdoc.css +0 -639
  34. data/html/fonts/Lato-Light.ttf +0 -0
  35. data/html/fonts/Lato-LightItalic.ttf +0 -0
  36. data/html/fonts/Lato-Regular.ttf +0 -0
  37. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  38. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  39. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  40. data/html/images/add.png +0 -0
  41. data/html/images/arrow_up.png +0 -0
  42. data/html/images/brick.png +0 -0
  43. data/html/images/brick_link.png +0 -0
  44. data/html/images/bug.png +0 -0
  45. data/html/images/bullet_black.png +0 -0
  46. data/html/images/bullet_toggle_minus.png +0 -0
  47. data/html/images/bullet_toggle_plus.png +0 -0
  48. data/html/images/date.png +0 -0
  49. data/html/images/delete.png +0 -0
  50. data/html/images/find.png +0 -0
  51. data/html/images/loadingAnimation.gif +0 -0
  52. data/html/images/macFFBgHack.png +0 -0
  53. data/html/images/package.png +0 -0
  54. data/html/images/page_green.png +0 -0
  55. data/html/images/page_white_text.png +0 -0
  56. data/html/images/page_white_width.png +0 -0
  57. data/html/images/plugin.png +0 -0
  58. data/html/images/ruby.png +0 -0
  59. data/html/images/tag_blue.png +0 -0
  60. data/html/images/tag_green.png +0 -0
  61. data/html/images/transparent.png +0 -0
  62. data/html/images/wrench.png +0 -0
  63. data/html/images/wrench_orange.png +0 -0
  64. data/html/images/zoom.png +0 -0
  65. data/html/index.html +0 -293
  66. data/html/js/darkfish.js +0 -84
  67. data/html/js/navigation.js +0 -105
  68. data/html/js/navigation.js.gz +0 -0
  69. data/html/js/search.js +0 -110
  70. data/html/js/search_index.js +0 -1
  71. data/html/js/search_index.js.gz +0 -0
  72. data/html/js/searcher.js +0 -229
  73. data/html/js/searcher.js.gz +0 -0
  74. data/html/table_of_contents.html +0 -345
  75. data/test/default_test.rb +0 -14
  76. data/test/hookfiles/01.test +0 -0
  77. data/test/hookfiles/02.test +0 -0
  78. data/test/hookfiles/03.test +0 -0
  79. data/test/hookfiles/04.test +0 -0
  80. data/test/hookfiles/05.test +0 -0
  81. data/test/hookfiles/06.test +0 -0
  82. data/test/hookfiles/07.test +0 -0
  83. data/test/hookfiles/08.test +0 -0
  84. data/test/hookfiles/09.test +0 -0
  85. data/test/hookfiles/10.test +0 -0
  86. data/test/hookfiles/11.test +0 -0
  87. data/test/hookfiles/12.test +0 -0
data/html/Hooker.html DELETED
@@ -1,141 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class Hooker - 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"><a href="HookApp.html">HookApp</a>
65
- </div>
66
-
67
-
68
-
69
-
70
- <!-- Method Quickref -->
71
- <div id="method-list-section" class="nav-section">
72
- <h3>Methods</h3>
73
-
74
- <ul class="link-list" role="directory">
75
- <li class="calls-super" ><a href="#method-c-new">::new</a>
76
- </ul>
77
- </div>
78
-
79
- </div>
80
- </nav>
81
-
82
- <main role="main" aria-labelledby="class-Hooker">
83
- <h1 id="class-Hooker" class="class">
84
- class Hooker
85
- </h1>
86
-
87
- <section class="description">
88
-
89
- <p>Hook.app CLI interface</p>
90
-
91
- </section>
92
-
93
- <section id="5Buntitled-5D" class="documentation-section">
94
-
95
-
96
-
97
-
98
-
99
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
100
- <header>
101
- <h3>Public Class Methods</h3>
102
- </header>
103
-
104
- <div id="method-c-new" class="method-detail ">
105
- <div class="method-heading">
106
- <span class="method-name">new</span><span
107
- class="method-args">()</span>
108
- <span class="method-click-advice">click to toggle source</span>
109
- </div>
110
-
111
- <div class="method-description">
112
-
113
- <div class="method-calls-super">
114
- Calls superclass method
115
-
116
- </div>
117
-
118
- <div class="method-source-code" id="new-source">
119
- <pre><span class="ruby-comment"># File lib/hook/hooker.rb, line 5</span>
120
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
121
- <span class="ruby-keyword">super</span>
122
- <span class="ruby-identifier">warn</span> <span class="ruby-string">&quot;Using Hooker class is deprecated, update to use HookApp instead&quot;</span>
123
- <span class="ruby-keyword">end</span></pre>
124
- </div>
125
- </div>
126
-
127
-
128
- </div>
129
-
130
- </section>
131
-
132
- </section>
133
- </main>
134
-
135
-
136
- <footer id="validator-badges" role="contentinfo">
137
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
138
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
139
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
140
- </footer>
141
-
@@ -1,325 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>README - 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="file">
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
- <div class="nav-section">
58
- <h3>Table of Contents</h3>
59
-
60
- <ul class="link-list" role="directory">
61
- <li><a href="#label-hookapp">hookapp</a>
62
- <li><a href="#label-hook+-+CLI+interface+for+Hook.app+-28macOS-29">hook - CLI interface for Hook.app (macOS)</a>
63
- <li><a href="#label-Global+Options">Global Options</a>
64
- <li><a href="#label--help">–help</a>
65
- <li><a href="#label--version">–version</a>
66
- <li><a href="#label-Commands">Commands</a>
67
- <li><a href="#label-Command-3A+clip-7Ccp++FILE_OR_URL">Command: <code>clip|cp FILE_OR_URL</code></a>
68
- <li><a href="#label-Options">Options</a>
69
- <li><a href="#label-a-7C--app+APP_NAME">-a|–app APP_NAME</a>
70
- <li><a href="#label-m-7C--markdown">-m|–markdown</a>
71
- <li><a href="#label-Command-3A+clone++SOURCE+TARGET">Command: <code>clone SOURCE TARGET</code></a>
72
- <li><a href="#label-Command-3A+find-7Csearch++SEARCH_STRING">Command: <code>find|search SEARCH_STRING</code></a>
73
- <li><a href="#label-Options">Options</a>
74
- <li><a href="#label-o-7C--output_format+format">-o|–output_format format</a>
75
- <li><a href="#label-f-7C--files_only">-f|–files_only</a>
76
- <li><a href="#label-n-7C--names_only">-n|–names_only</a>
77
- <li><a href="#label--null">–null</a>
78
- <li><a href="#label-Command-3A+from++APPLICATION_NAME">Command: <code>from APPLICATION_NAME</code></a>
79
- <li><a href="#label-Options">Options</a>
80
- <li><a href="#label-c-7C--copy">-c|–copy</a>
81
- <li><a href="#label-m-7C--markdown">-m|–markdown</a>
82
- <li><a href="#label-Command-3A+help++command">Command: <code>help command</code></a>
83
- <li><a href="#label-Options">Options</a>
84
- <li><a href="#label-c">-c</a>
85
- <li><a href="#label-Command-3A+link-7Cln++SOURCE+-5BSOURCE...-5D+TARGET">Command: <code>link|ln SOURCE [SOURCE...] TARGET</code></a>
86
- <li><a href="#label-Options">Options</a>
87
- <li><a href="#label-a-7C--all">-a|–all</a>
88
- <li><a href="#label-p-7C--paste">-p|–paste</a>
89
- <li><a href="#label-Command-3A+list-7Cls++FILE_OR_URL+-5BFILE_OR_URL...-5D">Command: <code>list|ls FILE_OR_URL [FILE_OR_URL...]</code></a>
90
- <li><a href="#label-Options">Options</a>
91
- <li><a href="#label-o-7C--output_format+format">-o|–output_format format</a>
92
- <li><a href="#label-f-7C--files_only">-f|–files_only</a>
93
- <li><a href="#label--null">–null</a>
94
- <li><a href="#label-s-7C--select">-<a href="no-">s|–</a>select</a>
95
- <li><a href="#label-Command-3A+open-7Cgui++FILE_OR_URL">Command: <code>open|gui FILE_OR_URL</code></a>
96
- <li><a href="#label-Command-3A+remove-7Crm++ITEM_1+ITEM_2">Command: <code>remove|rm ITEM_1 ITEM_2</code></a>
97
- <li><a href="#label-Options">Options</a>
98
- <li><a href="#label-a-7C--all">-a|–all</a>
99
- <li><a href="#label-Command-3A+scripts++SHELL">Command: <code>scripts SHELL</code></a>
100
- <li><a href="#label-Command-3A+select++FILE_OR_URL">Command: <code>select FILE_OR_URL</code></a>
101
- </ul>
102
- </div>
103
-
104
-
105
- <div id="project-metadata">
106
-
107
- <div id="fileindex-section" class="nav-section">
108
- <h3>Pages</h3>
109
-
110
- <ul class="link-list">
111
- <li><a href="./README_rdoc.html">README</a>
112
- </ul>
113
- </div>
114
-
115
- </div>
116
- </nav>
117
-
118
- <main role="main" aria-label="Page README.rdoc">
119
-
120
- <h1 id="label-hookapp">hookapp<span><a href="#label-hookapp">&para;</a> <a href="#top">&uarr;</a></span></h1>
121
-
122
- <p>A CLI for Hook.app on macOS.</p>
123
-
124
- <h2 id="label-hook+-+CLI+interface+for+Hook.app+-28macOS-29">hook - CLI interface for Hook.app (macOS)<span><a href="#label-hook+-+CLI+interface+for+Hook.app+-28macOS-29">&para;</a> <a href="#top">&uarr;</a></span></h2>
125
-
126
- <p>Hook.app is a productivity tool for macOS &lt;<a href="https://hookproductivity.com">hookproductivity.com</a>/&gt;. This gem includes a `hook` binary that allows interaction with the features of Hook.app.</p>
127
-
128
- <p>v2.0.3</p>
129
-
130
- <h3 id="label-Global+Options">Global Options<span><a href="#label-Global+Options">&para;</a> <a href="#top">&uarr;</a></span></h3>
131
-
132
- <h3 id="label--help">–help<span><a href="#label--help">&para;</a> <a href="#top">&uarr;</a></span></h3>
133
-
134
- <p>Show this message</p>
135
-
136
- <h3 id="label--version">–version<span><a href="#label--version">&para;</a> <a href="#top">&uarr;</a></span></h3>
137
-
138
- <p>Display the program version</p>
139
-
140
- <h3 id="label-Commands">Commands<span><a href="#label-Commands">&para;</a> <a href="#top">&uarr;</a></span></h3>
141
-
142
- <h4 id="label-Command-3A+clip-7Ccp++FILE_OR_URL">Command: <code>clip|cp FILE_OR_URL</code><span><a href="#label-Command-3A+clip-7Ccp++FILE_OR_URL">&para;</a> <a href="#top">&uarr;</a></span></h4>
143
-
144
- <p>Copy <a href="Hook.html"><code>Hook</code></a> URL for file/url to clipboard</p>
145
-
146
- <p>Creates a bookmark for the specified file or URL and copies its <a href="Hook.html"><code>Hook</code></a> URL to the clipboard.</p>
147
-
148
- <p>The copied <a href="Hook.html"><code>Hook</code></a> URL can be used to link to other files (use `hook link –paste FILE/URL), or to paste into another app as a link. Use the -m flag to copy a full Markdown link.</p>
149
-
150
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
151
-
152
- <h5 id="label-a-7C--app+APP_NAME">-a|–app APP_NAME<span><a href="#label-a-7C--app+APP_NAME">&para;</a> <a href="#top">&uarr;</a></span></h5>
153
-
154
- <p>Copy from application</p>
155
- <dl class="rdoc-list label-list"><dt>Default Value
156
- <dd>
157
- <p>None</p>
158
- </dd></dl>
159
-
160
- <h5 id="label-m-7C--markdown">-m|–markdown<span><a href="#label-m-7C--markdown">&para;</a> <a href="#top">&uarr;</a></span></h5>
161
-
162
- <p>Copy as Markdown</p>
163
-
164
- <h4 id="label-Command-3A+clone++SOURCE+TARGET">Command: <code>clone SOURCE TARGET</code><span><a href="#label-Command-3A+clone++SOURCE+TARGET">&para;</a> <a href="#top">&uarr;</a></span></h4>
165
-
166
- <p>Clone all hooks from one file or url onto another</p>
167
-
168
- <p>Copy all the files and urls that the first file is hooked to onto another file. Exactly two arguments (SOURCE, TARGET) required.</p>
169
-
170
- <h4 id="label-Command-3A+find-7Csearch++SEARCH_STRING">Command: <code>find|search SEARCH_STRING</code><span><a href="#label-Command-3A+find-7Csearch++SEARCH_STRING">&para;</a> <a href="#top">&uarr;</a></span></h4>
171
-
172
- <p>Search bookmarks</p>
173
-
174
- <p>Search bookmark urls and names for a string and output in specified format (default “paths”).</p>
175
-
176
- <p>Run `hook find` with no search argument to list all bookmarks.</p>
177
-
178
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
179
-
180
- <h5 id="label-o-7C--output_format+format">-o|–output_format format<span><a href="#label-o-7C--output_format+format">&para;</a> <a href="#top">&uarr;</a></span></h5>
181
-
182
- <p>Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]</p>
183
- <dl class="rdoc-list label-list"><dt>Default Value
184
- <dd>
185
- <p>paths</p>
186
- </dd></dl>
187
-
188
- <h5 id="label-f-7C--files_only">-f|–files_only<span><a href="#label-f-7C--files_only">&para;</a> <a href="#top">&uarr;</a></span></h5>
189
-
190
- <p>Output only bookmarks with file paths (exclude e.g. emails)</p>
191
-
192
- <h5 id="label-n-7C--names_only">-n|–names_only<span><a href="#label-n-7C--names_only">&para;</a> <a href="#top">&uarr;</a></span></h5>
193
-
194
- <p>Search only bookmark names</p>
195
-
196
- <h5 id="label--null">–null<span><a href="#label--null">&para;</a> <a href="#top">&uarr;</a></span></h5>
197
-
198
- <p>Separate results with NULL separator, only applies with “paths” output for single file argument</p>
199
-
200
- <h4 id="label-Command-3A+from++APPLICATION_NAME">Command: <code>from APPLICATION_NAME</code><span><a href="#label-Command-3A+from++APPLICATION_NAME">&para;</a> <a href="#top">&uarr;</a></span></h4>
201
-
202
- <p>Get a <a href="Hook.html"><code>Hook</code></a> URL for the frontmost window of an app</p>
203
-
204
- <p>Specify an application by name (without &#39;.app&#39;) to bring that app to the foreground and create a bookmark for the active document, note, task, etc., returning a <a href="Hook.html"><code>Hook</code></a> URL.</p>
205
-
206
- <p>Use -m to get the response as Markdown, and/or -c to copy the result directly to the clipboard.</p>
207
-
208
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
209
-
210
- <h5 id="label-c-7C--copy">-c|–copy<span><a href="#label-c-7C--copy">&para;</a> <a href="#top">&uarr;</a></span></h5>
211
-
212
- <p>Copy to clipboard</p>
213
-
214
- <h5 id="label-m-7C--markdown">-m|–markdown<span><a href="#label-m-7C--markdown">&para;</a> <a href="#top">&uarr;</a></span></h5>
215
-
216
- <p>Output as Markdown</p>
217
-
218
- <h4 id="label-Command-3A+help++command">Command: <code>help command</code><span><a href="#label-Command-3A+help++command">&para;</a> <a href="#top">&uarr;</a></span></h4>
219
-
220
- <p>Shows a list of commands or help for one command</p>
221
-
222
- <p>Gets help for the application or its commands. Can also list the commands in a way helpful to creating a bash-style completion function</p>
223
-
224
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
225
-
226
- <h5 id="label-c">-c<span><a href="#label-c">&para;</a> <a href="#top">&uarr;</a></span></h5>
227
-
228
- <p>List commands one per line, to assist with shell completion</p>
229
-
230
- <h4 id="label-Command-3A+link-7Cln++SOURCE+-5BSOURCE...-5D+TARGET">Command: <code>link|ln SOURCE [SOURCE...] TARGET</code><span><a href="#label-Command-3A+link-7Cln++SOURCE+-5BSOURCE...-5D+TARGET">&para;</a> <a href="#top">&uarr;</a></span></h4>
231
-
232
- <p>Create bidirectional hooks between two or more files/urls</p>
233
-
234
- <p>If two files/urls are provided, links will be bi-directional. If three or more are provided, `link` defaults to creating bi-directional links between each file and the last file in the list. Use `-a` to create bi-directional links between every file in the list.</p>
235
-
236
- <p>If using `–paste`, the URL/hook link in the clipboard will be used as one argument, to be combined with one or more file/url arguments.</p>
237
-
238
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
239
-
240
- <h5 id="label-a-7C--all">-a|–all<span><a href="#label-a-7C--all">&para;</a> <a href="#top">&uarr;</a></span></h5>
241
-
242
- <p>Link every listed file or url to every other</p>
243
-
244
- <h5 id="label-p-7C--paste">-p|–paste<span><a href="#label-p-7C--paste">&para;</a> <a href="#top">&uarr;</a></span></h5>
245
-
246
- <p>Paste URL from clipboard</p>
247
-
248
- <h4 id="label-Command-3A+list-7Cls++FILE_OR_URL+-5BFILE_OR_URL...-5D">Command: <code>list|ls FILE_OR_URL [FILE_OR_URL...]</code><span><a href="#label-Command-3A+list-7Cls++FILE_OR_URL+-5BFILE_OR_URL...-5D">&para;</a> <a href="#top">&uarr;</a></span></h4>
249
-
250
- <p>List hooks on a file or url</p>
251
-
252
- <p>Output a list of all hooks attached to given url(s) or file(s) in the specified format (default “paths”).</p>
253
-
254
- <p>Run `hook list` with no file/url argument to list all bookmarks.</p>
255
-
256
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
257
-
258
- <h5 id="label-o-7C--output_format+format">-o|–output_format format<span><a href="#label-o-7C--output_format+format">&para;</a> <a href="#top">&uarr;</a></span></h5>
259
-
260
- <p>Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]</p>
261
- <dl class="rdoc-list label-list"><dt>Default Value
262
- <dd>
263
- <p>paths</p>
264
- </dd></dl>
265
-
266
- <h5 id="label-f-7C--files_only">-f|–files_only<span><a href="#label-f-7C--files_only">&para;</a> <a href="#top">&uarr;</a></span></h5>
267
-
268
- <p>Output only bookmarks with file paths (exclude e.g. emails)</p>
269
-
270
- <h5 id="label--null">–null<span><a href="#label--null">&para;</a> <a href="#top">&uarr;</a></span></h5>
271
-
272
- <p>Separate results with NULL separator, only applies with “paths” output for single file argument</p>
273
-
274
- <h5 id="label-s-7C--select">-<a href="no-">s|–</a>select<span><a href="#label-s-7C--select">&para;</a> <a href="#top">&uarr;</a></span></h5>
275
-
276
- <p>Generate a menu to select hook(s) for opening</p>
277
-
278
- <p>This option is a shortcut to `hook select` and overrides any other arguments.</p>
279
-
280
- <h4 id="label-Command-3A+open-7Cgui++FILE_OR_URL">Command: <code>open|gui FILE_OR_URL</code><span><a href="#label-Command-3A+open-7Cgui++FILE_OR_URL">&para;</a> <a href="#top">&uarr;</a></span></h4>
281
-
282
- <p>Open the specified file or url in <a href="Hook.html"><code>Hook</code></a> GUI</p>
283
-
284
- <p>Opens Hook.app on the specified file/URL for browsing and performing actions. Exactly one argument (File/URL) required.</p>
285
-
286
- <h4 id="label-Command-3A+remove-7Crm++ITEM_1+ITEM_2">Command: <code>remove|rm ITEM_1 ITEM_2</code><span><a href="#label-Command-3A+remove-7Crm++ITEM_1+ITEM_2">&para;</a> <a href="#top">&uarr;</a></span></h4>
287
-
288
- <p>Remove a hook between two files/urls</p>
289
-
290
- <p>Remove a hook between two files or URLs. If you use –all, all hooks on a given file will be removed.</p>
291
-
292
- <p>If –all isn&#39;t specified, exactly two arguments (Files/URLs) are required.</p>
293
-
294
- <h5 id="label-Options">Options<span><a href="#label-Options">&para;</a> <a href="#top">&uarr;</a></span></h5>
295
-
296
- <h5 id="label-a-7C--all">-a|–all<span><a href="#label-a-7C--all">&para;</a> <a href="#top">&uarr;</a></span></h5>
297
-
298
- <p>Remove ALL links on files, requires confirmation</p>
299
-
300
- <h4 id="label-Command-3A+scripts++SHELL">Command: <code>scripts SHELL</code><span><a href="#label-Command-3A+scripts++SHELL">&para;</a> <a href="#top">&uarr;</a></span></h4>
301
-
302
- <p>Shell completion examples</p>
303
-
304
- <p>Output completion script example for the specified shell (bash, zsh, fish)</p>
305
-
306
- <h4 id="label-Command-3A+select++FILE_OR_URL">Command: <code>select FILE_OR_URL</code><span><a href="#label-Command-3A+select++FILE_OR_URL">&para;</a> <a href="#top">&uarr;</a></span></h4>
307
-
308
- <p>Select from hooks on a file/url and open in default application</p>
309
-
310
- <p>If the target file/URL has hooked items, a menu will be provided. Selecting one or more files from this menu will open the item(s) using the default application assigned to the filetype by macOS. Allows multiple selections with tab key, and type-ahead fuzzy filtering of results.</p>
311
- <dl class="rdoc-list label-list"><dt>Default Command
312
- <dd>
313
- <p>help</p>
314
- </dd></dl>
315
-
316
- </main>
317
-
318
-
319
-
320
- <footer id="validator-badges" role="contentinfo">
321
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
322
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
323
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
324
- </footer>
325
-