mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-02-04 10:20:59 +01:00
add output colorization support using regexes
This commit is contained in:
18
tablizer.pod
18
tablizer.pod
@@ -19,6 +19,7 @@ tablizer - Manipulate tabular output of other programs
|
||||
-F, --filter <field[!]=reg> Filter given field with regex, can be used multiple times
|
||||
-T, --transpose-columns string Transpose the speficied columns (separated by ,)
|
||||
-R, --regex-transposer </from/to/> Apply /search/replace/ regexp to fields given in -T
|
||||
-K --regex-colorizer /from/color/ colorize pattern of output (color: fg[:bg])
|
||||
-j, --json Read JSON input (must be array of hashes)
|
||||
-I, --interactive Interactively filter and select rows
|
||||
-g, --auto-headers Generate headers if there are none present in input
|
||||
@@ -514,9 +515,20 @@ black, blue, cyan, darkGray, default, green, lightBlue, lightCyan,
|
||||
lightGreen, lightMagenta, lightRed, lightWhite, lightYellow,
|
||||
magenta, red, white, yellow
|
||||
|
||||
The Variables B<FG> and B<BG> are being used to highlight matches. The
|
||||
other *FG and *BG variables are for colored table output (enabled with
|
||||
the C<-L> parameter).
|
||||
but you may also use HTML color codes without the hash sign.
|
||||
|
||||
The Variables B<FG> and B<BG> are being used to highlight matching
|
||||
rows. The other *FG and *BG variables are for colored table output
|
||||
(enabled with the C<-L> parameter).
|
||||
|
||||
You can also use the option C<-K> to colorize particular patterns, not
|
||||
whole lines. The option can be given multiple times and expects the
|
||||
following parameter:
|
||||
|
||||
-K '/regex/foreground[:background]/
|
||||
|
||||
that is, background color is optional. This colorization will applied
|
||||
on top of any previous colorizations, if any.
|
||||
|
||||
Colorization can be turned off completely either by setting the
|
||||
parameter C<-N> or the environment variable B<NO_COLOR> to a true value.
|
||||
|
||||
Reference in New Issue
Block a user