rtfm-filemanager 1.5.2 → 1.5.6
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/rtfm +18 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f0131adea235fd4c83591da8e250a7eeca1cc35b0941e23c5372fd35a33caa8
|
4
|
+
data.tar.gz: 52b1b04410ec57b95517e26d50c03cec83ca22c9aa21c87cb496a7b26ac689a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 813931572663d1e25ab22fd1ddcc6d4de1db96fe3167f53d5fbdc199d2f2668efbc71cc54a26ce0c1592947fab7f0f76ef673748ce2b14ff3c0a2e4f8d598db8
|
7
|
+
data.tar.gz: 0f04762f7209ed0dd90e4aae3820915312e924a043ab12b14496d4c2b78136795ec05d0b98a4b74276b6a8ac4bfc82be0b04af051215f2ce98275a461194f09e
|
data/bin/rtfm
CHANGED
@@ -624,6 +624,7 @@ def main_getkey # GET KEY FROM USER
|
|
624
624
|
@searched = w_b_getstr("/ ", "")
|
625
625
|
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
626
626
|
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
627
|
+
@index = 0 unless m == []
|
627
628
|
i = m.find { |n| n > @index }
|
628
629
|
@index = i if i > @index unless i == nil
|
629
630
|
@index = 0 if @searched == ""
|
@@ -672,14 +673,17 @@ def main_getkey # GET KEY FROM USER
|
|
672
673
|
when '@' # Enter "Ruby debug"
|
673
674
|
@w_b.nohistory = true
|
674
675
|
cmd = w_b_getstr("◆ ", "")
|
676
|
+
@w_b.clr
|
677
|
+
@w_b.refresh
|
678
|
+
@w_b.update = true
|
675
679
|
@w_r.clr
|
676
|
-
|
677
|
-
@w_r.refresh
|
680
|
+
info = "Command: #{cmd}\n\n"
|
678
681
|
begin
|
679
|
-
eval(cmd)
|
682
|
+
info += eval(cmd).to_s
|
680
683
|
rescue StandardError => e
|
681
|
-
|
684
|
+
info += "Error: #{e.inspect}"
|
682
685
|
end
|
686
|
+
w_r_info(info)
|
683
687
|
@w_r.update = false
|
684
688
|
end
|
685
689
|
if @w_r.update == true
|
@@ -993,12 +997,19 @@ def w_r_doc # GET FULL CONTENT TO PAGE
|
|
993
997
|
@w_r << @w_r.text
|
994
998
|
end
|
995
999
|
def w_r_info(info) # SHOW INFO IN THE RIGHT WINDOW
|
1000
|
+
image_show("clear") if @image; @image = false
|
1001
|
+
@w_r.clr
|
1002
|
+
@w_r. refresh
|
1003
|
+
w_r_width = Curses.cols - (Curses.cols/@width) - 1
|
1004
|
+
info = info.split("\n")
|
1005
|
+
l = []
|
1006
|
+
info.each{ |e| l << e.scan(/.{,#{w_r_width}}/)[0..-2] }
|
1007
|
+
info = l.join("\n")
|
996
1008
|
@w_r.text = info
|
997
1009
|
@w_r.pager_cmd = ""
|
998
1010
|
pager_start
|
999
1011
|
pager_show
|
1000
1012
|
@w_r.update = false
|
1001
|
-
image_show("clear") if @image; @image = false
|
1002
1013
|
end
|
1003
1014
|
def marks_info # SHOW MARKS IN RIGHT WINDOW
|
1004
1015
|
info = "MARKS:\n"
|
@@ -1258,6 +1269,7 @@ def w_b_exec(cmd) # EXECUTE COMMAND FROM @W_B
|
|
1258
1269
|
end
|
1259
1270
|
begin
|
1260
1271
|
status = Timeout::timeout(5) {
|
1272
|
+
@w_r.clr
|
1261
1273
|
begin
|
1262
1274
|
@w_r.pager_cmd = "#{cmd} | batcat -n --color=always 2>/dev/null"
|
1263
1275
|
@w_r.text = `#{@w_r.pager_cmd} 2>/dev/null`
|
@@ -1362,8 +1374,8 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1362
1374
|
@tag = false # Clear tag pattern
|
1363
1375
|
lsall_old = @lsall
|
1364
1376
|
main_getkey # Get key from user
|
1365
|
-
break if @break # Break to outer loop, redrawing windows, if user hit 'r'
|
1366
1377
|
break if Curses.cols != maxx or Curses.lines != maxy # break on terminal resize
|
1378
|
+
break if @break # Break to outer loop, redrawing windows, if user hit 'r'
|
1367
1379
|
end
|
1368
1380
|
ensure # On exit: close curses, clear terminal
|
1369
1381
|
@write_conf_all = false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -34,9 +34,9 @@ description: 'A full featured terminal browser with syntax highlighted files, im
|
|
34
34
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
35
35
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
36
36
|
other features. New in 1.5.0: Expanded ''/'' to jump to the first match and ''n''
|
37
|
-
to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.
|
38
|
-
|
39
|
-
|
37
|
+
to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.4: Fixed
|
38
|
+
command output error - now shown in right pane. New in 1.5.5/6: Fixed minor jump
|
39
|
+
issue when searching via ''/'''
|
40
40
|
email: g@isene.com
|
41
41
|
executables:
|
42
42
|
- rtfm
|