rtfm-filemanager 1.5.4 → 1.5.8

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +5 -3
  3. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b429fe89ffca3ad31171312be68f9db1a1c43f821d8a8faa7624e805eab8a06d
4
- data.tar.gz: dba591810bea3426ee863f062cea05c7ed43c07fa83b7c5087d265b3f123aba3
3
+ metadata.gz: bb9c754c723123c8719d88c03d3f38b5cb21067713e816194eadf8ebe8448d35
4
+ data.tar.gz: 125cb3fd81f9ce6c0bf1d6113ccddb53a529d148581fc8ff63fced3b6bef7b0e
5
5
  SHA512:
6
- metadata.gz: 03d0872a3dd61f96f20f777ce8337b06ebef31d5d4fb99fd83bc51f38dec9689a862d7eadb66deefd931b5e348b26f5f0d335bd567965ce9922467be72e4a5ab
7
- data.tar.gz: 79fd8c6618c222c9365caf005a84a5363c635c8370634efa789efaa89a526603d55b8816e55a9eec80cc4fc172d669a0d8c3f84dc9537b2759570c5c88f2e5aa
6
+ metadata.gz: e86dbf15d58be6cc3a79eb2cfa961d383833b3acc65a83d31b39757f602aef20abf5badb0888e2e5ceac66d64867b8613101c201fae50d88cadf2342e295f16e
7
+ data.tar.gz: 27ab77e3511bf2b01f648b1522008f88d005f33ba52be6bf1e8e3aed9cf546d4cff4204b1889a707307f7b255893c1cb45fd5d75044bb836eac3b9c333ae8f87
data/bin/rtfm CHANGED
@@ -242,7 +242,7 @@ def getchr # PROCESS KEY PRESSES
242
242
  # Note: Curses.getch blanks out @w_t
243
243
  # @w_l.getch makes Curses::KEY_DOWN etc not work
244
244
  # Therefore resorting to the generic method
245
- c = STDIN.getch(min: 0, time: 5)
245
+ c = STDIN.getch(min: 0, time: 0.1)
246
246
  case c
247
247
  when "\e" # ANSI escape sequences
248
248
  case $stdin.getc
@@ -624,8 +624,7 @@ def main_getkey # GET KEY FROM USER
624
624
  @searched = w_b_getstr("/ ", "")
625
625
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
626
626
  m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
627
- i = m.find { |n| n > @index }
628
- @index = i if i > @index unless i == nil
627
+ @index = m[0] unless m == []
629
628
  @index = 0 if @searched == ""
630
629
  @w_r.update = true
631
630
  when 'n'
@@ -1307,6 +1306,9 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
1307
1306
  @w_b = Curses::Window.new(1, 0, maxy - 1, 0)
1308
1307
  @w_l = Curses::Window.new(maxy - 3, (maxx/@width) - 1, 2, 0)
1309
1308
  @w_r = Curses::Window.new(maxy - 4, maxx - (maxx/@width), 2, maxx/@width)
1309
+ @w_p = Curses::Window.new(1, maxx - (maxx/@width), maxy - 2, maxx/@width)
1310
+ @w_p.fg, @w_p.bg = 255, 0
1311
+ @w_p.refresh
1310
1312
  @w_t.fg, @w_t.bg = 232, 249
1311
1313
  @w_t.attr = Curses::A_BOLD
1312
1314
  @w_b.fg, @w_b.bg = 250, 238
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.5.4
4
+ version: 1.5.8
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-11-14 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -33,9 +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.5.0: Expanded ''/'' to jump to the first match and ''n''
37
- to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.4: Fixed
38
- command output error - now shown in raght pane.'
36
+ other features. New in 1.5.7: Made the application more responsive to window size
37
+ changes.'
39
38
  email: g@isene.com
40
39
  executables:
41
40
  - rtfm