rtfm-filemanager 4.01 → 4.06
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 +10 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537c70346f100774a82f477b7b52b9b5326c26b00c5e010566dc3b1b588dcff3
|
4
|
+
data.tar.gz: 828edf5b838fed3c8476aef8a3af8d248611b66e2295245d486eccf3c0e6f4a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b5c5fae7d17e06fee6e521ad546711a53f0accfb5ecc3395a7d69814a52fc7016a80d52ba5363144c6ab622a49c251e866e376a6c798d1cfe1da45880ebd8ea
|
7
|
+
data.tar.gz: 6f9557f926c7a09eef2d4afd9b61d5644fb1fdbadf57144c41303548573b7039656b3ff5945b5459f62ab43403a305be76667dd3e79070bf2ac5bf055b70fb9b
|
data/bin/rtfm
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "4.
|
17
|
+
@version = "4.06" # Better Ruby code output (when entering Ruby code with '@')
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -877,6 +877,7 @@ def main_getkey # GET KEY FROM USER
|
|
877
877
|
@w_r.nohistory = false
|
878
878
|
cmd = w_b_getstr(": ", "")
|
879
879
|
w_b_exec(cmd)
|
880
|
+
@w_b.update = true
|
880
881
|
when ';' # Show command history
|
881
882
|
w_r_info("Command history (latest on top):\n\n" + @history.join("\n"))
|
882
883
|
@w_b.update = true
|
@@ -926,13 +927,12 @@ def main_getkey # GET KEY FROM USER
|
|
926
927
|
@w_b.refresh
|
927
928
|
@w_b.update = true
|
928
929
|
@w_r.clr
|
929
|
-
|
930
|
+
w_r_info("Command: #{cmd}\n")
|
930
931
|
begin
|
931
|
-
|
932
|
+
eval(cmd).to_s
|
932
933
|
rescue Exception => err
|
933
|
-
|
934
|
+
w_r_info("Error: #{err.inspect}")
|
934
935
|
end
|
935
|
-
w_r_info(info)
|
936
936
|
@w_r.update = false
|
937
937
|
end
|
938
938
|
if @w_r.update == true
|
@@ -1498,7 +1498,11 @@ def w_b_getstr(pretext, text, ruby=false) # A SIMPLE READLINE-LIKE ROUTINE
|
|
1498
1498
|
pos = @history_copy[stk].length
|
1499
1499
|
while chr != "ENTER"
|
1500
1500
|
@w_b.setpos(0,0)
|
1501
|
-
|
1501
|
+
if ruby
|
1502
|
+
init_pair(250, 250, 52)
|
1503
|
+
else
|
1504
|
+
init_pair(250, 250, 22)
|
1505
|
+
end
|
1502
1506
|
text = pretext + @history_copy[stk]
|
1503
1507
|
text += " " * (@w_b.maxx - text.length) if text.length < @w_b.maxx
|
1504
1508
|
@w_b.attron(color_pair(250)) { @w_b << text }
|
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: '4.
|
4
|
+
version: '4.06'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -47,8 +47,8 @@ dependencies:
|
|
47
47
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
50
|
-
other features. New in 4.
|
51
|
-
|
50
|
+
other features. New in 4.06: Better Ruby code output (when entering Ruby code with
|
51
|
+
''@'').'
|
52
52
|
email: g@isene.com
|
53
53
|
executables:
|
54
54
|
- rtfm
|