ranger: preview more JS properly
This commit is contained in:
parent
bec8276729
commit
4e53b56e59
@ -294,7 +294,7 @@ handle_mime() {
|
|||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
## Text
|
## Text
|
||||||
text/* | */xml)
|
text/*|*/xml|application/javascript)
|
||||||
## Syntax highlight
|
## Syntax highlight
|
||||||
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
|
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user