rtfm-filemanager 1.3.2 → 1.3.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.
- checksums.yaml +4 -4
- data/bin/rtfm +13 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b542c242216ef7d3d496e7250d907a34f63579dc916a25b51421e7d2c88b691
|
4
|
+
data.tar.gz: d6b9f31b5dcd57fb6bb134511b8312576e1cfc7e2d2957966d2bc36ed6e157b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbe11dbc46f5b022d019f1351d8249a05ffd98f7b324d044cab28aa65c2e694ea39be93380e77ee819d8af3db3c746368c35acbe9af38726d5d499f498a5f385
|
7
|
+
data.tar.gz: 2fa548bb0711d7593708c376ab498d1e7eb406b0d93ef19b0127f4beae55042fc1bfa697b9d361d28629908bbcf7c04dbb79409b580cc2a8588fdb14ef51815a
|
data/bin/rtfm
CHANGED
@@ -626,7 +626,10 @@ def main_getkey # GET KEY FROM USER
|
|
626
626
|
@w_r.pager = 0
|
627
627
|
@w_r.pager_more = false
|
628
628
|
end
|
629
|
-
|
629
|
+
begin
|
630
|
+
@w_r.update = true if dir != Dir.pwd
|
631
|
+
rescue
|
632
|
+
end
|
630
633
|
end
|
631
634
|
def conf_write
|
632
635
|
if File.exist?(Dir.home+'/.rtfm.conf')
|
@@ -1227,6 +1230,11 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1227
1230
|
@w_r.update = false
|
1228
1231
|
end
|
1229
1232
|
loop do # INNER, CORE LOOP
|
1233
|
+
begin # Jump to home dir if current dir is externally removed
|
1234
|
+
Dir.pwd
|
1235
|
+
rescue
|
1236
|
+
Dir.chdir
|
1237
|
+
end
|
1230
1238
|
system("printf \"\033]0;RTFM: #{Dir.pwd}\007\"") # Set Window title to path
|
1231
1239
|
ls_cmd = "ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}" # Get files in current directory
|
1232
1240
|
@files = `#{ls_cmd} 2>/dev/null`.split("\n")
|
@@ -1278,7 +1286,10 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
|
|
1278
1286
|
image_show("clear")
|
1279
1287
|
close_screen
|
1280
1288
|
# If launched via the script "r", return current dir and "r" will cd to that
|
1281
|
-
|
1289
|
+
begin
|
1290
|
+
File.write(ARGV[0], Dir.pwd) if ARGV[0] and ARGV[0].match(/\/tmp\/tmp/)
|
1291
|
+
rescue
|
1292
|
+
end
|
1282
1293
|
end
|
1283
1294
|
end
|
1284
1295
|
|
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: 1.3.
|
4
|
+
version: 1.3.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: 2021-10-
|
11
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,8 +33,8 @@ dependencies:
|
|
33
33
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
34
34
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
35
35
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
36
|
-
other features. New in 1.3.
|
37
|
-
|
36
|
+
other features. New in 1.3.3: Fixed rtfm crashing when the current directory is
|
37
|
+
externally removed'
|
38
38
|
email: g@isene.com
|
39
39
|
executables:
|
40
40
|
- rtfm
|