summaryrefslogtreecommitdiff
path: root/.local/bin/preview
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/preview')
-rwxr-xr-x.local/bin/preview4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/preview b/.local/bin/preview
index 235f0e0..68eec32 100755
--- a/.local/bin/preview
+++ b/.local/bin/preview
@@ -19,7 +19,7 @@ case "$1" in
*.html) w3m -dump "$1" ;;
*.md) glow "$1" ;;
# *.vim) highlight --syntax=vim --replace-tabs=2 -- "$1" ;;
- *.js|*.vim|*.lua) highlight -- "$1" ;;
+ *.js*|*.ts*|*.vim|*.lua) highlight --replace-tabs=2 -- "$1" ;;
*.txt|*.description|*.srt) cat -- "$1" ;;
*.png|*.jpg|*.jpeg|*.webp|*.mp3|*.ogg|*.mp4|*.mkv|*.webm) mediainfo -- "$1" ;;
*.info.json) jq -C . "$1" ;;
@@ -47,7 +47,7 @@ case "$1" in
*html) w3m -dump "$1" ;;
text/markdown) glow "$1" ;;
application/json) highlight --syntax=json --replace-tabs=2 -- "$1" ;;
- text/*|*javascript) highlight --force -- "$1" ;;
+ text/*|*javascript) highlight --force --replace-tabs=2 -- "$1" ;;
audio/*|video/*|image/*) mediainfo -- "$1" ;;
*xz) xz --list "$1" ;;
*zip|*tar*|*7z*|*bzip2) atool --list -- "$1" ;;