rtfm-filemanager 2.4 → 2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/bin/rtfm +31 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62ecc09edcba46b5c027d02c4042d69855345bd8d28f996fc6aa5346b62398a
|
4
|
+
data.tar.gz: 6098c45f9c6d4947e0ef9857eab6843fbb8d0b228d94c0697b98e5a9ca00ac49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700f25265f3a231e950e2f23501db16dc8992c56cbc33af94921633335257d7026839fc26ad718ee817cba31fcc2badf571583e04ab8ed3cfa2c3ddefd792f47
|
7
|
+
data.tar.gz: b5072cc09ddba4291dd98fa808bcabac12cfcdc340e64fa712e3a4dcf06479fae658da324daac3bd90afb900e4358a248ae6b1ecb49431556f1004241f3d73b2
|
data/README.md
CHANGED
@@ -6,7 +6,8 @@ directories and view the content of directories and files. Files are syntax
|
|
6
6
|
highlighted, images are shown in the terminal, videos are thumbnailed, etc.
|
7
7
|
You can bookmark and jump around easily, delete, rename, copy, symlink and
|
8
8
|
move files. RTFM has a a wide range of other features. Read on for what it can
|
9
|
-
do.
|
9
|
+
do. RTFM consists of just one executable file and thereby easily ported across
|
10
|
+
systems.
|
10
11
|
|
11
12
|
Note: RTFM works best with the (u)rxvt, xterm and Eterm terminal emulators.
|
12
13
|
|
@@ -149,6 +150,7 @@ N | Jump to the previous item matched by '/'
|
|
149
150
|
~ | Jump to Home directory
|
150
151
|
\> | Follow symlink to the directory where the target resides
|
151
152
|
L | Start 'locate' search for files, then use '#' to jump to desired line/directory
|
153
|
+
Ctrl-l | Locate files via fzf from the current directory down (fuzzy file finder must be installed https://github.com/junegunn/fzf)
|
152
154
|
|
153
155
|
### Tagging
|
154
156
|
|
@@ -207,6 +209,7 @@ g | Run 'grep' to show files that contains the MATCH in current directory
|
|
207
209
|
y | Copy path of selected item to primary selection (for pasting with middle mouse button)
|
208
210
|
Y | Copy path of selected item to clipboard
|
209
211
|
S | Show comprehensive system info (system, CPU, filesystem, latest dmesg messages)
|
212
|
+
Ctrl-n | Invoke navi (see https://github.com/denisidoro/navi) with any output in right window
|
210
213
|
|
211
214
|
|
212
215
|
## A convenient shell function
|
data/bin/rtfm
CHANGED
@@ -54,6 +54,9 @@ JUMPING AND MARKS
|
|
54
54
|
~ = Jump to Home directory
|
55
55
|
> = Follow symlink to the directory where the target resides
|
56
56
|
L = Start 'locate' search for files, then use '#' to jump to desired line/directory
|
57
|
+
Ctrl-l = Locate files via fzf from the current directory down
|
58
|
+
(fuzzy file finder must be installed https://github.com/junegunn/fzf)
|
59
|
+
Ctrl-n = Invoke navi (see https://github.com/denisidoro/navi) with any output in right window
|
57
60
|
|
58
61
|
TAGGING
|
59
62
|
t = Tag item (toggles)
|
@@ -185,6 +188,7 @@ begin # BASIC SETUP
|
|
185
188
|
@lsfiles = "" # File types to show (initially set to all file types) - not saved on exit
|
186
189
|
@lsmatch = "" # Files to match (initially set to matching all files) - not saved on exit
|
187
190
|
@index = 0 # Set chosen item to first on startup
|
191
|
+
@navi = ""
|
188
192
|
@marks["'"] = Dir.pwd
|
189
193
|
## File type recognizers
|
190
194
|
@imagefile = /\.jpg$|\.JPG$|\.jpeg$|\.png$|\.bmp$|\.gif$|\.tif$|\.tiff$/
|
@@ -300,8 +304,10 @@ def getchr # PROCESS KEY PRESSES
|
|
300
304
|
when "", "" then chr = "BACK"
|
301
305
|
when "" then chr = "WBACK"
|
302
306
|
when "" then chr = "LDEL"
|
303
|
-
when "" then chr = "C-T"
|
304
307
|
when "" then chr = "C-G"
|
308
|
+
when "" then chr = "C-L"
|
309
|
+
when "" then chr = "C-N"
|
310
|
+
when "" then chr = "C-T"
|
305
311
|
when "\r" then chr = "ENTER"
|
306
312
|
when "\t" then chr = "TAB"
|
307
313
|
when /./ then chr = c
|
@@ -710,6 +716,25 @@ def main_getkey # GET KEY FROM USER
|
|
710
716
|
when 'F' # Filter out files not matching @lsmatch
|
711
717
|
@lsmatch = w_b_getstr("Files will match RegEx: ", @lsmatch)
|
712
718
|
w_b_info(nil)
|
719
|
+
when 'C-L'
|
720
|
+
begin
|
721
|
+
jump = `fzf`.chomp
|
722
|
+
rescue
|
723
|
+
w_b_info(" fzf not installed - see https://github.com/junegunn/fzf")
|
724
|
+
end
|
725
|
+
jumpdir = File.dirname(jump)
|
726
|
+
@searched = File.basename(jump)
|
727
|
+
@directory[Dir.pwd] = @selected # Store this directory before leaving
|
728
|
+
mark_latest
|
729
|
+
Dir.chdir(jumpdir)
|
730
|
+
@break = true
|
731
|
+
when 'C-N'
|
732
|
+
begin
|
733
|
+
@navi = `navi`
|
734
|
+
rescue
|
735
|
+
w_b_info(" navi not installed - see https://github.com/denisidoro/navi")
|
736
|
+
end
|
737
|
+
@break = true
|
713
738
|
when '/' # Get search string to mark items that match the input
|
714
739
|
@w_b.nohistory = true
|
715
740
|
@searched = w_b_getstr("/ ", "")
|
@@ -1528,6 +1553,11 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1528
1553
|
w_r_show
|
1529
1554
|
@w_r.fg = 255
|
1530
1555
|
end
|
1556
|
+
unless @navi == ""
|
1557
|
+
w_r_info(@navi)
|
1558
|
+
@w_r.update = false
|
1559
|
+
@navi = ""
|
1560
|
+
end
|
1531
1561
|
Curses.curs_set(1); Curses.curs_set(0) # Clear residual cursor from editing files
|
1532
1562
|
@tag = false # Clear tag pattern
|
1533
1563
|
lsall_old = @lsall
|
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: '2.
|
4
|
+
version: '2.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: 2023-04-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -47,7 +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 2.4: Added archive creation (key=Z) and extraction (key=z)
|
50
|
+
other features. New in 2.4: Added archive creation (key=Z) and extraction (key=z).
|
51
|
+
New in 2.5: fzf integration via Ctrl-L. New in 2.6: navi integration via ctrl-n'
|
51
52
|
email: g@isene.com
|
52
53
|
executables:
|
53
54
|
- rtfm
|