rtfm-filemanager 3.33 → 3.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rtfm +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65defa4f2daad25c36fe1fd9565e3ee2b26a03705933ff43260093583c8ab54f
|
4
|
+
data.tar.gz: b454944c2defebb4480aa3de634f923e8dc0b89a15cd72dd943c1cdb53bbaf21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd9d5d5dfeb25b1542a4637c53a39361bf52128148b3ee914953da969d108d023e146b5e489cc5db3616ac46ba381f85b6f21a8636f89ca3de669d153fb51c4
|
7
|
+
data.tar.gz: b2661f43bebe906b4c43f69a63a9dfd66f3727caaf7efeb6d655ae8ab707ef9b53b09ade55cea31b8269ff4e2c60dbb25fcc4b0114b14cb4fdb2cce9da69c8c1
|
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 = "3.
|
17
|
+
@version = "3.36" # Fixed mv of very long filenames
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -660,9 +660,11 @@ def main_getkey # GET KEY FROM USER
|
|
660
660
|
w_b_info(err.to_s)
|
661
661
|
end
|
662
662
|
when 'c' # Change/rename selected @selected
|
663
|
-
|
664
|
-
|
665
|
-
|
663
|
+
@selected.length > 12 ? source = @selected[0...12] + "…" : source = @selected
|
664
|
+
cmd = w_b_getstr(": ", "mv \"#{source}\" \"#{@selected}\"")
|
665
|
+
el1 = @selected_safe
|
666
|
+
el2 = cmd.split(' "').last[0..-2]
|
667
|
+
cmd = "mv #{el1} \"#{el2}\""
|
666
668
|
begin
|
667
669
|
if el1 == el2
|
668
670
|
w_b_info(" Source and target are the same. No action done.")
|
@@ -672,7 +674,7 @@ def main_getkey # GET KEY FROM USER
|
|
672
674
|
rescue StandardError => err
|
673
675
|
w_b_info(err.to_s)
|
674
676
|
end
|
675
|
-
@w_r.update =
|
677
|
+
@w_r.update = false
|
676
678
|
when 'C-O' # Change ownerships
|
677
679
|
require 'etc'
|
678
680
|
gnm = Etc.getgrgid(File.stat(@selected).gid).name
|
@@ -1002,7 +1004,7 @@ def get_files(win) # The core of the directory listings
|
|
1002
1004
|
ls_cmd = "ls 2>/dev/null #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}" # Get files in current directory
|
1003
1005
|
ls_cmd += @selected_safe if win == "right"
|
1004
1006
|
@cfiles = `#{ls_cmd} --color`.split("\n")
|
1005
|
-
@files = @cfiles.map {|f| f.sub(/^.*\d+m(.+)\e\[0m/, '\1')}
|
1007
|
+
@files = @cfiles.map {|f| f.sub(/^.*\d+m(.+)\e\[0m/, '\1').gsub(/\e\[K/, "")}
|
1006
1008
|
ls_cmd += " -H " if win == "right"
|
1007
1009
|
ls_cmd += %q[ -lh --time-style="long-iso" | awk '{printf "%s%s%s%11s%6s%6s", $1, " " $3, ":" $4,$6,$7,$5"\n"}']
|
1008
1010
|
@fspes = `#{ls_cmd}`.split("\n").drop(1)
|
@@ -1102,7 +1104,7 @@ def list_dir(active) # LIST CONTENT OF A DIRECTORY (BOTH active AND RIGHT WINDOW
|
|
1102
1104
|
base_length = base_name.length
|
1103
1105
|
ext_name = File.extname(str)
|
1104
1106
|
ext_length = ext_name.length
|
1105
|
-
nbl = win.maxx -
|
1107
|
+
nbl = win.maxx - 6 - ext_length # nbl: new_base_length
|
1106
1108
|
nbl -= 1 if dir != "" # Account for one extra character
|
1107
1109
|
nbl -= 1 if link != "" # Account for one extra character
|
1108
1110
|
str = base_name[0..nbl] + "…" + ext_name
|
@@ -1144,10 +1146,8 @@ def open_selected(html = nil) # OPEN SELECTED ITEM (when pressing RIGHT)
|
|
1144
1146
|
system("exec $EDITOR #{@selected_safe}")
|
1145
1147
|
else
|
1146
1148
|
if @runmailcap
|
1147
|
-
#Thread.new { system("run-mailcap #{@selected_safe} 2>/dev/null") }
|
1148
1149
|
system("run-mailcap #{@selected_safe} 2>/dev/null &")
|
1149
1150
|
else
|
1150
|
-
#Thread.new { system("xdg-open #{@selected_safe} 2>/dev/null") }
|
1151
1151
|
system("xdg-open #{@selected_safe} 2>/dev/null &")
|
1152
1152
|
end
|
1153
1153
|
end
|
@@ -1300,7 +1300,7 @@ def marks_info # SHOW MARKS IN RIGHT WINDOW
|
|
1300
1300
|
w_r_info(info)
|
1301
1301
|
end
|
1302
1302
|
def tagged_info # SHOW THE LIST OF TAGGED ITEMS IN @w_r
|
1303
|
-
info = "TAGGED
|
1303
|
+
info = "TAGGED: (#{@tagged.size} items)\n"
|
1304
1304
|
@tagged.empty? ? info += "(None)" : info += @tagged.join("\n")
|
1305
1305
|
w_r_info(info)
|
1306
1306
|
end
|
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: '3.
|
4
|
+
version: '3.36'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-21 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 3.
|
50
|
+
other features. New in 3.36: Fixed mv of very long filenames.'
|
51
51
|
email: g@isene.com
|
52
52
|
executables:
|
53
53
|
- rtfm
|