hookapp 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/hook +1 -1
- data/hookapp.gemspec +1 -1
- data/html/App.html +36 -24
- data/html/GLI/Commands/Doc.html +55 -19
- data/html/GLI/Commands/MarkdownDocumentListener.html +309 -151
- data/html/GLI/Commands.html +49 -19
- data/html/GLI.html +33 -19
- data/html/Hook/Prompt.html +50 -20
- data/html/Hook/PromptFZF.html +129 -69
- data/html/Hook/PromptSTD.html +104 -52
- data/html/Hook.html +34 -19
- data/html/HookApp.html +487 -265
- data/html/Hooker.html +60 -42
- data/html/Object.html +36 -23
- data/html/README_rdoc.html +180 -75
- data/html/String.html +185 -103
- data/html/created.rid +10 -10
- data/html/css/rdoc.css +402 -358
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/index.html +193 -45
- data/html/js/darkfish.js +38 -2
- data/html/js/navigation.js +8 -8
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +4 -4
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +52 -8
- data/lib/hook/hookapp.rb +8 -4
- data/lib/hook/version.rb +1 -1
- metadata +3 -3
data/html/table_of_contents.html
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
|
|
3
|
-
<html>
|
|
3
|
+
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
7
|
|
|
7
8
|
<title>Table of Contents - hookapp</title>
|
|
8
9
|
|
|
10
|
+
<meta name="keywords" content="ruby,documentation,Table of Contents - hookapp">
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta name="description" content="Table of Contents - hookapp: hookapp A CLI for Hookmark on macOS. hookproductivity.">
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
<script type="text/javascript">
|
|
10
17
|
var rdoc_rel_prefix = "./";
|
|
11
18
|
var index_rel_prefix = "./";
|
|
@@ -22,6 +29,50 @@
|
|
|
22
29
|
|
|
23
30
|
|
|
24
31
|
<body id="top" class="table-of-contents">
|
|
32
|
+
<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
|
|
33
|
+
<span aria-hidden="true">☰</span>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<nav id="navigation" role="navigation">
|
|
38
|
+
<div id="project-navigation">
|
|
39
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
40
|
+
<h2>
|
|
41
|
+
<a href="./index.html" rel="home">Home</a>
|
|
42
|
+
</h2>
|
|
43
|
+
|
|
44
|
+
<div id="table-of-contents-navigation">
|
|
45
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
46
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
47
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
53
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
54
|
+
<div id="search-field-wrapper">
|
|
55
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
56
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
57
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
|
58
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<ul id="search-results" aria-label="Search Results"
|
|
62
|
+
aria-busy="false" aria-expanded="false"
|
|
63
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
64
|
+
</form>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<footer id="validator-badges" role="contentinfo">
|
|
70
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
71
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.14.0.
|
|
72
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
73
|
+
</footer>
|
|
74
|
+
|
|
75
|
+
</nav>
|
|
25
76
|
<main role="main">
|
|
26
77
|
<h1 class="class">Table of Contents - hookapp</h1>
|
|
27
78
|
|
|
@@ -419,10 +470,3 @@
|
|
|
419
470
|
</ul>
|
|
420
471
|
</main>
|
|
421
472
|
|
|
422
|
-
|
|
423
|
-
<footer id="validator-badges" role="contentinfo">
|
|
424
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
425
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
|
426
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
427
|
-
</footer>
|
|
428
|
-
|
data/lib/hook/hookapp.rb
CHANGED
|
@@ -56,8 +56,12 @@ class HookApp
|
|
|
56
56
|
|
|
57
57
|
# Get bookmarks hooked to file or URL. Return array of bookmark hashes.
|
|
58
58
|
def get_hooks(url)
|
|
59
|
-
url.
|
|
60
|
-
|
|
59
|
+
if url.is_a?(String)
|
|
60
|
+
url = url.valid_hook
|
|
61
|
+
raise "Invalid target: #{url}" unless url
|
|
62
|
+
else
|
|
63
|
+
return []
|
|
64
|
+
end
|
|
61
65
|
|
|
62
66
|
hooks = `osascript <<'APPLESCRIPT'
|
|
63
67
|
tell application "#{HOOK_APP}"
|
|
@@ -270,14 +274,14 @@ class HookApp
|
|
|
270
274
|
Dir.glob(glob.nil? || glob.empty? ? glob_all : glob)
|
|
271
275
|
end
|
|
272
276
|
|
|
273
|
-
|
|
277
|
+
args = ['--layout=reverse-list',
|
|
274
278
|
'--header="esc: cancel, return: browse"',
|
|
275
279
|
'--prompt=" Select file > "',
|
|
276
280
|
%(--preview='hook ls -o m {}'),
|
|
277
281
|
'--height=60%',
|
|
278
282
|
'--min-height=10']
|
|
279
283
|
|
|
280
|
-
sel = `echo #{Shellwords.escape(root.join("\n"))} | '#{fzf}' #{args.join(' ')}`.chomp.split("\n")
|
|
284
|
+
sel = `echo #{Shellwords.escape(root[0..300].join("\n"))} | '#{fzf}' #{args.join(' ')}`.chomp.split("\n")
|
|
281
285
|
|
|
282
286
|
if sel.count == 1
|
|
283
287
|
marks = get_hooks(sel[0])
|
data/lib/hook/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hookapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Terpstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aruba
|
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
215
|
version: '0'
|
|
216
216
|
requirements: []
|
|
217
|
-
rubygems_version: 3.
|
|
217
|
+
rubygems_version: 3.5.22
|
|
218
218
|
signing_key:
|
|
219
219
|
specification_version: 4
|
|
220
220
|
summary: A CLI for Hook.app (macOS)
|