From 4e53b56e598e2d1aa1026d112ccc46a9bfb53d8b Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Wed, 14 Feb 2024 13:43:30 +0100 Subject: [PATCH] ranger: preview more JS properly --- .config/ranger/scope.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 95ffdb9..1dadeb1 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -294,7 +294,7 @@ handle_mime() { exit 1;; ## Text - text/* | */xml) + text/*|*/xml|application/javascript) ## Syntax highlight if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then exit 2