rtfm-filemanager 1.3.11 → 1.4.0
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 +18 -1
- 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: 4cb8c1afd7b4f2cf1ab8175432956159e52dc715f25568cc7882c7ee0f5358d0
|
4
|
+
data.tar.gz: efd18775dfbfe3e7a8780b4e971b116b73d278cc63f7dd8a17dfdedadaa97120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9975653d0d5b99418cf0f710bcfa8f314489cd5b9f4369f47f69a41ee2979be0645a1570e83f8eaba322f29d6a0560ba97d40a7607f3608a44007819ebed8dd9
|
7
|
+
data.tar.gz: 78cbd09e08d1c8754ad75fc5b1cd8ad7e8e8b79df56259822234778abe0152042fddd33a82425876ba6704a9ee8533cd5176d97100db86725fbce92503adb23a
|
data/bin/rtfm
CHANGED
@@ -46,6 +46,8 @@ JUMPING AND MARKS
|
|
46
46
|
Press '-' and a letter to delete that mark
|
47
47
|
M = Show marked items in right pane
|
48
48
|
' = Jump to mark (next letter is the name of the mark [a-zA-Z'])
|
49
|
+
j = Jump to the item in the left pane that matches the entry
|
50
|
+
J = Jump to the next matched item (as entered via 'j') if any
|
49
51
|
h = Jump to Home directory
|
50
52
|
f = Follow symlink to the directory where the target resides
|
51
53
|
L = Start 'locate' search for files, then use '#' to jump to desired line/directory
|
@@ -170,6 +172,7 @@ begin # BASIC SETUP
|
|
170
172
|
## These should not be set by user in .rtfm.conf
|
171
173
|
@directory = {} # Initialize the directory hash for remembering directories visited
|
172
174
|
@searched = "" # Initialize the active searched for items
|
175
|
+
@jump = "" # Initialize the "jump-to-file"
|
173
176
|
@index = 0 # Set chosen item to first on startup
|
174
177
|
@marks["'"] = Dir.pwd
|
175
178
|
## File type recognizers
|
@@ -617,7 +620,21 @@ def main_getkey # GET KEY FROM USER
|
|
617
620
|
@break = true
|
618
621
|
@w_b.update = true
|
619
622
|
# ADDITIONAL COMMANDS
|
620
|
-
when '
|
623
|
+
when 'j' # Get the jump-to-file in the current dir from input
|
624
|
+
@w_b.nohistory = true
|
625
|
+
@jump = w_b_getstr("Jump to: ", @jump)
|
626
|
+
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
627
|
+
m = l.each_index.select{|n| l[n] =~ /#{@jump}/}
|
628
|
+
i = m.find { |n| n > @index }
|
629
|
+
@index = i if i > @index unless i == nil
|
630
|
+
@w_r.update = true
|
631
|
+
when 'J'
|
632
|
+
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
633
|
+
m = l.each_index.select{|n| l[n] =~ /#{@jump}/}
|
634
|
+
i = m.find { |n| n > @index }
|
635
|
+
@index = i if i > @index unless i == nil
|
636
|
+
@w_r.update = true
|
637
|
+
when '/' # Get search string to mark items that match the input
|
621
638
|
@w_b.nohistory = true
|
622
639
|
@searched = w_b_getstr("/ ", "")
|
623
640
|
@w_r.update = true
|
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: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,8 +33,8 @@ dependencies:
|
|
33
33
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
34
34
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
35
35
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
36
|
-
other features. New in 1.
|
37
|
-
''
|
36
|
+
other features. New in 1.4.0: Added jumping to an item in the current dir via the
|
37
|
+
''j'' and ''J'' keys.'
|
38
38
|
email: g@isene.com
|
39
39
|
executables:
|
40
40
|
- rtfm
|