aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-01 02:24:38 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-01 02:24:38 +0300
commita9db80163a2dab77263d4c51471e2c7e816fdb20 (patch)
tree8fc21ab2f7a147688b59af4656988c1569dc8967
parent536cfdce4324ce5f48bb6aaca314da350e217267 (diff)
downloadswayrice-a9db80163a2dab77263d4c51471e2c7e816fdb20.tar.gz
swayrice-a9db80163a2dab77263d4c51471e2c7e816fdb20.zip
lf, scope: preview csv files' content
-rwxr-xr-xdotfiles/.local/bin/scope2
1 files changed, 1 insertions, 1 deletions
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