]> Sergey Matveev's repositories - nnn.git/commitdiff
Adding support for `most` pager (#698)
authorAnarchiste <46760804+Recidiviste@users.noreply.github.com>
Sat, 15 Aug 2020 02:03:16 +0000 (04:03 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Aug 2020 02:03:16 +0000 (07:33 +0530)
* Added support of most

* Only test if bat exists

* Faster this way

* Don't test for bat'

plugins/preview-tui

index a83be55831242ea9ae193a98eb168253371d7936..8dcdb3c9340515718eea4bc82cc5aecef942883a 100755 (executable)
@@ -64,6 +64,7 @@ TERMINAL="$TERMINAL"  # same goes for the terminal
 USE_SCOPE="${USE_SCOPE:-0}"
 USE_PISTOL="${USE_PISTOL:-0}"
 PAGER="${PAGER:-less -R}"
+[ "$PAGER" = "most" ] && PAGER="less -R"
 
 if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.'; then
     TERMINAL=tmux