ribhu 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/bin/ribhu +23 -2
- data/ribhu.gemspec +1 -1
- metadata +11 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 90fef7e1e6a987d70bf16de5b1516d72dcf0e24c
|
4
|
+
data.tar.gz: 836bde7ce892be310244674bff64768e051f4097
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c14f1718c4bac0925bbc67a3c3dbf36f86dac5e15cd8b2fe4b05fa79491129a65a19d2383b5606aed0bb151e4c1637d5de1d794be7cd744daee1ed1010ef150
|
7
|
+
data.tar.gz: 90dfb7b9718da40ccf4d47e5c3ed69e7ea83cf75c863254ecbc3a49dca59f6846887cbe53ed0b4c614e17a55fcd55e51b7de45f837dc3d4736c8846e4cfee6a3
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ fetch its details.
|
|
10
10
|
You may mark classes with an upper case alphabet (vim style by pressing 'm' in the left list) and access them directly using single-quote.
|
11
11
|
Several classes have been bookmarked such as Array, String, Hash, File. You may place more in a file named "~/.ribhu.conf" in the form:
|
12
12
|
|
13
|
-
$
|
13
|
+
$bookmarks[:Z] = "Zlib"
|
14
14
|
|
15
15
|
A list of visited classes is also maintained and can be accessed and selected from. You may prepopulate it
|
16
16
|
from the conf file as:
|
data/bin/ribhu
CHANGED
@@ -223,11 +223,13 @@ def try_ri arr
|
|
223
223
|
end
|
224
224
|
def popup_history
|
225
225
|
return if $visited.size == 0
|
226
|
-
ix = popuplist($visited, :title => " History ", :bgcolor => :
|
226
|
+
ix = popuplist($visited, :title => " History ", :bgcolor => :black, :color => :white, :row => 1, :col => 1)
|
227
227
|
if ix
|
228
228
|
display_text $visited[ix]
|
229
229
|
end
|
230
230
|
end
|
231
|
+
#
|
232
|
+
# History is accessible using Alt-h while in field, press enter on any row in the popup
|
231
233
|
def get_string_with_history prompt
|
232
234
|
$shell_history ||= []
|
233
235
|
cmd = get_string(prompt, :maxlen => 50) do |f|
|
@@ -240,6 +242,20 @@ def get_string_with_history prompt
|
|
240
242
|
end
|
241
243
|
return cmd
|
242
244
|
end
|
245
|
+
# switches location of 2 windows
|
246
|
+
#
|
247
|
+
def switch_windows
|
248
|
+
tv = @form.by_name["tv"]
|
249
|
+
list = @form.by_name["mylist"]
|
250
|
+
if tv.col > 0
|
251
|
+
tv.col = 0
|
252
|
+
tmp = tv.width
|
253
|
+
list.col = tmp + 1
|
254
|
+
else
|
255
|
+
list.col = 0
|
256
|
+
tv.col = list.width + 1
|
257
|
+
end
|
258
|
+
end
|
243
259
|
|
244
260
|
|
245
261
|
|
@@ -264,6 +280,9 @@ if true
|
|
264
280
|
:H => "Hash",
|
265
281
|
:I => "IO",
|
266
282
|
:K => "Kernel",
|
283
|
+
:M => "Module",
|
284
|
+
:O => "OptionParser",
|
285
|
+
:P => "Proc",
|
267
286
|
:S => "String"
|
268
287
|
}
|
269
288
|
config = File.expand_path("~/.ribhu.conf")
|
@@ -292,9 +311,11 @@ if true
|
|
292
311
|
@form.bind_key(?\M-c, 'select class') do
|
293
312
|
ask_classes
|
294
313
|
end
|
314
|
+
@form.bind_key(FFI::NCurses::KEY_F5, 'switch_windows'){ switch_windows }
|
295
315
|
@form.bind_key(?', 'select bookmark') do
|
296
316
|
ask_bookmark
|
297
317
|
end
|
318
|
+
# Alt-h is taken by scrolling in list and textareas
|
298
319
|
@form.bind_key(?\M-d, 'View history') do
|
299
320
|
popup_history
|
300
321
|
end
|
@@ -302,7 +323,7 @@ if true
|
|
302
323
|
# Display bookmarks and allow user to select one
|
303
324
|
list = []
|
304
325
|
$bookmarks.each_pair { |k, v| list << " #[fg=yellow, bold] #{k} #[/end] #[fg=cyan] #{v} #[/end]" }
|
305
|
-
ch = padpopup list, :title => "View Bookmarks"
|
326
|
+
ch = padpopup list, :title => "View Bookmarks", :row => 1, :col => 1
|
306
327
|
ask_bookmark ch.upcase
|
307
328
|
end
|
308
329
|
|
data/ribhu.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "ribhu"
|
8
|
-
spec.version = "0.0.
|
8
|
+
spec.version = "0.0.9"
|
9
9
|
spec.authors = ["Rahul Kumar"]
|
10
10
|
spec.email = ["sentinel1879@gmail.com"]
|
11
11
|
spec.description = %q{ri documentation browser using ncurses}
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ribhu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rahul Kumar
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,33 +27,29 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rbcurse-core
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 0.0.11
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 0.0.11
|
62
55
|
description: ri documentation browser using ncurses
|
@@ -78,32 +71,25 @@ files:
|
|
78
71
|
homepage: https://github.com/rkumar/ribhu
|
79
72
|
licenses:
|
80
73
|
- MIT
|
74
|
+
metadata: {}
|
81
75
|
post_install_message:
|
82
76
|
rdoc_options: []
|
83
77
|
require_paths:
|
84
78
|
- lib
|
85
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
80
|
requirements:
|
88
|
-
- -
|
81
|
+
- - '>='
|
89
82
|
- !ruby/object:Gem::Version
|
90
83
|
version: '0'
|
91
|
-
segments:
|
92
|
-
- 0
|
93
|
-
hash: 4082776761503125510
|
94
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
85
|
requirements:
|
97
|
-
- -
|
86
|
+
- - '>='
|
98
87
|
- !ruby/object:Gem::Version
|
99
88
|
version: '0'
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
hash: 4082776761503125510
|
103
89
|
requirements: []
|
104
90
|
rubyforge_project:
|
105
|
-
rubygems_version:
|
91
|
+
rubygems_version: 2.0.3
|
106
92
|
signing_key:
|
107
|
-
specification_version:
|
93
|
+
specification_version: 4
|
108
94
|
summary: ri documentation browser using ncurses
|
109
95
|
test_files: []
|