rtfm-filemanager 3.17.1 → 3.21
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 +40 -9
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96b0499ea2e30e6a11cb9812c40d4d7d7f976f8d6a6dbdafa5cb1f94050605be
|
4
|
+
data.tar.gz: 35d2855b64c68e023bd43e0ece6660a152d4cba9f65a36d7a5d0c760a44a5f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc749fd74294f80e47c830a910ae34a9185e6aebb4edbecf22c5f17d3deddc6a49c061e85e1173b9915fd25a84c49f34606f037a01143d50e1387c3de7d9a210
|
7
|
+
data.tar.gz: 34fba10ce85407bdf230c14ce6d7d0cd23dc7f3e1a38f4889d024dae5c540983b6329f519373efd5fb41a6c42caa75a01cf7a21b75fb8b2ec7b838028ba7e8e0
|
data/bin/rtfm
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "3.
|
17
|
+
@version = "3.21"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -143,9 +143,38 @@ def firstrun
|
|
143
143
|
|
144
144
|
FIRSTRUN
|
145
145
|
|
146
|
-
|
147
|
-
|
148
|
-
|
146
|
+
@shell = File.basename(`echo "$SHELL"`.chomp)
|
147
|
+
if @shell == "fish"
|
148
|
+
if not File.exist?(Dir.home+'/.config/fish/config.fish')
|
149
|
+
@rtfmlaunch = <<RTFMFISHLAUNCH
|
150
|
+
# This is the RTFM launcher (https://github.com/isene/RTFM) for fish
|
151
|
+
function r {
|
152
|
+
f=$(mktemp)
|
153
|
+
(
|
154
|
+
set +e
|
155
|
+
rtfm "$f"
|
156
|
+
code=$?
|
157
|
+
if [ "$code" != 0 ]; then
|
158
|
+
rm -f "$f"
|
159
|
+
exit "$code"
|
160
|
+
fi
|
161
|
+
)
|
162
|
+
code=$?
|
163
|
+
if [ "$code" != 0 ]; then
|
164
|
+
return "$code"
|
165
|
+
fi
|
166
|
+
d=$(<"$f")
|
167
|
+
rm -f "$f"
|
168
|
+
cd "$d"
|
169
|
+
}
|
170
|
+
RTFMFISHLAUNCH
|
171
|
+
File.write(Dir.home+'/.config/fish/config.fish', @rtfmlaunch)
|
172
|
+
`echo "source ~/.config/fish/config.fish" >> .#{@shell}rc`
|
173
|
+
end
|
174
|
+
else
|
175
|
+
if not File.exist?(Dir.home+'/.rtfm.launch')
|
176
|
+
@rtfmlaunch = <<RTFMLAUNCH
|
177
|
+
# This is the RTFM launcher (https://github.com/isene/RTFM) for bash/zsh
|
149
178
|
function r {
|
150
179
|
f=$(mktemp)
|
151
180
|
(
|
@@ -166,9 +195,9 @@ function r {
|
|
166
195
|
cd "$d"
|
167
196
|
}
|
168
197
|
RTFMLAUNCH
|
169
|
-
|
170
|
-
|
171
|
-
|
198
|
+
File.write(Dir.home+'/.rtfm.launch', @rtfmlaunch)
|
199
|
+
`echo "source ~/.rtfm.launch" >> .#{@shell}rc`
|
200
|
+
end
|
172
201
|
end
|
173
202
|
|
174
203
|
puts @firstrun
|
@@ -1112,9 +1141,11 @@ def open_selected(html = nil) # OPEN SELECTED ITEM (when pressing RIGHT)
|
|
1112
1141
|
system("exec $EDITOR #{@selected_safe}")
|
1113
1142
|
else
|
1114
1143
|
if @runmailcap
|
1115
|
-
Thread.new { system("run-mailcap #{@selected_safe} 2>/dev/null") }
|
1144
|
+
#Thread.new { system("run-mailcap #{@selected_safe} 2>/dev/null") }
|
1145
|
+
system("run-mailcap #{@selected_safe} 2>/dev/null")
|
1116
1146
|
else
|
1117
|
-
Thread.new { system("xdg-open #{@selected_safe} 2>/dev/null") }
|
1147
|
+
#Thread.new { system("xdg-open #{@selected_safe} 2>/dev/null") }
|
1148
|
+
system("xdg-open #{@selected_safe} 2>/dev/null")
|
1118
1149
|
end
|
1119
1150
|
end
|
1120
1151
|
@break = true
|
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: 3.
|
4
|
+
version: '3.21'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -47,8 +47,7 @@ dependencies:
|
|
47
47
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
50
|
-
other features. New in 3.
|
51
|
-
rtfm without the launcher ''r''. 3.17.1: Better fix to character input quirk.'
|
50
|
+
other features. New in 3.21: Fixed bug related to ''x'''
|
52
51
|
email: g@isene.com
|
53
52
|
executables:
|
54
53
|
- rtfm
|