rtfm-filemanager 2.3.2 → 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 +5 -1
  3. data/bin/rtfm +32 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e2ab836c09fe05242283f284a70eadf20c13b0500fce02fe6eb144d2664f306
4
- data.tar.gz: 4dedacc19a33078a57e7b3d2d51cb9a0c84f455aeb25c3aa37b86c4d890d5a52
3
+ metadata.gz: 76432f70e088d0515d3b36720d20f52f25cf0a90047671aa1ac60e590ec689c3
4
+ data.tar.gz: 1ec43a86d49b697f2047244ef0874e2403f87791fad50ffca27156ea0455a29e
5
5
  SHA512:
6
- metadata.gz: 8591a01d31db413a031ea70c596d1a7b06dd17596621f0a3b9abcce22891c81afff204cb001224a85e26cc817cf45f6f28ff95df054eee60d27e73044e7ad3b7
7
- data.tar.gz: 4addd6dac4a415b1a5fcf5f1f3929327e77db29e8125fb2f0642c3dca833494e1206927bd90b8987b77bbf6fe857132ee8bdc7c8e281a46637d324e714ce2ff0
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
 
@@ -168,6 +170,8 @@ P | PUT (move) tagged items here
168
170
  s | Create symlink to tagged items here
169
171
  d | Delete selected item and tagged items. Press 'y' to confirm
170
172
  c | Change/rename selected (adds command to bottom window)
173
+ z | Extract tagged zipped archive to current directory
174
+ Z | Create zipped archive from tagged files/directories
171
175
 
172
176
  ### Directory views
173
177
 
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)
@@ -67,6 +68,8 @@ MANIPULATE ITEMS
67
68
  s = Create symlink to tagged items here
68
69
  d = Delete selected item and tagged items. Press 'y' to confirm
69
70
  c = Change/rename selected (adds command to bottom window)
71
+ z = Extract tagged zipped archive to current directory
72
+ Z = Create zipped archive from tagged files/directories
70
73
 
71
74
  DIRECTORY VIEWS
72
75
  a = Show all (also hidden) items
@@ -298,8 +301,9 @@ def getchr # PROCESS KEY PRESSES
298
301
  when "", "" then chr = "BACK"
299
302
  when "" then chr = "WBACK"
300
303
  when "" then chr = "LDEL"
301
- when "" then chr = "C-T"
304
+ when " " then chr = "C-L"
302
305
  when "" then chr = "C-G"
306
+ when "" then chr = "C-T"
303
307
  when "\r" then chr = "ENTER"
304
308
  when "\t" then chr = "TAB"
305
309
  when /./ then chr = c
@@ -528,6 +532,21 @@ def main_getkey # GET KEY FROM USER
528
532
  w_b_info(err.to_s)
529
533
  end
530
534
  @w_r.update = true
535
+ when 'z'
536
+ cmd = w_b_getstr("Command = ", "tar xfz #{@tagged.first}")
537
+ begin
538
+ w_b_exec(cmd + " 2>/dev/null")
539
+ rescue StandardError => err
540
+ w_b_info(err.to_s)
541
+ end
542
+ when 'Z'
543
+ arc = w_b_getstr("Archive name: ", "")
544
+ cmd = w_b_getstr("Command = ", "tar cfz #{arc}.gz #{@tagged.join(" ")}")
545
+ begin
546
+ w_b_exec(cmd + " 2>/dev/null")
547
+ rescue StandardError => err
548
+ w_b_info(err.to_s)
549
+ end
531
550
  # DIRECTORY VIEWS
532
551
  when 'a' # Show all items
533
552
  @lsall == "" ? @lsall = "-a" : @lsall = ""
@@ -693,6 +712,18 @@ def main_getkey # GET KEY FROM USER
693
712
  when 'F' # Filter out files not matching @lsmatch
694
713
  @lsmatch = w_b_getstr("Files will match RegEx: ", @lsmatch)
695
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
696
727
  when '/' # Get search string to mark items that match the input
697
728
  @w_b.nohistory = true
698
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.3.2
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,8 +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.3.1: Fixed critical pager bug in right window/pane. 2.3.2
51
- is a code clean-up.'
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'
52
52
  email: g@isene.com
53
53
  executables:
54
54
  - rtfm