rtfm-filemanager 1.7.0 → 1.7.4
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 +20 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf04ac71f0e3cfc2c028dfc50ed8db7c85855a5c1292b3ae3f5f1f3ae1f2cfa
|
4
|
+
data.tar.gz: 58871496975eac0839a8b43793b6fc75303705754fcfce5dd362f4b9dff9b37f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83160f2faa5b44caca7df16b0b2e6fafdc043da42eb376db0c1ec28e3cc38330aa53ff1d803e2bca64a0912528b5f41fbe51c976b7a02b9cca1a495591115932
|
7
|
+
data.tar.gz: 27264dc09670b0b5fbb031cd595b85eca494d72183003628e97a32319ed43049a8add382ce320e7796696d6c4b80e0f559c9f9e31ac9cd501db9324d8229a00a
|
data/bin/rtfm
CHANGED
@@ -49,7 +49,7 @@ JUMPING AND MARKS
|
|
49
49
|
/ = Enter search string in bottom window to highlight matching items and jump to the first match
|
50
50
|
n = Jump to the next item matched by '/'
|
51
51
|
N = Jump to the previous item matched by '/'
|
52
|
-
|
52
|
+
~ = Jump to Home directory
|
53
53
|
f = Follow symlink to the directory where the target resides
|
54
54
|
L = Start 'locate' search for files, then use '#' to jump to desired line/directory
|
55
55
|
|
@@ -83,6 +83,7 @@ RIGHT PANE
|
|
83
83
|
S-TAB = Previous page (if you have moved down the document first - ∆ in the top right)
|
84
84
|
w = Change the width of the left/right panes (left pane ⇒ ⅓ ⇒ ¼ ⇒ ⅕ ⇒ ⅙ ⇒ ½ ⇒ ⅓)
|
85
85
|
- = Toggle preview in right pane (turn it off for faster traversing of directories)
|
86
|
+
_ = Toggle preview of images in right pane
|
86
87
|
|
87
88
|
ADDITINAL COMMANDS
|
88
89
|
g = Run 'grep' to show files that contains the MATCH in current directory
|
@@ -376,7 +377,7 @@ def main_getkey # GET KEY FROM USER
|
|
376
377
|
@w_b.update = true
|
377
378
|
when "'" # Jump to mark
|
378
379
|
marks_info
|
379
|
-
m =
|
380
|
+
m = stdscr.getch.to_s
|
380
381
|
if m.match(/[\w']/) and @marks[m]
|
381
382
|
var_resets
|
382
383
|
@directory[Dir.pwd] = @selected # Store this directory before leaving
|
@@ -390,7 +391,7 @@ def main_getkey # GET KEY FROM USER
|
|
390
391
|
end
|
391
392
|
@w_r.update = true
|
392
393
|
@w_b.update = true
|
393
|
-
when '
|
394
|
+
when '~' # Go to home dir
|
394
395
|
var_resets
|
395
396
|
@directory[Dir.pwd] = @selected # Store this directory before leaving
|
396
397
|
@marks["'"] = Dir.pwd
|
@@ -460,15 +461,12 @@ def main_getkey # GET KEY FROM USER
|
|
460
461
|
when 'p' # Copy tagged items here
|
461
462
|
copy_move_link("copy")
|
462
463
|
@w_r.update = true
|
463
|
-
@w_b.update = true
|
464
464
|
when 'P' # Move tagged items here
|
465
465
|
copy_move_link("move")
|
466
466
|
@w_r.update = true
|
467
|
-
@w_b.update = true
|
468
467
|
when 's' # Create symlink to tagged items here
|
469
468
|
copy_move_link("link")
|
470
469
|
@w_r.update = true
|
471
|
-
@w_b.update = true
|
472
470
|
when 'd' # Delete items tagged and @selected
|
473
471
|
tagged_info
|
474
472
|
w_b_info(" Delete selected and tagged? (press 'd' again to delete)")
|
@@ -631,8 +629,16 @@ def main_getkey # GET KEY FROM USER
|
|
631
629
|
@w_b.update = true
|
632
630
|
when '-'
|
633
631
|
@preview = !@preview
|
632
|
+
@preview ? p = "On" : p = "Off"
|
633
|
+
w_b_info("Preview = " + p)
|
634
|
+
getch
|
635
|
+
@break = true
|
636
|
+
when '_'
|
637
|
+
@showimage = !@showimage
|
638
|
+
@showimage ? i = "On" : i = "Off"
|
639
|
+
w_b_info("Image preview = " + i)
|
640
|
+
getch
|
634
641
|
@break = true
|
635
|
-
@w_b.update = true
|
636
642
|
# ADDITIONAL COMMANDS
|
637
643
|
when '/' # Get search string to mark items that match the input
|
638
644
|
@w_b.nohistory = true
|
@@ -736,6 +742,8 @@ def conf_write
|
|
736
742
|
conf += "@border = #{@border}\n"
|
737
743
|
conf.sub!(/^@preview.*\n/, "")
|
738
744
|
conf += "@preview = #{@preview}\n"
|
745
|
+
conf.sub!(/^@showimage.*\n/, "")
|
746
|
+
conf += "@showimage = #{@showimage}\n"
|
739
747
|
w_r_info("Press W again to write this to .rtfm.conf:\n\n" + conf)
|
740
748
|
if getchr == 'W'
|
741
749
|
w_b_info(" Parameters written to .rtfm.conf")
|
@@ -913,10 +921,13 @@ def copy_move_link(type) # COPY OR MOVE TAGGED ITEMS (COPY IF "keep == true")
|
|
913
921
|
case type
|
914
922
|
when "copy"
|
915
923
|
FileUtils.cp_r(item, dest)
|
924
|
+
w_b_info(" Item(s) copied here.")
|
916
925
|
when "move"
|
917
926
|
FileUtils.mv(item, dest)
|
927
|
+
w_b_info(" Item(s) moved here.")
|
918
928
|
when "link"
|
919
929
|
FileUtils.ln_s(item, dest)
|
930
|
+
w_b_info(" Item(s) symlinked here.")
|
920
931
|
end
|
921
932
|
rescue StandardError => err
|
922
933
|
w_b_info(err.to_s)
|
@@ -1293,6 +1304,8 @@ def w_b_exec(cmd) # EXECUTE COMMAND FROM @W_B
|
|
1293
1304
|
pager_start
|
1294
1305
|
pager_show
|
1295
1306
|
@w_r.update = false
|
1307
|
+
else
|
1308
|
+
@w_r.update = true
|
1296
1309
|
end
|
1297
1310
|
}
|
1298
1311
|
rescue
|
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.7.
|
4
|
+
version: 1.7.4
|
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-12-
|
11
|
+
date: 2021-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,8 +33,7 @@ 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.7.
|
37
|
-
make it possible.'
|
36
|
+
other features. New in 1.7.4: Fixed bug on jumping to mark and then pressing PgUp'
|
38
37
|
email: g@isene.com
|
39
38
|
executables:
|
40
39
|
- rtfm
|