rtfm-filemanager 2.4 → 2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/bin/rtfm +15 -1
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7217e989066b31a7b738092805fa9c7f8b261afdf0444937fc1286cd19ad7658
4
- data.tar.gz: 4cf34fe9ef723ec6f2829d6bce59c2128a9ee7878665069732bfc5270b5437cc
3
+ metadata.gz: 76432f70e088d0515d3b36720d20f52f25cf0a90047671aa1ac60e590ec689c3
4
+ data.tar.gz: 1ec43a86d49b697f2047244ef0874e2403f87791fad50ffca27156ea0455a29e
5
5
  SHA512:
6
- metadata.gz: 7320de7f8f7775d231163e927b0219c4113747de0eebdd7e52697d645420023e92958157552e0300ed1bd404f85f6bcdac01fe77017631da6f9b205906a49556
7
- data.tar.gz: 31f08dbab26ccaa324498c621d1547a1e205ed908538628e8494d57dcc3b8b676f9fa950f83d9e2d39a1fe4cd0a97280ca36e2b0173374b863a7c9602664b760
6
+ metadata.gz: '05158f66c902f1ac681d9737c3bdd5db30adcc1d6feaec3ac21b27585205ed38c630d711b3e546090d9d68d26f49afef57bfd84daaee323726df752f7f158c89'
7
+ data.tar.gz: f33b04324aa56f5b996c5c772c10fcbcd74400c1f52d898b661df7e78317500ae9531891c4641bd16d58a063538ead2b8962d929fc877dea41b9e84613aa9975
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 (fuzzy file finder must be installed https://github.com/junegunn/fzf)
152
154
 
153
155
  ### Tagging
154
156
 
data/bin/rtfm CHANGED
@@ -54,6 +54,7 @@ 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 (fuzzy file finder must be installed https://github.com/junegunn/fzf)
57
58
 
58
59
  TAGGING
59
60
  t = Tag item (toggles)
@@ -300,8 +301,9 @@ def getchr # PROCESS KEY PRESSES
300
301
  when "", "" then chr = "BACK"
301
302
  when "" then chr = "WBACK"
302
303
  when "" then chr = "LDEL"
303
- when "" then chr = "C-T"
304
+ when " " then chr = "C-L"
304
305
  when "" then chr = "C-G"
306
+ when "" then chr = "C-T"
305
307
  when "\r" then chr = "ENTER"
306
308
  when "\t" then chr = "TAB"
307
309
  when /./ then chr = c
@@ -710,6 +712,18 @@ def main_getkey # GET KEY FROM USER
710
712
  when 'F' # Filter out files not matching @lsmatch
711
713
  @lsmatch = w_b_getstr("Files will match RegEx: ", @lsmatch)
712
714
  w_b_info(nil)
715
+ when 'C-L'
716
+ begin
717
+ jump = `fzf`.chomp
718
+ rescue
719
+ w_b_info(" fzf not installed - see https://github.com/junegunn/fzf")
720
+ end
721
+ jumpdir = File.dirname(jump)
722
+ @searched = File.basename(jump)
723
+ @directory[Dir.pwd] = @selected # Store this directory before leaving
724
+ mark_latest
725
+ Dir.chdir(jumpdir)
726
+ @break = true
713
727
  when '/' # Get search string to mark items that match the input
714
728
  @w_b.nohistory = true
715
729
  @searched = w_b_getstr("/ ", "")
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'
4
+ version: '2.5'
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-08 00:00:00.000000000 Z
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'
51
52
  email: g@isene.com
52
53
  executables:
53
54
  - rtfm