diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index b41a007..06c2b8a 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -129,7 +129,7 @@ set preview_directories true set collapse_preview true # Wrap long lines in plain text previews? -set wrap_plaintext_previews true +set wrap_plaintext_previews false # Save the console history on exit? set save_console_history true diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 1812609..57d5713 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -296,6 +296,8 @@ handle_mime() { ## Text text/* | */xml) + bat --decorations=always --color=always --paging=never \ + --terminal-width="$PV_WIDTH" -- "${FILE_PATH}" && exit 0 ## Syntax highlight if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then exit 2