rtfm-filemanager 5.5 → 5.6
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 +11 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f544a2581e939a651b9c5f7532960fb057dc449a4a549acbec646576845c71e5
|
4
|
+
data.tar.gz: 0c27c90a8b5ad28e804e15dc810837f783b37872ae1e6c45e399cf2e16b61b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee6716978969d8a704647962322786f4a1fb703504600febdcf6c4dedb2c77801b9e1819b76eb5e8aa8f6d9491b6236ae14027a1112c755fa9764fcecd91e00
|
7
|
+
data.tar.gz: 69f326117d1d528a36175bf16e93e79db20018bbafe784167b24058239699680c63079bb253f6979ce938b165f6c1e9de16ccd2fe6d4060463d9521e2c8a4b4c
|
data/bin/rtfm
CHANGED
@@ -18,7 +18,14 @@
|
|
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.
|
21
|
+
@version = '5.6' # Fixed bug with special characters in terminal after EDITOR exit
|
22
|
+
|
23
|
+
# SAVE & STORE TERMINAL {{{1
|
24
|
+
ORIG_STTY = `stty -g`.chomp
|
25
|
+
|
26
|
+
at_exit do
|
27
|
+
system("stty #{ORIG_STTY} < /dev/tty") rescue nil
|
28
|
+
end
|
22
29
|
|
23
30
|
# BOOTSNAP {{{1
|
24
31
|
cache_dir = ENV.fetch('BOOTSNAP_CACHE_DIR', File.join(Dir.home, '.rtfm', 'bootsnap-cache'))
|
@@ -105,9 +112,6 @@ KEYS_FILE = File.join(RTFM_HOME, 'keys.rb') unless defined?(KEYS_FILE)
|
|
105
112
|
CONFIG_FILE = File.join(RTFM_HOME, 'conf')
|
106
113
|
@plugin_errors = []
|
107
114
|
|
108
|
-
# SAVE TERMINAL {{{1
|
109
|
-
ORIG_STTY = `stty -g`.chomp
|
110
|
-
|
111
115
|
# HELP {{{1
|
112
116
|
@help = <<~HELPTEXT
|
113
117
|
RTFM - Ruby Terminal File Manager (https://github.com/isene/RTFM)
|
@@ -2071,9 +2075,10 @@ def open_selected(html = nil) # OPEN SELECTED ITEM (when pressing RIGHT or via o
|
|
2071
2075
|
return
|
2072
2076
|
end
|
2073
2077
|
if File.read(@selected).force_encoding('UTF-8').valid_encoding? # Pure text
|
2078
|
+
system("stty #{ORIG_STTY} < /dev/tty")
|
2079
|
+
# Clear to top-left
|
2080
|
+
system('clear < /dev/tty > /dev/tty')
|
2074
2081
|
Cursor.show
|
2075
|
-
$stdin.raw!
|
2076
|
-
$stdin.echo = false
|
2077
2082
|
editor = ENV.fetch('EDITOR', 'vi') # Launch $EDITOR on the real TTY
|
2078
2083
|
system("#{editor} #{Shellwords.escape(@selected)}")
|
2079
2084
|
$stdin.raw!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '5.
|
4
|
+
version: '5.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
@@ -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.
|
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.6: Fixed bug with special characters in terminal after EDITOR exit.
|
58
58
|
email: g@isene.com
|
59
59
|
executables:
|
60
60
|
- rtfm
|