rtfm-filemanager 1.4.0 → 1.5.0

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 +8 -13
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cb8c1afd7b4f2cf1ab8175432956159e52dc715f25568cc7882c7ee0f5358d0
4
- data.tar.gz: efd18775dfbfe3e7a8780b4e971b116b73d278cc63f7dd8a17dfdedadaa97120
3
+ metadata.gz: 8981f5f29cc24ff888f70b1792a5abf8cfb8f50ed13af3c2f7982b72c4f9cef8
4
+ data.tar.gz: 4284525dc3e44a0e8fbb9d25f7e63089d229c33610845c9d58cc2b28f80c1cc5
5
5
  SHA512:
6
- metadata.gz: 9975653d0d5b99418cf0f710bcfa8f314489cd5b9f4369f47f69a41ee2979be0645a1570e83f8eaba322f29d6a0560ba97d40a7607f3608a44007819ebed8dd9
7
- data.tar.gz: 78cbd09e08d1c8754ad75fc5b1cd8ad7e8e8b79df56259822234778abe0152042fddd33a82425876ba6704a9ee8533cd5176d97100db86725fbce92503adb23a
6
+ metadata.gz: 4b30796732dfbfafdf7ac17900b67f98cb596f0ac9cb2724eb45fdf26a6b3040d1c05e741d3e93a2e02f756566cb197474a82d856db34e6d10f37a022a34b84b
7
+ data.tar.gz: 4d1780ff6d665a0ca585a6c248e65734fd716116f41df886b961fa01796362075a79dea786d4807fd385ea8913d081a4fafc735e2e60c6b24a7cc835aa9f8dbe
data/bin/rtfm CHANGED
@@ -46,8 +46,8 @@ 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
- j = Jump to the item in the left pane that matches the entry
50
- J = Jump to the next matched item (as entered via 'j') if any
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
51
  h = Jump to Home directory
52
52
  f = Follow symlink to the directory where the target resides
53
53
  L = Start 'locate' search for files, then use '#' to jump to desired line/directory
@@ -84,7 +84,6 @@ RIGHT PANE
84
84
  - = Toggle preview in right pane (turn it off for faster traversing of directories)
85
85
 
86
86
  ADDITINAL COMMANDS
87
- / = Enter search string in bottom window to highlight matching items
88
87
  g = Run 'grep' to show files that contains the MATCH in current directory
89
88
  : = Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
90
89
  ; = Show command history in right pane
@@ -172,7 +171,6 @@ begin # BASIC SETUP
172
171
  ## These should not be set by user in .rtfm.conf
173
172
  @directory = {} # Initialize the directory hash for remembering directories visited
174
173
  @searched = "" # Initialize the active searched for items
175
- @jump = "" # Initialize the "jump-to-file"
176
174
  @index = 0 # Set chosen item to first on startup
177
175
  @marks["'"] = Dir.pwd
178
176
  ## File type recognizers
@@ -620,24 +618,21 @@ def main_getkey # GET KEY FROM USER
620
618
  @break = true
621
619
  @w_b.update = true
622
620
  # ADDITIONAL COMMANDS
623
- when 'j' # Get the jump-to-file in the current dir from input
621
+ when '/' # Get search string to mark items that match the input
624
622
  @w_b.nohistory = true
625
- @jump = w_b_getstr("Jump to: ", @jump)
623
+ @searched = w_b_getstr("/ ", "")
626
624
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
627
- m = l.each_index.select{|n| l[n] =~ /#{@jump}/}
625
+ m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
628
626
  i = m.find { |n| n > @index }
629
627
  @index = i if i > @index unless i == nil
628
+ @index = 0 if @searched == ""
630
629
  @w_r.update = true
631
- when 'J'
630
+ when 'n'
632
631
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
633
- m = l.each_index.select{|n| l[n] =~ /#{@jump}/}
632
+ m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
634
633
  i = m.find { |n| n > @index }
635
634
  @index = i if i > @index unless i == nil
636
635
  @w_r.update = true
637
- when '/' # Get search string to mark items that match the input
638
- @w_b.nohistory = true
639
- @searched = w_b_getstr("/ ", "")
640
- @w_r.update = true
641
636
  when ':' # Enter "command mode" in the bottom window - tries to execute the given command
642
637
  @w_r.nohistory = false
643
638
  cmd = w_b_getstr(": ", "")
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.4.0
4
+ version: 1.5.0
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-13 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,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.4.0: Added jumping to an item in the current dir via the
37
- ''j'' and ''J'' keys.'
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).'
38
38
  email: g@isene.com
39
39
  executables:
40
40
  - rtfm