From 619f2b23bb4330383afd586d21e896534b8fcf8e Mon Sep 17 00:00:00 2001 From: nfnty Date: Fri, 10 Mar 2017 17:57:09 +0100 Subject: data/scope.sh: highlight: Replace tabs with spaces --- ranger/data/scope.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 3c050504..8386eac2 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -35,6 +35,7 @@ FILE_EXTENSION_LOWER="${FILE_EXTENSION,,}" # Settings HIGHLIGHT_SIZE_MAX=262143 # 256KiB +HIGHLIGHT_TABWIDTH=8 HIGHLIGHT_STYLE='pablo' PYGMENTIZE_STYLE='autumn' @@ -122,7 +123,8 @@ handle_mime() { local pygmentize_format='terminal' local highlight_format='ansi' fi - highlight --out-format="${highlight_format}" --style="${HIGHLIGHT_STYLE}" -- "${FILE_PATH}" && exit 5 + highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \ + --style="${HIGHLIGHT_STYLE}" -- "${FILE_PATH}" && exit 5 # pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5 exit 2;; -- cgit 1.4.1-2-gfad0