rtfm-filemanager 7.4.3 → 7.4.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/bin/rtfm +22 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dedec26a74a7588dd2702c5e021d310b3a0f75c04aa0f9d6fe77b1faa3cd8d94
4
- data.tar.gz: 55c68915ea8ecac08e7e9569efb0c2372a14b6b15eb20f780027384ba75aef38
3
+ metadata.gz: 440ceb07d691f73f54c697705ba7fbf12a9b99dadef6ca8d0000c55a4b700388
4
+ data.tar.gz: b3f74a7003436a6da9ecc72ba4372d67a148635d79e1444695e4af91e91a60c2
5
5
  SHA512:
6
- metadata.gz: 79bb1f74a96e280a4170048d3dfc8c61f4cd523c313699eeec59187dddbe070cac6612244ea5ca898d8062ea9aa09e9125853592d223210b5dcc556b2fb79eee
7
- data.tar.gz: aca0a8cdf19728ce003e8065a15339afd9bfe5e9dcfa87c789ceea9225c27ba72f1c824bf8d34d611c9ea06926b6986903e0f363b9f9f901e4d91e21d47832a4
6
+ metadata.gz: e39e16a338f15eb3f226990c011273060396fb2a2fa6a60844a8c993e3ed032e98951d0e5e7d2f90ea939193928953a9a9950b53dbfe5b15ee7d87c264c531f8
7
+ data.tar.gz: 7955536ab5b28817ca0eb41a8ce6a86b0671037346f3bdd8c003cbbb819c4ec15de41c57b6a1dadf5383a39c722d2218995bcce11fa6f00c3b831f106157ea16
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to RTFM will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [7.4.4] - 2026-01-09
9
+
10
+ ### Fixed
11
+ - **Extract command ('z') improvements** - Fixed two issues with archive extraction:
12
+ - Now uses current file when nothing is tagged (was empty command before)
13
+ - Auto-detects archive type and suggests correct command:
14
+ - `.zip` → `unzip`
15
+ - `.rar` → `unrar x`
16
+ - `.7z` → `7z x`
17
+ - `.tar.bz2`/`.tbz2` → `tar xfj`
18
+ - `.tar.xz`/`.txz` → `tar xfJ`
19
+ - `.tar.zst` → `tar --zstd -xf`
20
+ - Others → `tar xfz`
21
+
8
22
  ## [7.4.3] - 2025-12-09
9
23
 
10
24
  ### Fixed
data/bin/rtfm CHANGED
@@ -18,7 +18,7 @@
18
18
  # get a great understanding of the code itself by simply sending
19
19
  # or pasting this whole file into you favorite AI for coding with
20
20
  # a prompt like this: "Help me understand every part of this code".
21
- @version = '7.4.3' # Fix docx preview corrupting left pane display by filtering carriage returns
21
+ @version = '7.4.4' # Fix 'z' command to use current file when nothing tagged and detect archive type
22
22
 
23
23
  # SAVE & STORE TERMINAL {{{1
24
24
  ORIG_STTY = `stty -g`.chomp
@@ -3645,9 +3645,27 @@ end
3645
3645
 
3646
3646
  # ARCHIVES {{{2
3647
3647
  def unzip_items # {{{3
3648
- first = @tagged.first
3649
- tar = Shellwords.escape(first)
3650
- cmd = @pCmd.ask('Command: ', "tar xfz #{tar}")
3648
+ first = @tagged.empty? ? @selected : @tagged.first
3649
+ return unless first
3650
+ escaped = Shellwords.escape(first)
3651
+ # Detect archive type and suggest appropriate command
3652
+ default_cmd = case first.downcase
3653
+ when /\.zip$/
3654
+ "unzip #{escaped}"
3655
+ when /\.rar$/
3656
+ "unrar x #{escaped}"
3657
+ when /\.7z$/
3658
+ "7z x #{escaped}"
3659
+ when /\.tar\.bz2$|\.tbz2?$/
3660
+ "tar xfj #{escaped}"
3661
+ when /\.tar\.xz$|\.txz$/
3662
+ "tar xfJ #{escaped}"
3663
+ when /\.tar\.zst$/
3664
+ "tar --zstd -xf #{escaped}"
3665
+ else
3666
+ "tar xfz #{escaped}"
3667
+ end
3668
+ cmd = @pCmd.ask('Command: ', default_cmd)
3651
3669
  # Reset bottom pane after command input
3652
3670
  @pB.clear; @pB.update = true
3653
3671
  shellexec(cmd) unless cmd.nil? || cmd.strip.empty?
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: 7.4.3
4
+ version: 7.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-09 00:00:00.000000000 Z
11
+ date: 2026-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '7.4'
69
69
  description: |-
70
- RTFM v7.4.3: Fixed display corruption when viewing .docx files by filtering carriage returns from docx2txt output.
70
+ RTFM v7.4.4: Fixed 'z' (extract) command to use current file when nothing tagged and auto-detect archive type (zip, rar, 7z, tar.bz2, tar.xz, tar.zst).
71
71
  A full featured terminal browser with syntax highlighted files, images shown in the terminal, videos thumbnailed, etc. Features include remote SSH/SFTP browsing, interactive SSH shell, comprehensive undo system, bookmarks, and much more. You can bookmark and jump around easily, delete, rename, copy, symlink and move files. RTFM is one of the most feature-packed terminal file managers.
72
72
  email: g@isene.com
73
73
  executables: