rtfm-filemanager 1.8.8 → 1.9

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 -4
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7b24f15e8af4deff5b71206bffb91a9ae3bcfb23b5e824a17fc27cd355f79e9
4
- data.tar.gz: 619ee0583a9df68125aea192843df1a6179c79dffc07f1d34d1bb2c3d3541565
3
+ metadata.gz: 5e26f0d9864c1fea07d0e134ab56e468eb790aa39ee51fed6dfeaeaccd72417f
4
+ data.tar.gz: 04d13deaea818d17b68527c143426bda6f5e6dd40151634a4ede15b31ca09396
5
5
  SHA512:
6
- metadata.gz: 1af7ba0a02a1c148bfdef3b18ba00493105cdc3e8ab1f93189689d7257d5ed40f9d9063cb9f1d0a6d01a34daffb7203825cd983d0c20ee6af79cacfbe2975869
7
- data.tar.gz: 87fb16143badb66e1dec1a6443c961bf912fdaa0ea0385329d49a0c52403d9ce11dba0a45067f956bb07b5ab5ab4b57ed5f58cd6874bb755d33494d3a7546d23
6
+ metadata.gz: 84abd7b3ab5748704e3cab099e4a8da0a5e6939f1b12df5c7b5a87e4f1e2df26c22b29d45ba60f72bf44902233e375d5e18e6f71fa1e13611e66fd149a0d0e4e
7
+ data.tar.gz: 1654518896488af35339900e4e3a71279d1e228eb6c56556716e75d8914cdb8e1e16fad3f4b6413529da0e46c518a99e85f322bff9704040da9bee0fde804025
data/bin/rtfm CHANGED
@@ -48,6 +48,7 @@ JUMPING AND MARKS
48
48
  ' = Jump to mark (next letter is the name of the mark [a-zA-Z'])
49
49
  The 5 latest directories visited are stored in marks 1-5 (1 being the very latest)
50
50
  / = Enter search string in bottom window to highlight matching items and jump to the first match
51
+ \\ = Remove search pattern
51
52
  n = Jump to the next item matched by '/'
52
53
  N = Jump to the previous item matched by '/'
53
54
  ~ = Jump to Home directory
@@ -69,7 +70,7 @@ MANIPULATE ITEMS
69
70
 
70
71
  DIRECTORY VIEWS
71
72
  a = Show all (also hidden) items
72
- l = Show long info per item (show item attributes)
73
+ A = Show long info per item (show item attributes)
73
74
  o = Change the order/sorting of directories (circular toggle)
74
75
  i = Invert/reverse the sorting
75
76
  O = Show the Ordering in the bottom window (the full ls command)
@@ -137,7 +138,7 @@ begin # BASIC SETUP
137
138
  end
138
139
 
139
140
  if cmd?('/usr/lib/w3m/w3mimgdisplay')
140
- @w3mimgdisplay = "/usr/lib/w3m/w3mimgdisplay"
141
+ @imgdisplay = "/usr/lib/w3m/w3mimgdisplay"
141
142
  @showimage = true
142
143
  else
143
144
  @showimage = false
@@ -675,6 +676,8 @@ def main_getkey # GET KEY FROM USER
675
676
  @index = m[0] unless m == []
676
677
  @index = 0 if @searched == ""
677
678
  @w_r.update = true
679
+ when '\\'
680
+ @searched = ""
678
681
  when 'n' # Jump to next occurence of search (after '/')
679
682
  l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
680
683
  m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
@@ -1102,10 +1105,11 @@ def image_show(image)# SHOW THE SELECTED IMAGE IN THE RIGHT WINDOW
1102
1105
  img_max_w = char_w * (Curses.cols - Curses.cols/@width - 2)
1103
1106
  img_max_h = char_h * (Curses.lines - 4)
1104
1107
  if image == "clear"
1108
+ `clear`
1105
1109
  img_x -= char_w
1106
1110
  img_max_w += char_w + 2
1107
1111
  img_max_h += 2
1108
- `echo "6;#{img_x};#{img_y};#{img_max_w};#{img_max_h};\n4;\n3;" | #{@w3mimgdisplay} 2>/dev/null`
1112
+ `echo "6;#{img_x};#{img_y};#{img_max_w};#{img_max_h};\n4;\n3;" | #{@imgdisplay} 2>/dev/null`
1109
1113
  else
1110
1114
  img_w,img_h = `identify -format "%[fx:w]x%[fx:h]" #{image} 2>/dev/null`.split('x')
1111
1115
  img_w = img_w.to_i
@@ -1118,7 +1122,7 @@ def image_show(image)# SHOW THE SELECTED IMAGE IN THE RIGHT WINDOW
1118
1122
  img_w = img_w * img_max_h / img_h
1119
1123
  img_h = img_max_h
1120
1124
  end
1121
- `echo "0;1;#{img_x};#{img_y};#{img_w};#{img_h};;;;;\"#{image}\"\n4;\n3;" | #{@w3mimgdisplay} 2>/dev/null`
1125
+ `echo "0;1;#{img_x};#{img_y};#{img_w};#{img_h};;;;;\"#{image}\"\n4;\n3;" | #{@imgdisplay} 2>/dev/null`
1122
1126
  end
1123
1127
  rescue
1124
1128
  @w_r.clr
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.8.8
4
+ version: '1.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -33,7 +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.8.8: Fixed color parsing for Kitty and other terminals.'
36
+ other features. New in 1.9: Added the option to clear a search pattern via the key
37
+ \'
37
38
  email: g@isene.com
38
39
  executables:
39
40
  - rtfm