dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 435a70d5b92fcc5c0c231befd0516fa1228da436
parent 48a1c36733f0c466d008a8c13fc1182cb02b1fea
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon,  9 Jul 2018 14:52:11 -0400

primitive csv preview added

Diffstat:
M.config/ranger/scope.sh | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh @@ -67,6 +67,8 @@ case "$extension" in try acat "$path" && { dump | trim; exit 3; } try bsdtar -lf "$path" && { dump | trim; exit 0; } exit 1;; + csv) + sed "s/\(.*\".*\),\(.*\".*\)/\1~\2/;s/,/\t/g;s/~/,/g;s/\t\"/\t/g;s/\"\t/\t/g" "$path" && { dump| trim; exit 0; } || exit 1;; rar) # avoid password prompt by providing empty password try unrar -p- lt "$path" && { dump | trim; exit 0; } || exit 1;;