rtfm-filemanager 3.8 → 3.9
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 +13 -6
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e42eb95b56118347846698cdfba4ff623a1e26232f27b65eca95ccc6fee9ccf
|
4
|
+
data.tar.gz: 18b33ed860c9b92d7c6001bdb1b218010dece44855a1724d35242cd29ebfa1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b834369ab3664df99aaa15272daea2f2f64bfaefc32ec740e6517e55fa9e177c21a32e134efe349d610909d5d0c565b6b0d4fb97a3c3d708a2fe9a24560ffd
|
7
|
+
data.tar.gz: 62b6910acae2d26a51c9a00beae8f7521c5d2b7c2cf8773248d965c838e12e706b875f3acb0ca8ff6b1db47cf03a89b70410d53716c04fd7ba4015dcdd7cd835
|
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 = "3.
|
17
|
+
@version = "3.9"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -177,6 +177,7 @@ end
|
|
177
177
|
begin # BASIC SETUP
|
178
178
|
require 'fileutils'
|
179
179
|
require 'io/console'
|
180
|
+
require 'io/wait'
|
180
181
|
require 'date'
|
181
182
|
require 'timeout'
|
182
183
|
require 'curses'
|
@@ -318,9 +319,9 @@ def getchr # PROCESS KEY PRESSES
|
|
318
319
|
c = STDIN.getch(min: 0, time: 3)
|
319
320
|
case c
|
320
321
|
when "\e" # ANSI escape sequences
|
321
|
-
case
|
322
|
+
case STDIN.getc
|
322
323
|
when '[' # CSI
|
323
|
-
case
|
324
|
+
case STDIN.getc
|
324
325
|
when 'A' then chr = "UP"
|
325
326
|
when 'B' then chr = "DOWN"
|
326
327
|
when 'C' then chr = "RIGHT"
|
@@ -334,7 +335,7 @@ def getchr # PROCESS KEY PRESSES
|
|
334
335
|
when '8' then chr = "END" ; chr = "C-END" if STDIN.getc == "^"
|
335
336
|
end
|
336
337
|
when 'O' # Set Ctrl+ArrowKey equal to ArrowKey; May be used for other purposes in the future
|
337
|
-
case
|
338
|
+
case STDIN.getc
|
338
339
|
when 'a' then chr = "C-UP"
|
339
340
|
when 'b' then chr = "C-DOWN"
|
340
341
|
when 'c' then chr = "C-RIGHT"
|
@@ -344,6 +345,7 @@ def getchr # PROCESS KEY PRESSES
|
|
344
345
|
when "", "" then chr = "BACK"
|
345
346
|
when "" then chr = "WBACK"
|
346
347
|
when "" then chr = "LDEL"
|
348
|
+
when "" then chr = "C-C"
|
347
349
|
when "" then chr = "C-G"
|
348
350
|
when "" then chr = "C-L"
|
349
351
|
when "" then chr = "C-N"
|
@@ -353,7 +355,7 @@ def getchr # PROCESS KEY PRESSES
|
|
353
355
|
when "" then chr = "C-Y"
|
354
356
|
when "\r" then chr = "ENTER"
|
355
357
|
when "\t" then chr = "TAB"
|
356
|
-
when
|
358
|
+
when /[[:print:]]/ then chr = c
|
357
359
|
end
|
358
360
|
return chr
|
359
361
|
end
|
@@ -1440,7 +1442,7 @@ def w_b_getstr(pretext, text) # A SIMPLE READLINE-LIKE ROUTINE
|
|
1440
1442
|
@w_b.setpos(0,pretext.length + pos)
|
1441
1443
|
@w_b.refresh
|
1442
1444
|
chr = getchr
|
1443
|
-
if chr ==
|
1445
|
+
if chr == 'C-G' or chr == 'C-C'
|
1444
1446
|
Curses.curs_set(0)
|
1445
1447
|
Curses.noecho
|
1446
1448
|
@w_b.update = true
|
@@ -1533,6 +1535,11 @@ def w_b_getstr(pretext, text) # A SIMPLE READLINE-LIKE ROUTINE
|
|
1533
1535
|
@history[stk].insert(pos,chr)
|
1534
1536
|
pos += 1
|
1535
1537
|
end
|
1538
|
+
while STDIN.ready?
|
1539
|
+
chr = STDIN.getc
|
1540
|
+
@history[stk].insert(pos,chr)
|
1541
|
+
pos += 1
|
1542
|
+
end
|
1536
1543
|
end
|
1537
1544
|
curstr = @history[stk]
|
1538
1545
|
@history.shift if @w_b.nohistory
|
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: '3.
|
4
|
+
version: '3.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -47,9 +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 3.
|
51
|
-
|
52
|
-
to let RTFM start from that directory.'
|
50
|
+
other features. New in 3.9: You can now paste onto the bottom command line. Removed
|
51
|
+
control chars in input.'
|
53
52
|
email: g@isene.com
|
54
53
|
executables:
|
55
54
|
- rtfm
|