rtfm-filemanager 1.3.10 → 1.5.1
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.
- checksums.yaml +4 -4
- data/bin/rtfm +47 -24
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e367b107dab960575d391b4daa4995f4e53d8b838b38888ce1aadfe1687ce7
|
4
|
+
data.tar.gz: a224584539c2160613a7886f836cbf71619c5aaef5aae36b77685467446402ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9bb4987880cc5fef8d3fb12595e94cdb7ce215d4aa73b7dcf17290ace55da85317a8049a71db6099fbbc3b1e2e0b699a79b15a8aa676339e8de7699d0f783dd
|
7
|
+
data.tar.gz: 31447f99d73dc8f039d6ea40231b1478045409d868adcbde6bc1149815c783fc51ed19b092c75bdbbb1997148f7f62751479ca694f0c218d630628ba964cc4c5
|
data/bin/rtfm
CHANGED
@@ -46,6 +46,9 @@ JUMPING AND MARKS
|
|
46
46
|
Press '-' and a letter to delete that mark
|
47
47
|
M = Show marked items in right pane
|
48
48
|
' = Jump to mark (next letter is the name of the mark [a-zA-Z'])
|
49
|
+
/ = Enter search string in bottom window to highlight matching items and jump to the first match
|
50
|
+
n = Jump to the next item matched by '/'
|
51
|
+
N = Jump to the previous item matched by '/'
|
49
52
|
h = Jump to Home directory
|
50
53
|
f = Follow symlink to the directory where the target resides
|
51
54
|
L = Start 'locate' search for files, then use '#' to jump to desired line/directory
|
@@ -82,7 +85,6 @@ RIGHT PANE
|
|
82
85
|
- = Toggle preview in right pane (turn it off for faster traversing of directories)
|
83
86
|
|
84
87
|
ADDITINAL COMMANDS
|
85
|
-
/ = Enter search string in bottom window to highlight matching items
|
86
88
|
g = Run 'grep' to show files that contains the MATCH in current directory
|
87
89
|
: = Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
|
88
90
|
; = Show command history in right pane
|
@@ -560,28 +562,32 @@ def main_getkey # GET KEY FROM USER
|
|
560
562
|
@w_r.update = true
|
561
563
|
@w_b.update = false
|
562
564
|
when 'S' # Show comprehensive system info
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
565
|
+
begin
|
566
|
+
@w_r.pager_cmd = ""
|
567
|
+
uname = `uname -o`.chop + " "
|
568
|
+
uname += `uname -r`.chop + " "
|
569
|
+
uname += `uname -v`.chop + " "
|
570
|
+
uname += `uname -p` + "\n"
|
571
|
+
text = [[253, 1, uname]]
|
572
|
+
cpu = "CPUs = " + `nproc`.chop + " "
|
573
|
+
cpuinfo = `lscpu`
|
574
|
+
cpu += cpuinfo[/^.*Model name:\s*(.*)/, 1] + " "
|
575
|
+
cpu += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz "
|
576
|
+
cpu += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz\n\n"
|
577
|
+
text += [[154, 0, cpu]]
|
578
|
+
mem = `free -h` + "\n"
|
579
|
+
text += [[229, 0, mem]]
|
580
|
+
ps = `ps -eo comm,pid,user,pcpu,pmem,stat --sort -pcpu,-pmem | head` + "\n"
|
581
|
+
text += [[195, 0, ps]]
|
582
|
+
disk = `df -H | head -8`
|
583
|
+
text += [[172, 0, disk]]
|
584
|
+
dmesg = "\nDMESG:\n"
|
585
|
+
dmesg += `dmesg | tail -6`
|
586
|
+
text += [[219, 0, dmesg]]
|
587
|
+
w_r_info(ansifix(text))
|
588
|
+
rescue
|
589
|
+
w_r_info("Unable to show system info")
|
590
|
+
end
|
585
591
|
# RIGHT PANE
|
586
592
|
when 'ENTER' # Refresh right pane
|
587
593
|
@w_r.clr # First clear the window, then clear any previously showing image
|
@@ -613,9 +619,26 @@ def main_getkey # GET KEY FROM USER
|
|
613
619
|
@break = true
|
614
620
|
@w_b.update = true
|
615
621
|
# ADDITIONAL COMMANDS
|
616
|
-
when '/' # Get search string to mark items that match
|
622
|
+
when '/' # Get search string to mark items that match the input
|
617
623
|
@w_b.nohistory = true
|
618
624
|
@searched = w_b_getstr("/ ", "")
|
625
|
+
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
626
|
+
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
627
|
+
i = m.find { |n| n > @index }
|
628
|
+
@index = i if i > @index unless i == nil
|
629
|
+
@index = 0 if @searched == ""
|
630
|
+
@w_r.update = true
|
631
|
+
when 'n'
|
632
|
+
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
633
|
+
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
634
|
+
i = m.find { |n| n > @index }
|
635
|
+
@index = i unless i == nil
|
636
|
+
@w_r.update = true
|
637
|
+
when 'N'
|
638
|
+
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
639
|
+
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}.reverse
|
640
|
+
i = m.find { |n| n < @index }
|
641
|
+
@index = i unless i == nil
|
619
642
|
@w_r.update = true
|
620
643
|
when ':' # Enter "command mode" in the bottom window - tries to execute the given command
|
621
644
|
@w_r.nohistory = false
|
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.
|
4
|
+
version: 1.5.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: 2021-
|
11
|
+
date: 2021-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,7 +33,9 @@ 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.
|
36
|
+
other features. New in 1.5.0: Expanded ''/'' to jump to the first match and ''n''
|
37
|
+
to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.1: Added
|
38
|
+
''N'' to jump to the previous matched item by ''/'''
|
37
39
|
email: g@isene.com
|
38
40
|
executables:
|
39
41
|
- rtfm
|