rtfm-filemanager 1.3.11 → 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 +29 -2
  3. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a4491169a82080e604a5d903e107f3f544ac70355ccac0e70090779704136df
4
- data.tar.gz: b7ae5ca815031c325eaf566e85bbd0ab53436b70e33390cad640f7ad15892304
3
+ metadata.gz: 9066e032e441b73cfe80a04cf57a420a29d9788a08bf7afe435cee93541bc3a2
4
+ data.tar.gz: 63f612bdc9ac79c3d454062fd6cf62cc84fef17a1c4696c07822649ce4585ac5
5
5
  SHA512:
6
- metadata.gz: 9c8170aeeda9b5464f9bbd7a325dc988ec7997020302de8ceab15845cc39b2336f6768b007d8a53517021e2e51c853c06f155174bc079173de94acf3b370f59d
7
- data.tar.gz: b5d7c09506eba404783cf6e5fe1ddb0015d0650f330023d1aa24905c945eff09e7049bf4d6846689ae9c3d68044fdd0b638092c56dd6d871f55fc5412e0df580
6
+ metadata.gz: d42ffd34be3aa710e1ba33d2b753541fd5df1f03d67e3bf91e05113137cf51164381592a0d5a9621146809d8ab1fc3c87d0126d7f35785632aa645b667b13500
7
+ data.tar.gz: d7670c8267def044cb1a5cc4c92e127513cf07aa77dda0d61c9622022ca154e5c0ec4fe3f23ddc1ca6ce8c7d071ac91a2d6b1b391c0cb9e47d8bff7b5f461959
data/bin/rtfm CHANGED
@@ -46,6 +46,9 @@ JUMPING AND MARKS
46
46
  Press '-' and a letter to delete that mark
47
47
  M = Show marked items in right pane
48
48
  ' = Jump to mark (next letter is the name of the mark [a-zA-Z'])
49
+ / = Enter search string in bottom window to highlight matching items and jump to the first match
50
+ n = Jump to the next item matched by '/'
51
+ N = Jump to the previous item matched by '/'
49
52
  h = Jump to Home directory
50
53
  f = Follow symlink to the directory where the target resides
51
54
  L = Start 'locate' search for files, then use '#' to jump to desired line/directory
@@ -82,7 +85,6 @@ RIGHT PANE
82
85
  - = Toggle preview in right pane (turn it off for faster traversing of directories)
83
86
 
84
87
  ADDITINAL COMMANDS
85
- / = Enter search string in bottom window to highlight matching items
86
88
  g = Run 'grep' to show files that contains the MATCH in current directory
87
89
  : = Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
88
90
  ; = Show command history in right pane
@@ -617,9 +619,34 @@ def main_getkey # GET KEY FROM USER
617
619
  @break = true
618
620
  @w_b.update = true
619
621
  # ADDITIONAL COMMANDS
620
- when '/' # Get search string to mark items that match #
622
+ when '/' # Get search string to mark items that match the input
621
623
  @w_b.nohistory = true
622
624
  @searched = w_b_getstr("/ ", "")
625
+ l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
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
629
+ @index = 0 if @searched == ""
630
+ @w_r.update = true
631
+ when 'n'
632
+ l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
633
+ m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
634
+ i = m.find { |n| n > @index }
635
+ if i == nil
636
+ @index = m.first
637
+ else
638
+ @index = i
639
+ end
640
+ @w_r.update = true
641
+ when 'N'
642
+ l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
643
+ m = l.each_index.select{|n| l[n] =~ /#{@searched}/}.reverse
644
+ i = m.find { |n| n < @index }
645
+ if i == nil
646
+ @index = m.first
647
+ else
648
+ @index = i
649
+ end
623
650
  @w_r.update = true
624
651
  when ':' # Enter "command mode" in the bottom window - tries to execute the given command
625
652
  @w_r.nohistory = false
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.11
4
+ version: 1.5.2
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-03 00:00:00.000000000 Z
11
+ date: 2021-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -33,8 +33,10 @@ 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.11: Rescued error when system commands fail (via the
37
- ''S'' key)'
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.1: Added
38
+ ''N'' to jump to the previous matched item by ''/''. New in 1.5.2: Added wrap-around
39
+ for ''n'' and ''N'''
38
40
  email: g@isene.com
39
41
  executables:
40
42
  - rtfm