From 0d397e4d3d204a1e016c0863815f0b5dc516c46b Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Wed, 21 May 2025 14:30:00 +0530 Subject: added some new scripts and cleaned up nvim directory --- .local/bin/preview | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/preview') 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" ;; -- cgit v1.2.3