diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-02-01 02:24:38 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-02-01 02:24:38 +0300 |
commit | a9db80163a2dab77263d4c51471e2c7e816fdb20 (patch) | |
tree | 8fc21ab2f7a147688b59af4656988c1569dc8967 /dotfiles/.local/bin/scope | |
parent | 536cfdce4324ce5f48bb6aaca314da350e217267 (diff) | |
download | swayrice-a9db80163a2dab77263d4c51471e2c7e816fdb20.tar.gz swayrice-a9db80163a2dab77263d4c51471e2c7e816fdb20.zip |
lf, scope: preview csv files' content
Diffstat (limited to 'dotfiles/.local/bin/scope')
-rwxr-xr-x | dotfiles/.local/bin/scope | 2 |
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 |