rtfm-filemanager 2.2 → 2.3

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 -4
  3. metadata +4 -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: 0d7099e1d453f30470918460a94ed63c4fe27f9aeabaf048d5d49f28c5f5f492
4
+ data.tar.gz: 316001942094dc0323d27959341fcfd0b4abf380ac7e709235dfec33561931d3
5
5
  SHA512:
6
- metadata.gz: 7901006b50b618083589b017b66cb747d41c42d7bb170c95b00b19ddbdc0aa1d4921ddfe90ed2eebef10e040f0c15b7a1fa4b2557416d0d0d9b6201d34f8267f
7
- data.tar.gz: d8666f8f471d72bc19fd27235e191604d09ef2dd7df58a51339fd9ec7c2cfa5ba7714d28a7aa5c8a2217dd5916cd31c3a473f2b31a397f336ba69ef15fce23a6
6
+ metadata.gz: fba204a6f59db705c929a3efd21043013a405db024f3ad415c80aeca4f2d8961e14f114409d766620a189a4fc8b1d0492b554d40f3c085e3594a599f5bfe0cf1
7
+ data.tar.gz: 4adbff6448f6c3bbd1dde25260d32d9dd4ec032892e7f82fa73c1db6d5733e38e9fefc580f0968ce65e1b252c33dbb57788a63c9f048a4c935961097da6b6665
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,8 +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
1467
  @w_r.text = ""
1461
1468
  begin # Jump to home dir if current dir is externally removed
1462
1469
  Dir.pwd
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'
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-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -47,8 +47,8 @@ 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.2: Better notification when files are filtered with ''f''
51
+ or ''F'''
52
52
  email: g@isene.com
53
53
  executables:
54
54
  - rtfm