rtfm-filemanager 2.3.2 → 2.4

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 +2 -0
  3. data/bin/rtfm +17 -0
  4. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e2ab836c09fe05242283f284a70eadf20c13b0500fce02fe6eb144d2664f306
4
- data.tar.gz: 4dedacc19a33078a57e7b3d2d51cb9a0c84f455aeb25c3aa37b86c4d890d5a52
3
+ metadata.gz: 7217e989066b31a7b738092805fa9c7f8b261afdf0444937fc1286cd19ad7658
4
+ data.tar.gz: 4cf34fe9ef723ec6f2829d6bce59c2128a9ee7878665069732bfc5270b5437cc
5
5
  SHA512:
6
- metadata.gz: 8591a01d31db413a031ea70c596d1a7b06dd17596621f0a3b9abcce22891c81afff204cb001224a85e26cc817cf45f6f28ff95df054eee60d27e73044e7ad3b7
7
- data.tar.gz: 4addd6dac4a415b1a5fcf5f1f3929327e77db29e8125fb2f0642c3dca833494e1206927bd90b8987b77bbf6fe857132ee8bdc7c8e281a46637d324e714ce2ff0
6
+ metadata.gz: 7320de7f8f7775d231163e927b0219c4113747de0eebdd7e52697d645420023e92958157552e0300ed1bd404f85f6bcdac01fe77017631da6f9b205906a49556
7
+ data.tar.gz: 31f08dbab26ccaa324498c621d1547a1e205ed908538628e8494d57dcc3b8b676f9fa950f83d9e2d39a1fe4cd0a97280ca36e2b0173374b863a7c9602664b760
data/README.md CHANGED
@@ -168,6 +168,8 @@ P | PUT (move) tagged items here
168
168
  s | Create symlink to tagged items here
169
169
  d | Delete selected item and tagged items. Press 'y' to confirm
170
170
  c | Change/rename selected (adds command to bottom window)
171
+ z | Extract tagged zipped archive to current directory
172
+ Z | Create zipped archive from tagged files/directories
171
173
 
172
174
  ### Directory views
173
175
 
data/bin/rtfm CHANGED
@@ -67,6 +67,8 @@ MANIPULATE ITEMS
67
67
  s = Create symlink to tagged items here
68
68
  d = Delete selected item and tagged items. Press 'y' to confirm
69
69
  c = Change/rename selected (adds command to bottom window)
70
+ z = Extract tagged zipped archive to current directory
71
+ Z = Create zipped archive from tagged files/directories
70
72
 
71
73
  DIRECTORY VIEWS
72
74
  a = Show all (also hidden) items
@@ -528,6 +530,21 @@ def main_getkey # GET KEY FROM USER
528
530
  w_b_info(err.to_s)
529
531
  end
530
532
  @w_r.update = true
533
+ when 'z'
534
+ cmd = w_b_getstr("Command = ", "tar xfz #{@tagged.first}")
535
+ begin
536
+ w_b_exec(cmd + " 2>/dev/null")
537
+ rescue StandardError => err
538
+ w_b_info(err.to_s)
539
+ end
540
+ when 'Z'
541
+ arc = w_b_getstr("Archive name: ", "")
542
+ cmd = w_b_getstr("Command = ", "tar cfz #{arc}.gz #{@tagged.join(" ")}")
543
+ begin
544
+ w_b_exec(cmd + " 2>/dev/null")
545
+ rescue StandardError => err
546
+ w_b_info(err.to_s)
547
+ end
531
548
  # DIRECTORY VIEWS
532
549
  when 'a' # Show all items
533
550
  @lsall == "" ? @lsall = "-a" : @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.3.2
4
+ version: '2.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -47,8 +47,7 @@ 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)'
52
51
  email: g@isene.com
53
52
  executables:
54
53
  - rtfm