rtfm-filemanager 1.5.1 → 1.5.2

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 +10 -2
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58e367b107dab960575d391b4daa4995f4e53d8b838b38888ce1aadfe1687ce7
4
- data.tar.gz: a224584539c2160613a7886f836cbf71619c5aaef5aae36b77685467446402ac
3
+ metadata.gz: 9066e032e441b73cfe80a04cf57a420a29d9788a08bf7afe435cee93541bc3a2
4
+ data.tar.gz: 63f612bdc9ac79c3d454062fd6cf62cc84fef17a1c4696c07822649ce4585ac5
5
5
  SHA512:
6
- metadata.gz: f9bb4987880cc5fef8d3fb12595e94cdb7ce215d4aa73b7dcf17290ace55da85317a8049a71db6099fbbc3b1e2e0b699a79b15a8aa676339e8de7699d0f783dd
7
- data.tar.gz: 31447f99d73dc8f039d6ea40231b1478045409d868adcbde6bc1149815c783fc51ed19b092c75bdbbb1997148f7f62751479ca694f0c218d630628ba964cc4c5
6
+ metadata.gz: d42ffd34be3aa710e1ba33d2b753541fd5df1f03d67e3bf91e05113137cf51164381592a0d5a9621146809d8ab1fc3c87d0126d7f35785632aa645b667b13500
7
+ data.tar.gz: d7670c8267def044cb1a5cc4c92e127513cf07aa77dda0d61c9622022ca154e5c0ec4fe3f23ddc1ca6ce8c7d071ac91a2d6b1b391c0cb9e47d8bff7b5f461959
data/bin/rtfm CHANGED
@@ -632,13 +632,21 @@ def main_getkey # GET KEY FROM USER
632
632
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
633
633
  m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
634
634
  i = m.find { |n| n > @index }
635
- @index = i unless i == nil
635
+ if i == nil
636
+ @index = m.first
637
+ else
638
+ @index = i
639
+ end
636
640
  @w_r.update = true
637
641
  when 'N'
638
642
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
639
643
  m = l.each_index.select{|n| l[n] =~ /#{@searched}/}.reverse
640
644
  i = m.find { |n| n < @index }
641
- @index = i unless i == nil
645
+ if i == nil
646
+ @index = m.first
647
+ else
648
+ @index = i
649
+ end
642
650
  @w_r.update = true
643
651
  when ':' # Enter "command mode" in the bottom window - tries to execute the given command
644
652
  @w_r.nohistory = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtfm-filemanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -35,7 +35,8 @@ description: 'A full featured terminal browser with syntax highlighted files, im
35
35
  easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
36
36
  other features. New in 1.5.0: Expanded ''/'' to jump to the first match and ''n''
37
37
  to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.1: Added
38
- ''N'' to jump to the previous matched item by ''/'''
38
+ ''N'' to jump to the previous matched item by ''/''. New in 1.5.2: Added wrap-around
39
+ for ''n'' and ''N'''
39
40
  email: g@isene.com
40
41
  executables:
41
42
  - rtfm