about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-12-20 00:26:33 +0100
committertoonn <toonn@toonn.io>2019-12-20 00:26:33 +0100
commit1f3dcc273bd69d43ab24395fc81d1da9a3ae1b4c (patch)
tree21a080a05d59e8b99a5be0e849bb06bcbeb65328
parent4d3e3b8c29039b423eec18fa1a63d61e39f63e48 (diff)
downloadranger-1f3dcc273bd69d43ab24395fc81d1da9a3ae1b4c.tar.gz
Add bat to documentation
-rw-r--r--README.md2
-rw-r--r--doc/ranger.112
-rw-r--r--doc/ranger.pod8
3 files changed, 17 insertions, 5 deletions
diff --git a/README.md b/README.md
index d7ca0493..a3c4d6a6 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ Optional:
 Optional, for enhanced file previews (with `scope.sh`):
 
 * `img2txt` (from `caca-utils`) for ASCII-art image previews
-* `highlight` or `pygmentize` for syntax highlighting of code
+* `highlight`, `bat` or `pygmentize` for syntax highlighting of code
 * `atool`, `bsdtar` and/or `unrar` for previews of archives
 * `lynx`, `w3m` or `elinks` for previews of html pages
 * `pdftotext` or `mutool` for pdf previews
diff --git a/doc/ranger.1 b/doc/ranger.1
index 5a159e12..40819395 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
+.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
@@ -133,7 +133,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RANGER 1"
-.TH RANGER 1 "ranger-1.9.2" "2018-10-26" "ranger manual"
+.TH RANGER 1 "ranger-1.9.2" "20-12-2019" "ranger manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -281,7 +281,8 @@ scripts by setting the option \f(CW\*(C`use_preview_script\*(C'\fR and \f(CW\*(C
 This default script is \fI\f(CI%rangerdir\fI/data/scope.sh\fR. It contains more
 documentation and calls to the programs \fIlynx\fR and \fIelinks\fR for html,
 \&\fIhighlight\fR for text/code, \fIimg2txt\fR for images, \fIatool\fR for archives,
-\&\fIpdftotext\fR or \fImutool\fR for PDFs and \fImediainfo\fR for video and audio files.
+\&\fIpdftotext\fR or \fImutool\fR for PDFs and \fImediainfo\fR for video and audio files
+and others.
 .PP
 Install these programs (just the ones you need) and scope.sh will automatically
 use them.
@@ -1623,6 +1624,11 @@ the \*(L"S\*(R" key.  Defaults to \*(L"/bin/sh\*(R".
 .IX Item "TERMCMD"
 Defines the terminal emulator command that ranger is going to use with the
 :terminal command and the \*(L"t\*(R" run flag.  Defaults to \*(L"xterm\*(R".
+.IP "\s-1BAT_STYLE\s0" 8
+.IX Item "BAT_STYLE"
+Specifies the theme to be used for syntax highlighting when \fIbat\fR is
+installed, unless \fIhighlight\fR is also installed. Find out possible values by
+running \f(CW\*(C`bat \-\-list\-themes\*(C'\fR.
 .IP "\s-1XDG_CONFIG_HOME\s0" 8
 .IX Item "XDG_CONFIG_HOME"
 Specifies the directory for configuration files. Defaults to \fI\f(CI$HOME\fI/.config\fR.
diff --git a/doc/ranger.pod b/doc/ranger.pod
index 8fbc8826..81a9dfea 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -192,7 +192,8 @@ scripts by setting the option C<use_preview_script> and C<preview_files> to true
 This default script is F<%rangerdir/data/scope.sh>. It contains more
 documentation and calls to the programs I<lynx> and I<elinks> for html,
 I<highlight> for text/code, I<img2txt> for images, I<atool> for archives,
-I<pdftotext> or I<mutool> for PDFs and I<mediainfo> for video and audio files.
+I<pdftotext> or I<mutool> for PDFs and I<mediainfo> for video and audio files
+and others.
 
 Install these programs (just the ones you need) and scope.sh will automatically
 use them.
@@ -1770,6 +1771,11 @@ the "S" key.  Defaults to "/bin/sh".
 Defines the terminal emulator command that ranger is going to use with the
 :terminal command and the "t" run flag.  Defaults to "xterm".
 
+=item BAT_STYLE
+
+Specifies the theme to be used for syntax highlighting when I<bat> is
+installed, unless I<highlight> is also installed. Find out possible values by
+running C<bat --list-themes>.
 
 =item XDG_CONFIG_HOME