Skip to content

Commit

Permalink
prep for version 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Aug 16, 2024
1 parent 9e04ed2 commit b675d61
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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:
```
Expand Down
8 changes: 4 additions & 4 deletions lesspipe.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -97,19 +97,19 @@ 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.
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'
Expand Down
2 changes: 1 addition & 1 deletion lesspipe.sh
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
4 changes: 3 additions & 1 deletion packaging/lesspipe.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define packagename lesspipe
%define packageversion 2.13
%define packageversion 2.14
%define packagerelease 1

Name: %{packagename}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b675d61

Please sign in to comment.