diff --git a/ChangeLog b/ChangeLog index ac78747..f3e6146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ **************************************************************************** # ChangeLog for lesspipe.sh # **************************************************************************** +Version 2.14 Aug 16 2024 +- allow for colorizing dotfiles - add nvimpager as (preferred) colorizer - if installed use nvim instead of vim for coloring with vimcolor - prefer bat styles and themes from ENV or command line over config file diff --git a/README.md b/README.md index 9997455..6e50952 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # lesspipe.sh, a preprocessor for less -Version: 2.13 +Version: 2.14 Author : Wolfgang Friebel [wp.friebel@gmail.com](mailto://wp.friebel@gmail.com) License: GPL @@ -193,7 +193,7 @@ the author by email. - zstd requires `zstd` - brotli requires `bro` - lz4 requires `lz4` -- tar requires optionally `archive_color` for coloring +- tar requires optionally `archive_color` for colorizing - ar library requires `bsdtar` or `ar` - zip archive requires `bsdtar` or `unzip` - jar archive requires `bsdtar` or `unzip` @@ -284,10 +284,10 @@ original html file contents, two colons are required in this case. ``` #### 5.1.1 Syntax highlighting choices The filter is able to do syntax highlighting for a wide variety of file - types. If installed, `nvimpager` is used for coloring the output. If + types. If installed, `nvimpager` is used for colorizing the output. If not, `bat`/`batcat`, `pygmentize`, `source-highlight`, `code2color` and `vimcolor` are - tried. Among these colorizers a preferred one can be forced for coloring + tried. Among these colorizers a preferred one can be forced for colorizing by setting the ENV variable **LESSCOLORIZER** to the name of the colorizer. For `pygmentize` and `bat/batcat` a restricted set of options can be added: ``` diff --git a/lesspipe.1 b/lesspipe.1 index 6cc7fc9..f0f3717 100644 --- a/lesspipe.1 +++ b/lesspipe.1 @@ -1,4 +1,4 @@ -.TH LESSPIPE.SH "1" "March 2024" "lesspipe.sh" "User Commands" +.TH LESSPIPE.SH "1" "August 2024" "lesspipe.sh" "User Commands" .SH NAME lesspipe.sh \- a filter for less .SH SYNOPSIS @@ -97,7 +97,7 @@ required in this case. .SH OUTPUT COLORIZATION The filter is able to do syntax highlighting for a wide variety of file types. If installed, \fInvimpager\fP is used for -coloring the output. If not, \fIbat\fP/\fIbatcat\fP, \fIpygmentize\fP, +colorizing the output. If not, \fIbat\fP/\fIbatcat\fP, \fIpygmentize\fP, \fIsource-highlight\fP, \fIvimcolor\fP and \fIcode2color\fP are tried in turn. For bat/batcat the theme is set to \fIansi\fP and the style is set to \fIplain\fP which comes closer to the unfiltered output of \fBless\fP. @@ -105,11 +105,11 @@ These settings can be changed in \fI~/.config/bat/config\fP or by the environment variables \fBBAT_STYLE\fP and \fBBAT_THEME\fP. .PP Among the colorizers -a preferred one can be forced for coloring by setting the ENV variable +a preferred one can be forced for colorizing by setting the ENV variable \fBLESSCOLORIZER\fP to the name of the colorizer. For \fIpygmentize\fP and \fIbat\fP/\fIbatcat\fP restricted option settings are allowed as follows: .RS -.I LESSCOLORIZER='pygmentize -O style=foo' +.I LESSCOLORIZER='pygmentize -O style=foo' (-P allowed as well) .RE .RS .I LESSCOLORIZER='bat --style=foo --theme=bar' diff --git a/lesspipe.sh b/lesspipe.sh index 7d2dab0..0ffd5b0 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # lesspipe.sh, a preprocessor for less -lesspipe_version=2.12 +lesspipe_version=2.14 # Author: Wolfgang Friebel (wp.friebel AT gmail.com) has_cmd () { diff --git a/packaging/lesspipe.spec b/packaging/lesspipe.spec index 3c36950..8acc437 100644 --- a/packaging/lesspipe.spec +++ b/packaging/lesspipe.spec @@ -1,5 +1,5 @@ %define packagename lesspipe -%define packageversion 2.13 +%define packageversion 2.14 %define packagerelease 1 Name: %{packagename} @@ -89,6 +89,8 @@ cd $RPM_BUILD_DIR %docdir %{prefix}/share/man/man1 %changelog +* Fri Aug 16 2024 2.14-1 - wp.friebel@gmail.com +- prefer nvimpager for coloring if installed * Fri May 10 2024 2.13-1 - wp.friebel@gmail.com - support appimage and snap files * Mon Mar 18 2024 2.12-1 - wp.friebel@gmail.com