rtfm-filemanager 6.0.7 → 6.0.9

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +9 -25
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88ef15c96d6cd2e481ea3d0741da517dc256f7790673769457c9b78686721391
4
- data.tar.gz: c1db40c673a60aa766fb3a79623e7ac912f0cf6898798db4d6731029cde8c7bb
3
+ metadata.gz: 3ab0c62999b31e35023b07ee5d03f4d76902f7cc0c6eda5787c45a90fd479b9a
4
+ data.tar.gz: 63bcd01728eeb40c448370b25396fbd6f081e6e8923117e8a6e1d944cf3528b0
5
5
  SHA512:
6
- metadata.gz: 7dd8b024cc288a1cb6b8fe2119dfaff80e657e16cbe34c0a0c3418943854f9a3bc9d2539031ab21b4fa1219a96fbd84e41bd24a1dff2eefd1db1b1504480e138
7
- data.tar.gz: d4da7c1a24813ae78d768369e83decd456c4bde4e2b711d3b476bbbfd168db1e58632834a0db905bda1041cd44e63a6b8c3465b3758ae7620953dfea6e09000d
6
+ metadata.gz: 9fbab9227b727d0de460099d65b94de1c285b4f8a085ee8e98d4b55125e720c62d54c49e830e82d061d7192c0e927e61347f343b95951e0fedd8581ad0129ca2
7
+ data.tar.gz: f7f412f3fa7b6586fa942e7ca63e3620e09d2ab254d2dcbf8ea9ee5bd7805502c94db6f6bd009836c73a330d773bbca3d5123d24f32c07ce61315c57e4b24219
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 = '6.0.7' # Fixed preview update after deletion + enhanced System Info with visual indicators
21
+ @version = '6.0.9' # Fixed timeout issue for GUI applications launched via command mode
22
22
 
23
23
  # SAVE & STORE TERMINAL {{{1
24
24
  ORIG_STTY = `stty -g`.chomp
@@ -86,7 +86,7 @@ autoload :OpenAI, 'ruby/openai'
86
86
  autoload :Tempfile, 'tempfile'
87
87
 
88
88
  # FIX TERMINAL MESSAGE BLEED-THROUGH {{{1
89
- LOG_PATH = File.join(Dir.tmpdir, 'rtfm.log')
89
+ LOG_PATH = File.join(Dir.tmpdir, "rtfm_#{ENV['USER'] || Process.uid}.log")
90
90
  MAX_LOG_SIZE = 128 * 1024
91
91
  if File.exist?(LOG_PATH) && File.size(LOG_PATH) > MAX_LOG_SIZE
92
92
  # keep just the last MAX_LOG_SIZE bytes
@@ -4019,28 +4019,6 @@ def system_info # {{{3
4019
4019
  rescue # rubocop:disable Lint/SuppressedException
4020
4020
  end
4021
4021
 
4022
- # Footer with system load average
4023
- begin
4024
- text << "─" * 50 + "\n"
4025
-
4026
- # Get load average values
4027
- loadavg = File.read("/proc/loadavg").split[0..2].map(&:to_f) rescue [0, 0, 0]
4028
- cpu_count = `nproc 2>/dev/null`.chomp.to_i
4029
- cpu_count = 1 if cpu_count == 0
4030
-
4031
- # Format load values with color coding
4032
- load_values = loadavg.map do |load|
4033
- percent = (load / cpu_count * 100).round
4034
- color = percent > 100 ? 196 : percent > 80 ? 220 : 156
4035
- load.round(2).to_s.fg(color)
4036
- end
4037
-
4038
- text << "Load Average: " + load_values.join(" ") + " (1m 5m 15m)\n"
4039
- text << "Updated: #{Time.now.strftime('%H:%M:%S')}".fg(240) + " - Press 'ENTER' to return".fg(249)
4040
- rescue
4041
- # Skip footer if error
4042
- end
4043
-
4044
4022
  @pR.say(text)
4045
4023
  rescue => e
4046
4024
  @pR.say("Unable to show system info\n#{e.message}".fg(196))
@@ -4140,7 +4118,13 @@ def command_mode # {{{3
4140
4118
  refresh
4141
4119
  render
4142
4120
  else
4143
- shellexec(cmd)
4121
+ # Check if it's a GUI application that should run without timeout
4122
+ gui_apps = ['evince', 'xdg-open', 'firefox', 'chrome', 'chromium', 'eog', 'nautilus', 'thunar', 'gedit', 'code', 'subl']
4123
+ prog_base = File.basename(prog.to_s)
4124
+ is_gui = gui_apps.include?(prog_base)
4125
+
4126
+ # Use nil timeout (wait forever) for GUI apps, 10 seconds for others
4127
+ shellexec(cmd, timeout: is_gui ? nil : 10)
4144
4128
  @pR.refresh
4145
4129
  @pR.update = false
4146
4130
  end
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: 6.0.7
4
+ version: 6.0.9
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-07-21 00:00:00.000000000 Z
11
+ date: 2025-07-23 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 v6.0.7: Fixed preview updates after file deletion and significantly enhanced System Info display with visual indicators, environment details, and service monitoring.
56
+ RTFM v6.0.9: Fixed timeout issue for GUI applications launched via command mode (e.g., evince, xdg-open).
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: