rtfm-filemanager 3.17.1 → 3.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +36 -7
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baea05f89ed01da793a84c88aa6ee8128fad9e1665a31cc2fe5006c5e0eb2b0a
4
- data.tar.gz: 8548de7f5e2ea4ce8ddc8e3e39504b318e530e6644a9fde897e0e6aa17df253a
3
+ metadata.gz: 8f22769d80371a16fd03a6810a49d37cc0fab97250be947e983ce4f617dccf8f
4
+ data.tar.gz: 3a08da56b08a2e34b5f9b0fb6d629b0808b2e8c5ec8175ba770a609a452bec4e
5
5
  SHA512:
6
- metadata.gz: f7cef4ec89450186fba8d34b8b9432e269c5614529f3274959653a3fec91918f9d2a45d22fb013eb31b5ef26fae8f6e3008bb4f61ea8d0fb172112b662875a9e
7
- data.tar.gz: db812461efb11394f9ca3ed78b1354ffc3aeba5c9a3721dff9a61366f29c1142ef86a73b3e187b175e77ddc7a9047b7fe66385ae0829e59256ef102ed1ee290c
6
+ metadata.gz: 555070d815f6dd2c62f1c41e18dadb5a624bdf82dfa124d03cf51b2c275302c92c14ebe4931ddf101b2d5b4cd21cb5a28f68e08cabf97c57634e9dcb10ac8473
7
+ data.tar.gz: 33256ae65fc9b2437dda6fc503c490976ebc3d6744aea3c1cdf4977c2067e9d8d8d3c4228572eb958357f5463d0a18d283068f58c9f6d5264e4fedfa4d7feb92
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.1"
17
+ @version = "3.20"
18
18
 
19
19
  # PRELIMINARIES
20
20
  @help = <<HELPTEXT
@@ -143,9 +143,38 @@ def firstrun
143
143
 
144
144
  FIRSTRUN
145
145
 
146
- if not File.exist?(Dir.home+'/.rtfm.launch')
147
- @rtfmlaunch = <<RTFMLAUNCH
148
- # This is the RTFM launcher (https://github.com/isene/RTFM)
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
- File.write(Dir.home+'/.rtfm.launch', @rtfmlaunch)
170
- @shell = File.basename(`echo "$SHELL"`.chomp)
171
- `echo "source ~/.rtfm.launch" >> .#{@shell}rc`
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
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.17.1
4
+ version: '3.20'
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-09-17 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -48,7 +48,7 @@ description: 'A full featured terminal browser with syntax highlighted files, im
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
50
  other features. New in 3.14: Better error handling. 3.14.1: Fixed bug in launching
51
- rtfm without the launcher ''r''. 3.17.1: Better fix to character input quirk.'
51
+ rtfm without the launcher ''r''. 3.20: Added launcher for the fish shell.'
52
52
  email: g@isene.com
53
53
  executables:
54
54
  - rtfm