rtfm-filemanager 7.1.1 → 7.1.2
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 +13 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 352dbe60c0ad1334df752f43f9bd00acb2cce8579d6eb9ec4b593c95ce8bc174
|
4
|
+
data.tar.gz: e0ab2516386ab2e9985245058620a85123df74381f7ca80cdde683b2ad512cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce3b7c9074e7be2e14a3f6d5d78dddbb7357126031e2eae216c0a4d81a4897cce21aab658d20e91138e6febd33f9e2ee4b51a720adb967c82d43a93e23f1fce
|
7
|
+
data.tar.gz: d82b55e69211cbfe6a4c69bd5b80e4e2885102642346462174625022b3aa86b5cddc11ae1eb4a2f004f83178c08a6fbd9f27fa66cc10b803c489bc8e79f5e8a0
|
data/bin/rtfm
CHANGED
@@ -5369,7 +5369,7 @@ def showcontent # SHOW CONTENTS IN THE RIGHT WINDOW {{{2
|
|
5369
5369
|
.gsub(/&#(\d+);/, '&#\1;')
|
5370
5370
|
.gsub(/&#x([0-9a-fA-F]+);/, '&#x\1;')
|
5371
5371
|
File.write(temp_svg, fixed_content)
|
5372
|
-
|
5372
|
+
|
5373
5373
|
if system("convert #{Shellwords.escape(temp_svg)} #{Shellwords.escape(tn)} 2>/dev/null")
|
5374
5374
|
showimage(tn)
|
5375
5375
|
@image = true
|
@@ -5404,9 +5404,19 @@ def showcontent # SHOW CONTENTS IN THE RIGHT WINDOW {{{2
|
|
5404
5404
|
showimage(tn)
|
5405
5405
|
@image = true
|
5406
5406
|
else
|
5407
|
-
|
5407
|
+
# Check if file is text using the `file` command
|
5408
|
+
file_type = `file --mime-type -b #{Shellwords.escape(@selected)} 2>/dev/null`.strip
|
5409
|
+
if file_type.start_with?('text/') || file_type == 'application/x-empty'
|
5410
|
+
# It's a text file - fall through to text preview below
|
5411
|
+
else
|
5412
|
+
@pR.say("No preview available for #{@selected}")
|
5413
|
+
return # Exit early to avoid text preview attempt
|
5414
|
+
end
|
5408
5415
|
end
|
5409
|
-
|
5416
|
+
end
|
5417
|
+
|
5418
|
+
# Fallback: treat as text if no handler matched
|
5419
|
+
unless tmpl || pattern
|
5410
5420
|
# Don't try to preview PDFs as text - they contain binary data
|
5411
5421
|
if @selected&.match(@pdffile)
|
5412
5422
|
@pR.say("No preview available for #{@selected}")
|
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.1.
|
4
|
+
version: 7.1.2
|
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-10-
|
11
|
+
date: 2025-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rcurses
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '7.4'
|
55
55
|
description: |-
|
56
|
-
RTFM v7.1.
|
56
|
+
RTFM v7.1.2: Fixed text file preview for all text-encoded files - now uses `file` command MIME type detection to properly display text files with any extension.
|
57
57
|
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.
|
58
58
|
email: g@isene.com
|
59
59
|
executables:
|