rtfm-filemanager 2.3.1 → 2.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.
- checksums.yaml +4 -4
- data/bin/rtfm +11 -11
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e2ab836c09fe05242283f284a70eadf20c13b0500fce02fe6eb144d2664f306
|
4
|
+
data.tar.gz: 4dedacc19a33078a57e7b3d2d51cb9a0c84f455aeb25c3aa37b86c4d890d5a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8591a01d31db413a031ea70c596d1a7b06dd17596621f0a3b9abcce22891c81afff204cb001224a85e26cc817cf45f6f28ff95df054eee60d27e73044e7ad3b7
|
7
|
+
data.tar.gz: 4addd6dac4a415b1a5fcf5f1f3929327e77db29e8125fb2f0642c3dca833494e1206927bd90b8987b77bbf6fe857132ee8bdc7c8e281a46637d324e714ce2ff0
|
data/bin/rtfm
CHANGED
@@ -696,7 +696,7 @@ def main_getkey # GET KEY FROM USER
|
|
696
696
|
when '/' # Get search string to mark items that match the input
|
697
697
|
@w_b.nohistory = true
|
698
698
|
@searched = w_b_getstr("/ ", "")
|
699
|
-
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
699
|
+
l = `ls 2>/dev/null #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
700
700
|
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
701
701
|
@index = m[0] unless m == []
|
702
702
|
@index = 0 if @searched == ""
|
@@ -704,7 +704,7 @@ def main_getkey # GET KEY FROM USER
|
|
704
704
|
when '\\'
|
705
705
|
@searched = ""
|
706
706
|
when 'n' # Jump to next occurence of search (after '/')
|
707
|
-
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
707
|
+
l = `ls 2>/dev/null #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
708
708
|
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}
|
709
709
|
i = m.find { |n| n > @index }
|
710
710
|
if i == nil
|
@@ -714,7 +714,7 @@ def main_getkey # GET KEY FROM USER
|
|
714
714
|
end
|
715
715
|
@w_r.update = true
|
716
716
|
when 'N' # Jump to previous occurence of search (after '/')
|
717
|
-
l = `ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
717
|
+
l = `ls 2>/dev/null #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}`.split
|
718
718
|
m = l.each_index.select{|n| l[n] =~ /#{@searched}/}.reverse
|
719
719
|
i = m.find { |n| n < @index }
|
720
720
|
if i == nil
|
@@ -830,18 +830,18 @@ def mark_latest
|
|
830
830
|
@marks["'"] = Dir.pwd
|
831
831
|
end
|
832
832
|
def get_files(win) # The core of the directory listings
|
833
|
-
ls_cmd = "ls #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}" # Get files in current directory
|
833
|
+
ls_cmd = "ls 2>/dev/null #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}" # Get files in current directory
|
834
834
|
ls_cmd += @selected_safe if win == "right"
|
835
|
-
@files = `#{ls_cmd}
|
835
|
+
@files = `#{ls_cmd}`.split("\n")
|
836
836
|
ls_cmd += " -H " if win == "right"
|
837
|
-
ls_cmd += %q[ -lhgG --time-style="long-iso"
|
838
|
-
@fspes = `#{ls_cmd}
|
837
|
+
ls_cmd += %q[ -lhgG --time-style="long-iso" | awk '{printf "%s%12s%6s%6s%5s", $1,$4,$5,$3,$2 "\n"}']
|
838
|
+
@fspes = `#{ls_cmd}`.split("\n").drop(1)
|
839
839
|
if @lsfiles != "" or @lsmatch != ""
|
840
840
|
lsf = @lsfiles.split(",").map! {|e| e.strip}
|
841
|
-
dir_cmd = "ls -d "
|
841
|
+
dir_cmd = "ls 2>/dev/null -d "
|
842
842
|
dir_cmd += @selected_safe + "/" if win == "right"
|
843
843
|
dir_cmd += "*/"
|
844
|
-
dirs = `#{dir_cmd}
|
844
|
+
dirs = `#{dir_cmd}`.split("/\n")
|
845
845
|
dirs.map!{|d| d.sub!(/.*\//, '')} if win == "right"
|
846
846
|
@files = @files - dirs
|
847
847
|
@fspes = @fspes - dirs
|
@@ -1406,10 +1406,10 @@ def w_b_exec(cmd) # EXECUTE COMMAND FROM @W_B
|
|
1406
1406
|
@w_r.clr
|
1407
1407
|
begin
|
1408
1408
|
@w_r.pager_cmd = "#{cmd} | #{@bat} -n --color=always 2>/dev/null"
|
1409
|
-
@w_r.text = `#{@w_r.pager_cmd}
|
1409
|
+
@w_r.text = `#{@w_r.pager_cmd}`
|
1410
1410
|
rescue
|
1411
1411
|
@w_r.pager_cmd = "#{cmd} 2>/dev/null"
|
1412
|
-
@w_r.text = `#{@w_r.pager_cmd}
|
1412
|
+
@w_r.text = `#{@w_r.pager_cmd}`
|
1413
1413
|
end
|
1414
1414
|
unless @w_r.text == "" or @w_r.text == nil
|
1415
1415
|
pager_start
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
@@ -47,7 +47,8 @@ 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 2.3.1: Fixed critical pager bug in right window/pane
|
50
|
+
other features. New in 2.3.1: Fixed critical pager bug in right window/pane. 2.3.2
|
51
|
+
is a code clean-up.'
|
51
52
|
email: g@isene.com
|
52
53
|
executables:
|
53
54
|
- rtfm
|