rtfm-filemanager 1.3.2 → 1.3.3

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 +13 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f00fb3e8369b16527d5a703a0f41847f78e8dbf2965e350dce6c1e6b9b728a60
4
- data.tar.gz: edd96c6dfba0f59aec85c7538493da98856e5829d4dece00b8617ef9671370b5
3
+ metadata.gz: 7b542c242216ef7d3d496e7250d907a34f63579dc916a25b51421e7d2c88b691
4
+ data.tar.gz: d6b9f31b5dcd57fb6bb134511b8312576e1cfc7e2d2957966d2bc36ed6e157b8
5
5
  SHA512:
6
- metadata.gz: b0679919584e4b30017c05856d42581ab3d4cf10918d95a3a90e97de3291771112c6e8e071353676e6952f4d41d528af293e34ac449f95ed9410d8266b9aeceb
7
- data.tar.gz: 11ccfce45876fcd48cfae4c2ec4f86c3bf198fea6c59f881052a2b412f3dcb31580e4fe1eca32e289faf448c86ea08f48cc352fd64361ef4dd3ce71270f4b26d
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
- @w_r.update = true if dir != Dir.pwd
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
- File.write(ARGV[0], Dir.pwd) if ARGV[0] and ARGV[0].match(/\/tmp\/tmp/)
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.2
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-21 00:00:00.000000000 Z
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.1: Added ls invert order (@lsinvert) to be written to
37
- .rtfm.conf via the W key.'
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