rtfm-filemanager 7.5.1 → 7.5.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/bin/rtfm +3 -1
  4. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f98e75fb0ba6482b8b839db46bcd74381375ab854a91de333d103a3b7175d81
4
- data.tar.gz: cf00e98887510b3b4ac748c37589efc3749296b68cdf07c7ddba77dd5b204b09
3
+ metadata.gz: 4452b026d4295c2b34b7e452c57f21841bf508512d3932668471efa055db866f
4
+ data.tar.gz: 59c8528133f3a344f4e827618e962d2a67929e82677acaca9f5683e4cadf7ef7
5
5
  SHA512:
6
- metadata.gz: 548b1a9cfec44ce82fb1bc6c836cd64ec3fec7259d96c08d8d928352b461af794fd261fce2a72b9c588416103f6b5989e0dfa8e0c3e3e611935dc8475bc71861
7
- data.tar.gz: 998686f7cd4ed8eeb1ada366f9cd5723cf53952dfc3f67d4dc3467f1dba416c73d2af407459ead3ba946ad2cf4aa1e9103e70ccb1bb59c318a9ad05c619e8926
6
+ metadata.gz: 135c9f65de9a41cb56ff554fe5e96eefd694106b6b861c06d60082be448b83a7a812bf862d41a451e41f6edbad1eef83842fef8247f27e37a6938d3fb9187d67
7
+ data.tar.gz: d8c7ff533581bf970133e89e883c59f385e1c4bd844e49d658bd9c53090052e3a3dd7044f31931e56d35caee77501d848724e364e96aea96e55293cdae061c32
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ 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.5.2] - 2026-01-23
9
+
10
+ ### Fixed
11
+ - **Office files opening in editor** - Fixed .pptx, .docx, .xlsx and other Office formats incorrectly opening in vim/editor instead of xdg-open
12
+ - These files are ZIP archives that could pass the UTF-8 text detection
13
+ - Now explicitly excludes Office formats and other binary files from text detection
14
+ - Affected formats: pdf, docx, doc, xlsx, xls, pptx, ppt, odt, ods, odp, zip, tar, gz, etc.
15
+
8
16
  ## [7.5.0] - 2026-01-16
9
17
 
10
18
  ### Added
data/bin/rtfm CHANGED
@@ -5383,8 +5383,10 @@ def open_selected(html = nil) # OPEN SELECTED FILE {{{2
5383
5383
  return
5384
5384
  end
5385
5385
  # Check if file is text (UTF-8, UTF-16, or other text encodings)
5386
+ # Exclude binary formats: PDF, Office files (which are ZIP archives)
5386
5387
  is_text_file = false
5387
- if !@selected&.match(@pdffile) && File.size(@selected) < 1_000_000
5388
+ binary_formats = /\.(pdf|docx?|xlsx?|pptx?|odt|ods|odp|zip|tar|gz|bz2|xz|7z|rar|jar|war|ear|apk|epub)$/i
5389
+ if !@selected&.match(binary_formats) && File.size(@selected) < 1_000_000
5388
5390
  sample = File.read(@selected, 1024) rescue nil
5389
5391
  if sample
5390
5392
  # Try UTF-8 first
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.5.1
4
+ version: 7.5.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: 2026-01-16 00:00:00.000000000 Z
11
+ date: 2026-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -66,12 +66,12 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '7.4'
69
- description: 'RTFM v7.5.1: WezTerm support with Kitty graphics protocol, improved
70
- top pane styling. A full featured terminal browser with syntax highlighted files,
71
- images shown in the terminal, videos thumbnailed, etc. Features include remote SSH/SFTP
72
- browsing, interactive SSH shell, comprehensive undo system, bookmarks, and much
73
- more. You can bookmark and jump around easily, delete, rename, copy, symlink and
74
- move files. RTFM is one of the most feature-packed terminal file managers.'
69
+ description: 'RTFM v7.5.2: Fix for Office files opening in editor instead of xdg-open.
70
+ A full featured terminal browser with syntax highlighted files, images shown in
71
+ the terminal, videos thumbnailed, etc. Features include remote SSH/SFTP browsing,
72
+ interactive SSH shell, comprehensive undo system, bookmarks, and much more. You
73
+ can bookmark and jump around easily, delete, rename, copy, symlink and move files.
74
+ RTFM is one of the most feature-packed terminal file managers.'
75
75
  email: g@isene.com
76
76
  executables:
77
77
  - rtfm