rtfm-filemanager 3.14.15 → 3.14.1592
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/bin/rtfm +12 -7
- data/rtfm-kb.png +0 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f628734291b6d3887cdb939bcb04a3981dbbc2ca67a353c3e153ac646ec9a52
|
4
|
+
data.tar.gz: 020fa1fe9fe9929ea513b1eb71f393f829a3ffea7fefce38736c5048b1be320d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2a43370c508e85081565eaf7d329511e597dd635db6680893d0d63a4ad1febe3d5085942b45ecb8340d84ff62abd47589719ea71399f70d8a52b5c2eee1d121
|
7
|
+
data.tar.gz: 33ba3c9662061933a4896def9814661caed601f9b794f30a030f5c7571cc406af7b120b2cf94c122d0cf723ed1e0cb5e29783d0c6f26897296c0ac63af4bdc91
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# RTFM - Ruby Terminal File Manager
|
2
|
-
|
2
|
+
|
3
3
|
 [](https://badge.fury.io/rb/rtfm-filemanager)  
|
4
4
|
|
5
5
|
What other features can I cram into this file manager?
|
@@ -263,8 +263,9 @@ B | Toggle border
|
|
263
263
|
y | Copy path of selected item to primary selection (for pasting with middle mouse button)
|
264
264
|
Y | Copy path of selected item to clipboard
|
265
265
|
Ctrl-y | Copy content of right pane to clipboard
|
266
|
-
|
266
|
+
Ctrl-d | Create a new directory (a shortcut for ":mkdir ")
|
267
267
|
Ctrl-n | Invoke navi (see https://github.com/denisidoro/navi) with any output in right pane
|
268
|
+
S | Show comprehensive system info (system, CPU, filesystem, latest dmesg messages)
|
268
269
|
|
269
270
|
## Keyboard cheat sheet
|
270
271
|

|
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.14.
|
17
|
+
@version = "3.14.1592"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -111,10 +111,11 @@ ADDITIONAL COMMANDS
|
|
111
111
|
y = Copy path of selected item to primary selection (for pasting with middle mouse button)
|
112
112
|
Y = Copy path of selected item to clipboard
|
113
113
|
Ctrl-y = Copy content of right pane to clipboard
|
114
|
-
|
114
|
+
Ctrl-d = Create a new directory (a shortcut for ":mkdir ")
|
115
115
|
Ctrl-n = Invoke navi (see https://github.com/denisidoro/navi) with any output in right window
|
116
|
+
S = Show comprehensive System info (system, CPU, filesystem, latest dmesg messages)
|
116
117
|
|
117
|
-
COPYRIGHT: Geir Isene, 2020-
|
118
|
+
COPYRIGHT: Geir Isene, 2020-4. No rights reserved. See http://isene.com for more.
|
118
119
|
HELPTEXT
|
119
120
|
def firstrun
|
120
121
|
@firstrun = <<~FIRSTRUN
|
@@ -347,6 +348,7 @@ def getchr # PROCESS KEY PRESSES
|
|
347
348
|
when "" then chr = "WBACK"
|
348
349
|
when "" then chr = "LDEL"
|
349
350
|
when "" then chr = "C-C"
|
351
|
+
when "" then chr = "C-D"
|
350
352
|
when "" then chr = "C-G"
|
351
353
|
when "" then chr = "C-L"
|
352
354
|
when "" then chr = "C-N"
|
@@ -868,6 +870,9 @@ def main_getkey # GET KEY FROM USER
|
|
868
870
|
system("echo -n '#{@cont}' | #{clip}")
|
869
871
|
when 'S' # Show comprehensive system info
|
870
872
|
sysinfo
|
873
|
+
when 'C-D' # Create new directory (shortcut for ":mkdir ")
|
874
|
+
cmd = w_b_getstr(": ", "mkdir ")
|
875
|
+
w_b_exec(cmd)
|
871
876
|
when 'C-N' # navi integration (https://github.com/denisidoro/navi)
|
872
877
|
begin
|
873
878
|
@navi = `navi`
|
@@ -1061,7 +1066,7 @@ def list_dir(active) # LIST CONTENT OF A DIRECTORY (BOTH active AND RIGHT WINDOW
|
|
1061
1066
|
base_length = base_name.length
|
1062
1067
|
ext_name = File.extname(str)
|
1063
1068
|
ext_length = ext_name.length
|
1064
|
-
nbl = win.maxx -
|
1069
|
+
nbl = win.maxx - 6 - ext_length # nbl: new_base_length
|
1065
1070
|
str = base_name[0..nbl] + "…" + ext_name
|
1066
1071
|
end
|
1067
1072
|
if !active and ix == win.maxy - 1 # Add indicator of more at bottom @w_r list
|
@@ -1073,7 +1078,7 @@ def list_dir(active) # LIST CONTENT OF A DIRECTORY (BOTH active AND RIGHT WINDOW
|
|
1073
1078
|
win.attron(file_marker) { win << str } # Implement color/bold to the item
|
1074
1079
|
win.clrtoeol
|
1075
1080
|
win << "\n"
|
1076
|
-
ix += 1; t
|
1081
|
+
ix += 1; t += 1
|
1077
1082
|
end
|
1078
1083
|
(win.maxy - win.cury).times {win.deleteln()} # Clear to bottom of window
|
1079
1084
|
if active
|
@@ -1623,8 +1628,8 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1623
1628
|
maxx = Curses.cols
|
1624
1629
|
maxy = Curses.lines
|
1625
1630
|
# Curses::Window.new(h,w,y,x)
|
1626
|
-
@w_t = Curses::Window.new(1,
|
1627
|
-
@w_b = Curses::Window.new(1,
|
1631
|
+
@w_t = Curses::Window.new(1, maxx, 0, 0)
|
1632
|
+
@w_b = Curses::Window.new(1, maxx, maxy - 1, 0)
|
1628
1633
|
@w_l = Curses::Window.new(maxy - 3, (maxx * @width / 10) - 1, 2, 0)
|
1629
1634
|
@w_r = Curses::Window.new(maxy - 4, maxx - (maxx * @width / 10), 2, maxx * @width / 10)
|
1630
1635
|
@w_p = Curses::Window.new(1, maxx - (maxx * @width / 10), maxy - 2, maxx * @width / 10)
|
data/rtfm-kb.png
CHANGED
Binary file
|
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.14.
|
4
|
+
version: 3.14.1592
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -48,7 +48,7 @@ description: 'A full featured terminal browser with syntax highlighted files, im
|
|
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
50
|
other features. New in 3.14: Better error handling. 3.14.1: Fixed bug in launching
|
51
|
-
rtfm without the launcher ''r''. 3.14.
|
51
|
+
rtfm without the launcher ''r''. 3.14.1592: Minor fix for long filenames.'
|
52
52
|
email: g@isene.com
|
53
53
|
executables:
|
54
54
|
- rtfm
|
@@ -63,7 +63,7 @@ licenses:
|
|
63
63
|
- Unlicense
|
64
64
|
metadata:
|
65
65
|
source_code_uri: https://github.com/isene/RTFM
|
66
|
-
post_install_message:
|
66
|
+
post_install_message:
|
67
67
|
rdoc_options: []
|
68
68
|
require_paths:
|
69
69
|
- lib
|
@@ -78,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
82
|
-
signing_key:
|
81
|
+
rubygems_version: 3.4.20
|
82
|
+
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: RTFM - Ruby Terminal File Manager
|
85
85
|
test_files: []
|