rtfm-filemanager 2.2 → 2.3.1

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 +11 -5
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c410aa1b0b696236f9954263caa3d7e670d7ca45da0d45d2e8cb94fc52d895d1
4
- data.tar.gz: 6832505f97d8b81010c50905782af9eb2a36709386ee616d06c8f1024d798a54
3
+ metadata.gz: 9e771ec30aae057c7333af2e30c38eb8f282285c7e5b6dd5bb726ca834e4c497
4
+ data.tar.gz: fbd7a198906d248f0155f7a8967aedbede0aa1c2a8e430565326fabe47e4c4e4
5
5
  SHA512:
6
- metadata.gz: 7901006b50b618083589b017b66cb747d41c42d7bb170c95b00b19ddbdc0aa1d4921ddfe90ed2eebef10e040f0c15b7a1fa4b2557416d0d0d9b6201d34f8267f
7
- data.tar.gz: d8666f8f471d72bc19fd27235e191604d09ef2dd7df58a51339fd9ec7c2cfa5ba7714d28a7aa5c8a2217dd5916cd31c3a473f2b31a397f336ba69ef15fce23a6
6
+ metadata.gz: 558b5745df5c059af2eccc1781c3961f0207c2f63b5e3dda8749cd1ccc2f40be8558d785ace962bc0ed87f8576fe8a6cae4e750592501f3461a5dfa009135d28
7
+ data.tar.gz: 0b64e93a2174c78928b3106d0016195f07675137c189471e49a6c6fcf6001de8b31566d64da65b8efe623a39f23f89d85b47e07b27c4d8476ddcbb7a8349458e
data/bin/rtfm CHANGED
@@ -689,8 +689,10 @@ def main_getkey # GET KEY FROM USER
689
689
  @lsfiles = w_b_getstr("Filetype(s) to show: ", @lsfiles)
690
690
  break if @lsfiles.match(/^$|\w+(,\w+)*$/)
691
691
  end
692
+ w_b_info(nil)
692
693
  when 'F' # Filter out files not matching @lsmatch
693
694
  @lsmatch = w_b_getstr("Files will match RegEx: ", @lsmatch)
695
+ w_b_info(nil)
694
696
  when '/' # Get search string to mark items that match the input
695
697
  @w_b.nohistory = true
696
698
  @searched = w_b_getstr("/ ", "")
@@ -1248,10 +1250,16 @@ end
1248
1250
  # BOTTOM WINDOW FUNCTIONS
1249
1251
  def w_b_info(info) # SHOW INFO IN @W_B
1250
1252
  @w_b.clr
1253
+ @w_b.fg, @w_b.bg = 250, 238
1251
1254
  if info == nil
1252
1255
  info = ": for command (use @s for selected item, @t for tagged items) - press ? for help"
1253
- info = "Showing only file type #{@lsfiles}" if @lsfiles != ""
1254
- info = "Showing only file types #{@lsfiles}" if @lsfiles =~ /,/
1256
+ info = "Showing only files matching '#{@lsmatch}'" if @lsmatch != ""
1257
+ info = "Showing only file type '#{@lsfiles}'" if @lsfiles != ""
1258
+ info = "Showing only file types '#{@lsfiles}'" if @lsfiles =~ /,/
1259
+ info += " and only files matching '#{@lsmatch}'" if @lsfiles != "" and @lsmatch != ""
1260
+ @w_b.fg, @w_b.bg = 250, 88 if @lsfiles != ""
1261
+ @w_b.fg, @w_b.bg = 250, 21 if @lsmatch != ""
1262
+ @w_b.fg, @w_b.bg = 250, 55 if @lsfiles != "" and @lsmatch != ""
1255
1263
  end
1256
1264
  info = info[1..(@w_b.maxx - 3)] + "…" if info.length + 3 > @w_b.maxx
1257
1265
  info += " " * (@w_b.maxx - info.length) if info.length < @w_b.maxx
@@ -1442,6 +1450,7 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
1442
1450
  @w_p.refresh
1443
1451
  @w_t.fg, @w_t.bg = 232, 249
1444
1452
  @w_t.attr = Curses::A_BOLD
1453
+ @w_b.fg, @w_b.bg = 250, 238
1445
1454
  @w_b.update = true
1446
1455
  @w_r.update = true
1447
1456
  @w_r.pager = 0
@@ -1455,9 +1464,6 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
1455
1464
  @change = true
1456
1465
  @change_tag = true # For future need to force @change
1457
1466
  loop do # INNER, CORE LOOP
1458
- @w_b.fg, @w_b.bg = 250, 238
1459
- @w_b.fg, @w_b.bg = 250, 88 if @lsfiles != ""
1460
- @w_r.text = ""
1461
1467
  begin # Jump to home dir if current dir is externally removed
1462
1468
  Dir.pwd
1463
1469
  rescue
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: '2.2'
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-22 00:00:00.000000000 Z
11
+ date: 2023-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -47,8 +47,7 @@ dependencies:
47
47
  description: 'A full featured terminal browser with syntax highlighted files, images
48
48
  shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
49
49
  easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
50
- other features. New in 2.1: Added keys ''f'' (show only file types) and ''F'' (show
51
- only files matching a RegEx) and moved follow-symlink from ''f'' to ''>''.'
50
+ other features. New in 2.3.1: Fixed critical pager bug in right window/pane'
52
51
  email: g@isene.com
53
52
  executables:
54
53
  - rtfm