rtfm-filemanager 4.09 → 4.10

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -1
  3. data/bin/rtfm +10 -6
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 845f4eb1b0afececf6c7e05c984d382652814f83e6ff3a86a22f36f1909b14b7
4
- data.tar.gz: b3921ab95180c2c40998304fdc46b0a20847d5a8ea3ac1b53c33bd34696752eb
3
+ metadata.gz: f4bf6a35e53012d1b241e532428162d89f2e752ef49819e004fce339ed68101a
4
+ data.tar.gz: afdebc972d821da361803eebc02237da7d3f609675b13c85f4ea89ec8f601e73
5
5
  SHA512:
6
- metadata.gz: 5d7371f876e623f0ddb2729d007b01ef99d5ab32dccb42536145ce89fcad4b56a1b9f4ee3e8ef71a505e800c6283a4061a65bdbb647f52a3fe2a9c4e851c6cf7
7
- data.tar.gz: 7e10134b602b712bfd14389f91409e87457cfbfc9818f86680b77a5c248181f8a58965f874701392cbe795c4d52322ea541b403432ae290a5ebc617d1788c3ba
6
+ metadata.gz: 95703e3225c805f66562674c3fbde24bea9064caa5f0698a621d07ad12134edc467fad1499eedfd35f78f60345f01b6f3050946f942004145cffada42d5d27d3
7
+ data.tar.gz: a9c6851cdd211ca14478d708d4d783adcc71598c73882827a4d8a5b92c18749d86be3f6161c5a754f753fa37cf8c4e1c81e29eb804cfa2eae14f504d31a2d3c8
data/README.md CHANGED
@@ -350,7 +350,16 @@ size of the image included while pdf files will have the number of pages. More
350
350
  file specific information will be included when I feel like adding such.
351
351
 
352
352
 
353
- ## Top line background color when matching a path
353
+ ## Top and bottom line background colors
354
+ You can customize the background colors for the top and bottom lines/panes.
355
+
356
+ Bottom color is by default `238`. Change it by setting @bottomcolor to your
357
+ desired colors in your `.rtfm.conf`.
358
+
359
+ You can also set the background color at the bottom when you enter command
360
+ mode (via `:`) by setting @cmdcolor and the Ruby mode (via `@`) by setting
361
+ @rubycolor.
362
+
354
363
  You can set the variable `@topmatch` in your `.rtfm.conf` so that it will change
355
364
  the background color of the top line/pane when you are in a directory matching
356
365
  a pattern.
data/bin/rtfm CHANGED
@@ -14,7 +14,7 @@
14
14
  # for any damages resulting from its use. Further, I am under no
15
15
  # obligation to maintain or extend this software. It is provided
16
16
  # on an 'as is' basis without any expressed or implied warranty.
17
- @version = "4.09" # Made path not lowercase for coloring
17
+ @version = "4.10" # Adjustable top/bottom colors
18
18
 
19
19
  # PRELIMINARIES
20
20
  @help = <<HELPTEXT
@@ -251,7 +251,11 @@ begin # BASIC SETUP
251
251
  @history = [] # Initialize the command line history array
252
252
  @rubyhistory = [] # Initialize the command line history array for ruby commands
253
253
  @border = false
254
+ @rubycolor = 52
255
+ @cmdcolor = 18
256
+ @topcolor = 249
254
257
  @topmatch = [["", 249]]
258
+ @bottomcolor = 238
255
259
  @preview = true
256
260
  @runmailcap = false # Set to 'true' in .rtfm.conf if you want to use run-mailcap instead of xdg-open
257
261
  @batuse = true # Use batcat for syntax highlighting
@@ -1465,7 +1469,7 @@ end
1465
1469
  # BOTTOM WINDOW FUNCTIONS
1466
1470
  def w_b_info(info) # SHOW INFO IN @W_B
1467
1471
  @w_b.clr
1468
- @w_b.fg, @w_b.bg = 250, 238
1472
+ @w_b.fg, @w_b.bg = 250, @bottomcolor
1469
1473
  if info == nil
1470
1474
  info = ": for command (use @s for selected item, @t for tagged items) - press ? for help"
1471
1475
  info = " Showing only files matching '#{@lsmatch}'" if @lsmatch != ""
@@ -1499,9 +1503,9 @@ def w_b_getstr(pretext, text, ruby=false) # A SIMPLE READLINE-LIKE ROUTINE
1499
1503
  while chr != "ENTER"
1500
1504
  @w_b.setpos(0,0)
1501
1505
  if ruby
1502
- init_pair(250, 250, 52)
1506
+ init_pair(250, 250, @rubycolor)
1503
1507
  else
1504
- init_pair(250, 250, 22)
1508
+ init_pair(250, 250, @cmdcolor)
1505
1509
  end
1506
1510
  text = pretext + @history_copy[stk]
1507
1511
  text += " " * (@w_b.maxx - text.length) if text.length < @w_b.maxx
@@ -1683,9 +1687,9 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
1683
1687
  @w_p = Curses::Window.new(1, maxx - (maxx * @width / 10), maxy - 2, maxx * @width / 10)
1684
1688
  @w_p.fg, @w_p.bg = 255, 0
1685
1689
  @w_p.refresh
1686
- @w_t.fg, @w_t.bg = 232, 249
1690
+ @w_t.fg, @w_t.bg = 232, @topcolor
1687
1691
  @w_t.attr = Curses::A_BOLD
1688
- @w_b.fg, @w_b.bg = 250, 238
1692
+ @w_b.fg, @w_b.bg = 250, @bottomcolor
1689
1693
  @w_b.update = true
1690
1694
  @w_r.update = true
1691
1695
  @w_r.pager = 0
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: '4.09'
4
+ version: '4.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-24 00:00:00.000000000 Z
11
+ date: 2025-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -47,7 +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 4.09: Made path not lowercase for coloring.'
50
+ other features. New in 4.10: Adjustable top/bottom colors.'
51
51
  email: g@isene.com
52
52
  executables:
53
53
  - rtfm