rtfm-filemanager 1.1.3 → 1.3.2

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +18 -2
  3. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70f123f2abca157dc8fa91a606931fb9330b2e403c5ae0d53701d50a4b4fe166
4
- data.tar.gz: '09a55763181a6c227bde17b50f917bc42a7bbada0e12d585f9bd570185e7a066'
3
+ metadata.gz: f00fb3e8369b16527d5a703a0f41847f78e8dbf2965e350dce6c1e6b9b728a60
4
+ data.tar.gz: edd96c6dfba0f59aec85c7538493da98856e5829d4dece00b8617ef9671370b5
5
5
  SHA512:
6
- metadata.gz: 2bdf4db3d9c6cdac1eff9b62781e02a74e7e482f919deed5fa4dbb2e2ca7dd53444509a5d66242d6c551146bde0db25939b962173f52a38920dbe6ff874b92bc
7
- data.tar.gz: d6a0e33cb6d6b2dd6a4700a85cef2f0beb3988503a86f47c1c0bad832472b694fa21b1ae25c2571b2368d5b4e6e3841f2a41068654dcb8779c18b9fe31f11b6f
6
+ metadata.gz: b0679919584e4b30017c05856d42581ab3d4cf10918d95a3a90e97de3291771112c6e8e071353676e6952f4d41d528af293e34ac449f95ed9410d8266b9aeceb
7
+ data.tar.gz: 11ccfce45876fcd48cfae4c2ec4f86c3bf198fea6c59f881052a2b412f3dcb31580e4fe1eca32e289faf448c86ea08f48cc352fd64361ef4dd3ce71270f4b26d
data/bin/rtfm CHANGED
@@ -23,7 +23,8 @@ BASIC KEYS
23
23
  ? = Show this help text
24
24
  r = Refresh RTFM (recreates all windows. Use on terminal resize or when there is garbage somewhere)
25
25
  R = Reload configuration (~/.rtfm.conf)
26
- W = Write parameters to ~/.rtfm.conf (@lsall, @lslong, @border, @width, @preview, @tagged, @marks)
26
+ W = Write parameters to ~/.rtfm.conf
27
+ (@lsall, @lslong, @lsorder, @lsinvert, @border, @width, @preview, @tagged, @marks)
27
28
  q = Quit
28
29
  Q = QUIT (without writing changes to the config file)
29
30
 
@@ -81,7 +82,8 @@ RIGHT PANE
81
82
 
82
83
  ADDITINAL COMMANDS
83
84
  / = Enter search string in bottom window to highlight matching items
84
- : = Enter "command mode" in bottom window
85
+ g = Run 'grep' to show files that contains the MATCH in current directory
86
+ : = Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
85
87
  ; = Show command history in right pane
86
88
  y = Copy path of selected item to primary selection (for pasting with middle mouse button)
87
89
  Y = Copy path of selected item to clipboard
@@ -259,6 +261,7 @@ def getchr # PROCESS KEY PRESSES
259
261
  when "" then chr = "WBACK"
260
262
  when "" then chr = "LDEL"
261
263
  when "" then chr = "C-T"
264
+ when "" then chr = "C-G"
262
265
  when "\r" then chr = "ENTER"
263
266
  when "\t" then chr = "TAB"
264
267
  when /./ then chr = c
@@ -395,6 +398,9 @@ def main_getkey # GET KEY FROM USER
395
398
  Dir.chdir(File.dirname(File.readlink(@selected)))
396
399
  end
397
400
  @w_b.update = true
401
+ when 'g' # Run 'grep' in the current directory
402
+ cmd = w_b_getstr(": ", "grep -s MATCH *")
403
+ w_b_exec(cmd)
398
404
  when 'L' # Run 'locate' and let user jump to a result (by '#')
399
405
  cmd = w_b_getstr(": ", "locate ")
400
406
  w_b_exec(cmd)
@@ -639,6 +645,10 @@ def conf_write
639
645
  conf += "@lslong = #{@lslong}\n"
640
646
  conf.sub!(/^@lsall.*\n/, "")
641
647
  conf += "@lsall = \"#{@lsall}\"\n"
648
+ conf.sub!(/^@lsorder.*\n/, "")
649
+ conf += "@lsorder = \"#{@lsorder}\"\n"
650
+ conf.sub!(/^@lsinvert.*\n/, "")
651
+ conf += "@lsinvert = \"#{@lsinvert}\"\n"
642
652
  conf.sub!(/^@width.*\n/, "")
643
653
  conf += "@width = #{@width}\n"
644
654
  conf.sub!(/^@border.*\n/, "")
@@ -1045,6 +1055,12 @@ def w_b_getstr(pretext, text) # A SIMPLE READLINE-LIKE ROUTINE
1045
1055
  @w_b.setpos(0,pretext.length + pos)
1046
1056
  @w_b.refresh
1047
1057
  chr = getchr
1058
+ if chr == "C-G"
1059
+ Curses.curs_set(0)
1060
+ Curses.noecho
1061
+ @w_b.update = true
1062
+ return ""
1063
+ end
1048
1064
  case chr
1049
1065
  when 'UP'
1050
1066
  unless @w_b.nohistory
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.1.3
4
+ version: 1.3.2
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-09-25 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -30,10 +30,11 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.3.2
33
- description: A full featured terminal browser with syntax highlighted files, images
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.
36
+ other features. New in 1.3.1: Added ls invert order (@lsinvert) to be written to
37
+ .rtfm.conf via the W key.'
37
38
  email: g@isene.com
38
39
  executables:
39
40
  - rtfm