rtfm-filemanager 5.2 → 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +5 -10
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3f89f1d024d3c4866b12f358b84e8e28211ece6fd9976fd53263cb7dcb03ad6
4
- data.tar.gz: 448e0787d18c2f1d1d9e0bc6b064cfed3da3dc30e4e88a3950aab0d6d65b752c
3
+ metadata.gz: c5c4c96bdd6233e172010bbec5e5bd688577e4e3cf3f0b3a44afc09b525f5a5c
4
+ data.tar.gz: 126dcfae1c03069994cc07f1768869c7537d4378980faf94cba3685dcd9a3f38
5
5
  SHA512:
6
- metadata.gz: cd5c43847c963e812d58fb38b65d2f338a93761d4e403f403ed7c9ebcf77f319abfb9515d646745b1067dc729c60afcbfddde13324dfedbd7c1328100cdd5791
7
- data.tar.gz: 6c860d211baeeb6ee115874ff462e26b0cb68113baa644bf9507cd5466fa53bed564c50a1a05f463cbb6e3d1abed8212e676809e346f4dddff1b4e2eb1a89ae1
6
+ metadata.gz: 9b8d9078f3367359be3fd636743d1bcab0f55f39552c32f9aa2184a2af1549b5fcc65af229bf9c0919ec9bab51ca7ba4c9746ffac9aa75d2e6e403386c2f0de0
7
+ data.tar.gz: ec54070dccc42249f13c7c3bef21cc9032040e296ea9cd029f24019517ac938d322313b783e5bf22d72db00f8865ac144a23f04b3b5649c923fa012ee3d205ac
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 = '5.2' # Added git to interactive programs
21
+ @version = '5.3' # Simpler opening of Editor for text files
22
22
 
23
23
  # BOOTSNAP {{{1
24
24
  cache_dir = ENV.fetch('BOOTSNAP_CACHE_DIR', File.join(Dir.home, '.rtfm', 'bootsnap-cache'))
@@ -427,7 +427,7 @@ $stdin.set_encoding(Encoding::UTF_8)
427
427
  @border = 1 # Set initial border config; 0 = none, 1 = Right pane, 2 = both panes, 3 = Left pane
428
428
  @preview = true # Preview in the Right pane
429
429
  @trash = false # Delete files permanently rather than moving them to ~/.rtfm/trash
430
- @interactive = 'fzf,navi,top,htop,less,vi,vim,ncdu,sh,zsh,bash,fish,git'
430
+ @interactive = 'fzf,navi,top,htop,less,vi,vim,nvim,ncdu,sh,zsh,bash,fish,git'
431
431
  ### Not saved (but can be set in ~/.rtfm/conf)
432
432
  @topcolor = 249 # Default Top pane bg color
433
433
  @topmatch = [['', 249]] # Default Top pane bg color for matching directories
@@ -2073,16 +2073,11 @@ def open_selected(html = nil) # OPEN SELECTED ITEM (when pressing RIGHT or via o
2073
2073
  return
2074
2074
  end
2075
2075
  if File.read(@selected).force_encoding('UTF-8').valid_encoding? # Pure text
2076
- system("stty #{ORIG_STTY} < /dev/tty") # Restore terminal so $EDITOR can take over
2077
- system('clear < /dev/tty > /dev/tty') # Clear RTFM off the screen
2078
2076
  Cursor.show
2077
+ $stdin.raw!
2078
+ $stdin.echo = false
2079
2079
  editor = ENV.fetch('EDITOR', 'vi') # Launch $EDITOR on the real TTY
2080
- pid = Process.spawn(editor, Shellwords.escape(@selected),
2081
- in: '/dev/tty',
2082
- out: '/dev/tty',
2083
- err: '/dev/tty')
2084
- Process.wait(pid)
2085
- system('stty raw -echo isig < /dev/tty') # Re-enter raw/no-echo mode and hide cursor
2080
+ system("#{editor} #{Shellwords.escape(@selected)}")
2086
2081
  $stdin.raw!
2087
2082
  $stdin.echo = false
2088
2083
  Cursor.hide
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: '5.2'
4
+ version: '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: 2025-05-06 00:00:00.000000000 Z
11
+ date: 2025-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '7.4'
55
55
  description: |-
56
56
  Major release - RTFM v5: Complete rewrite using rcurses (https://github.com/isene/rcurses). Massive improvements. AI integration.
57
- A full featured terminal browser with syntax highlighted files, images shown in the terminal, videos thumbnailed, etc. 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. 5.2: Added git to interactive programs.
57
+ A full featured terminal browser with syntax highlighted files, images shown in the terminal, videos thumbnailed, etc. 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. 5.3: Simpler opening of Editor for text files.
58
58
  email: g@isene.com
59
59
  executables:
60
60
  - rtfm