rtfm-filemanager 2.5 → 2.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/README.md +2 -1
- data/bin/rtfm +18 -2
- metadata +2 -2
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
@@ -150,7 +150,7 @@ N | Jump to the previous item matched by '/'
|
|
150
150
|
~ | Jump to Home directory
|
151
151
|
\> | Follow symlink to the directory where the target resides
|
152
152
|
L | Start 'locate' search for files, then use '#' to jump to desired line/directory
|
153
|
-
Ctrl-l | Locate files via fzf (fuzzy file finder must be installed https://github.com/junegunn/fzf)
|
153
|
+
Ctrl-l | Locate files via fzf from the current directory down (fuzzy file finder must be installed https://github.com/junegunn/fzf)
|
154
154
|
|
155
155
|
### Tagging
|
156
156
|
|
@@ -209,6 +209,7 @@ g | Run 'grep' to show files that contains the MATCH in current directory
|
|
209
209
|
y | Copy path of selected item to primary selection (for pasting with middle mouse button)
|
210
210
|
Y | Copy path of selected item to clipboard
|
211
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
|
212
213
|
|
213
214
|
|
214
215
|
## A convenient shell function
|
data/bin/rtfm
CHANGED
@@ -54,7 +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
|
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
|
58
60
|
|
59
61
|
TAGGING
|
60
62
|
t = Tag item (toggles)
|
@@ -186,6 +188,7 @@ begin # BASIC SETUP
|
|
186
188
|
@lsfiles = "" # File types to show (initially set to all file types) - not saved on exit
|
187
189
|
@lsmatch = "" # Files to match (initially set to matching all files) - not saved on exit
|
188
190
|
@index = 0 # Set chosen item to first on startup
|
191
|
+
@navi = ""
|
189
192
|
@marks["'"] = Dir.pwd
|
190
193
|
## File type recognizers
|
191
194
|
@imagefile = /\.jpg$|\.JPG$|\.jpeg$|\.png$|\.bmp$|\.gif$|\.tif$|\.tiff$/
|
@@ -301,8 +304,9 @@ def getchr # PROCESS KEY PRESSES
|
|
301
304
|
when "", "" then chr = "BACK"
|
302
305
|
when "" then chr = "WBACK"
|
303
306
|
when "" then chr = "LDEL"
|
304
|
-
when "" then chr = "C-L"
|
305
307
|
when "" then chr = "C-G"
|
308
|
+
when "" then chr = "C-L"
|
309
|
+
when "" then chr = "C-N"
|
306
310
|
when "" then chr = "C-T"
|
307
311
|
when "\r" then chr = "ENTER"
|
308
312
|
when "\t" then chr = "TAB"
|
@@ -724,6 +728,13 @@ def main_getkey # GET KEY FROM USER
|
|
724
728
|
mark_latest
|
725
729
|
Dir.chdir(jumpdir)
|
726
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
|
727
738
|
when '/' # Get search string to mark items that match the input
|
728
739
|
@w_b.nohistory = true
|
729
740
|
@searched = w_b_getstr("/ ", "")
|
@@ -1542,6 +1553,11 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1542
1553
|
w_r_show
|
1543
1554
|
@w_r.fg = 255
|
1544
1555
|
end
|
1556
|
+
unless @navi == ""
|
1557
|
+
w_r_info(@navi)
|
1558
|
+
@w_r.update = false
|
1559
|
+
@navi = ""
|
1560
|
+
end
|
1545
1561
|
Curses.curs_set(1); Curses.curs_set(0) # Clear residual cursor from editing files
|
1546
1562
|
@tag = false # Clear tag pattern
|
1547
1563
|
lsall_old = @lsall
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
@@ -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 2.4: Added archive creation (key=Z) and extraction (key=z).
|
51
|
-
New in 2.5: fzf integration via Ctrl-L'
|
51
|
+
New in 2.5: fzf integration via Ctrl-L. New in 2.6: navi integration via ctrl-n'
|
52
52
|
email: g@isene.com
|
53
53
|
executables:
|
54
54
|
- rtfm
|