From a9db80163a2dab77263d4c51471e2c7e816fdb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 1 Feb 2021 02:24:38 +0300 Subject: lf, scope: preview csv files' content --- dotfiles/.local/bin/scope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope index 3f19948..092a206 100755 --- a/dotfiles/.local/bin/scope +++ b/dotfiles/.local/bin/scope @@ -34,7 +34,7 @@ handle_mime() { case "${mimetype}" in text/html) w3m -dump "${FILE_PATH}" ;; text/troff) man ./ "${FILE_PATH}" | col -b ;; - text/* | */xml) + text/* | */xml | */csv) if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then exit 2 fi -- cgit v1.2.3