rtfm-filemanager 7.5.1 → 7.5.3
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/CHANGELOG.md +13 -0
- data/bin/rtfm +11 -2
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f84cfccbb3a04522cc1a19576aed3b50c60e227c48da2b73175b3dee97d7b2b
|
|
4
|
+
data.tar.gz: 6f685fe49feabb0ec1f38f23931c73acfe9c3c158b167d5040c51b8178eb451c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d43a5d7abe90ef9247d4dd7d07f017de4c4263f899e3cd97f0cea3680ed7a1ff2936cb6082727e6ee86d1535307e06007248a128717eb58edafc1fd676407896
|
|
7
|
+
data.tar.gz: 6f3f84094cee0a897ebc3819a63e3925a7d0e52b33491e1667d88c0e2617286088aa21bd6af360afee1d28a3924b519372c26d144ef6d722f83d7e9afcd46020
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.3] - 2026-03-05
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Stale display on external file removal** - When another program deletes the currently selected file, RTFM now detects this and refreshes all panes within ~1 second
|
|
12
|
+
|
|
13
|
+
## [7.5.2] - 2026-01-23
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- **Office files opening in editor** - Fixed .pptx, .docx, .xlsx and other Office formats incorrectly opening in vim/editor instead of xdg-open
|
|
17
|
+
- These files are ZIP archives that could pass the UTF-8 text detection
|
|
18
|
+
- Now explicitly excludes Office formats and other binary files from text detection
|
|
19
|
+
- Affected formats: pdf, docx, doc, xlsx, xls, pptx, ppt, odt, ods, odp, zip, tar, gz, etc.
|
|
20
|
+
|
|
8
21
|
## [7.5.0] - 2026-01-16
|
|
9
22
|
|
|
10
23
|
### Added
|
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.5.
|
|
21
|
+
@version = '7.5.3' # Fix stale display on external file removal
|
|
22
22
|
|
|
23
23
|
# SAVE & STORE TERMINAL {{{1
|
|
24
24
|
ORIG_STTY = `stty -g`.chomp
|
|
@@ -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
|
-
|
|
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
|
|
@@ -5974,6 +5976,13 @@ loop do
|
|
|
5974
5976
|
rescue
|
|
5975
5977
|
Dir.chdir
|
|
5976
5978
|
end
|
|
5979
|
+
# If selected file was removed externally, force pane refresh
|
|
5980
|
+
if @selected && !File.exist?(@selected)
|
|
5981
|
+
@dir_cache.delete_if { |key, _| key.start_with?("#{Dir.pwd}:") }
|
|
5982
|
+
@index = [@index, (@files.size - 2)].min
|
|
5983
|
+
@index = 0 if @index.negative?
|
|
5984
|
+
@pL.update = @pR.update = @pT.update = true
|
|
5985
|
+
end
|
|
5977
5986
|
# restore index if we cd'd
|
|
5978
5987
|
if Dir.pwd != @dir_old
|
|
5979
5988
|
@index = @directory[Dir.pwd] || 0
|
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.
|
|
4
|
+
version: 7.5.3
|
|
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-
|
|
11
|
+
date: 2026-03-05 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.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
description: 'RTFM v7.5.3: Fix stale display when selected file removed externally.
|
|
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
|