rtfm-filemanager 1.8.9 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rtfm +16 -7
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100210021aa797bed46f9ee56e0467dae91e59ea7be7d544a815cf3126c78104
|
4
|
+
data.tar.gz: bf7679c6250e87af2274fea73d3691e328cf418dac544f095f0e744e0eccb68f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b110e3f83dac15495022534761054fc921861c04d78ed355412c1e91c7662d227dd179fd3d1272f7d845d4c4250573d6ee7bc2d01bc12d1b284fe84929872f
|
7
|
+
data.tar.gz: 3b2d462f8eed505040ae5908aaf2aedb53a88701494b3ea92f808b9fd766819cad223ff6250c3a227ef70dcc252348b87e78a3fea2a8c7f163388c340c451eb7
|
data/bin/rtfm
CHANGED
@@ -48,6 +48,7 @@ JUMPING AND MARKS
|
|
48
48
|
' = Jump to mark (next letter is the name of the mark [a-zA-Z'])
|
49
49
|
The 5 latest directories visited are stored in marks 1-5 (1 being the very latest)
|
50
50
|
/ = Enter search string in bottom window to highlight matching items and jump to the first match
|
51
|
+
\\ = Remove search pattern
|
51
52
|
n = Jump to the next item matched by '/'
|
52
53
|
N = Jump to the previous item matched by '/'
|
53
54
|
~ = Jump to Home directory
|
@@ -64,12 +65,12 @@ MANIPULATE ITEMS
|
|
64
65
|
p = Put (copy) tagged items here
|
65
66
|
P = PUT (move) tagged items here
|
66
67
|
s = Create symlink to tagged items here
|
67
|
-
d = Delete selected item and tagged items. Press '
|
68
|
+
d = Delete selected item and tagged items. Press 'y' to confirm
|
68
69
|
c = Change/rename selected (adds command to bottom window)
|
69
70
|
|
70
71
|
DIRECTORY VIEWS
|
71
72
|
a = Show all (also hidden) items
|
72
|
-
|
73
|
+
A = Show long info per item (show item attributes)
|
73
74
|
o = Change the order/sorting of directories (circular toggle)
|
74
75
|
i = Invert/reverse the sorting
|
75
76
|
O = Show the Ordering in the bottom window (the full ls command)
|
@@ -322,9 +323,11 @@ def main_getkey # GET KEY FROM USER
|
|
322
323
|
conf_write
|
323
324
|
@w_b.update = true
|
324
325
|
when 'q' # Exit
|
326
|
+
@tagged = []
|
325
327
|
@write_conf = true
|
326
328
|
exit 0
|
327
329
|
when 'Q' # Exit without writing to .rtfm.conf
|
330
|
+
@tagged = []
|
328
331
|
system("printf \"\033]0;#{Dir.pwd}\007\"")
|
329
332
|
@write_conf = false
|
330
333
|
exit 0
|
@@ -496,15 +499,19 @@ def main_getkey # GET KEY FROM USER
|
|
496
499
|
@w_r.update = true
|
497
500
|
when 'd' # Delete items tagged and @selected
|
498
501
|
tagged_info
|
499
|
-
w_b_info(" Delete selected and tagged? (press '
|
502
|
+
w_b_info(" Delete selected and tagged? (press 'y' to delete)")
|
500
503
|
begin
|
501
504
|
@tagged.push("\"#{Dir.pwd}/#{@selected}\"")
|
502
505
|
@tagged.uniq!
|
503
506
|
deletes = @tagged.join(" ")
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
507
|
+
if STDIN.getc == 'y'
|
508
|
+
`rm -rf #{deletes} 2>/dev/null`
|
509
|
+
items_number = @tagged.length
|
510
|
+
@tagged = []
|
511
|
+
w_b_info("Deleted #{items_number} items: #{deletes}")
|
512
|
+
else
|
513
|
+
@w_b.update = true
|
514
|
+
end
|
508
515
|
@w_r.update = true
|
509
516
|
rescue StandardError => err
|
510
517
|
w_b_info(err.to_s)
|
@@ -675,6 +682,8 @@ def main_getkey # GET KEY FROM USER
|
|
675
682
|
@index = m[0] unless m == []
|
676
683
|
@index = 0 if @searched == ""
|
677
684
|
@w_r.update = true
|
685
|
+
when '\\'
|
686
|
+
@searched = ""
|
678
687
|
when 'n' # Jump to next occurence of search (after '/')
|
679
688
|
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
680
689
|
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
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.9.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: 2022-
|
11
|
+
date: 2022-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,7 +33,8 @@ 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.9.1: Improved safeguard for file deletion (press ''y''
|
37
|
+
to confirm) and minor bugfixes on deletion feedback.'
|
37
38
|
email: g@isene.com
|
38
39
|
executables:
|
39
40
|
- rtfm
|
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
63
|
- !ruby/object:Gem::Version
|
63
64
|
version: '0'
|
64
65
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.3.5
|
66
67
|
signing_key:
|
67
68
|
specification_version: 4
|
68
69
|
summary: RTFM - Ruby Terminal File Manager
|