Commit Graph

112 Commits (90397a8aac02a8be0250ca54e3fcb6c348dee52d)

Author SHA1 Message Date
Pit Kleyersburg 23813cc08b Make `--style` parameter more flexible
The `--style` parameter now accepts a comma-separated list of strings,
where every element defines either a single output component (`changes`,
`grid`, `header`, `numbers`) or a predefined style (`full`,
`line-numbers`, `plain`).

If available, bat picks the first predefined style in the user-supplied
style-list and ignores everything else. If no predefined style was
requested, the other parameters that are simple output components will
be used.

Examples:

    --style changes,full,numbers

  Will internally be reduced to only the predefined style `full`.

    --style plain,full

  Will internally be reduced to only the predefined style `plain`.

    --style changes,numbers

  Will not be reduced, because the list does not contain any predefined
  styles.

(Note: if `grid` is requested but no other parameters, bat still creates
the left-most column with a width of `PANEL_WIDTH`. I didn't want to
introduce further logic in this PR that drops or adapts the width of the
left column.)
6 years ago
sharkdp f59ddd1e36 Update dependencies 6 years ago
sharkdp 4e8ea815af Bump version 6 years ago
sharkdp edbe8f3e1a Remove openssl dependency 6 years ago
sharkdp ed09a80a73 Bump version to 0.2.1 6 years ago
sharkdp 25f83610f9 Remove explicit bincode dependency 6 years ago
sharkdp 64ef61b409 Add customization chapter 6 years ago
sharkdp f81e38618c Implement SyntaxSet and ThemeSet caching
closes #21, see #20
6 years ago
sharkdp 74d023a7b1 Specify syntect features 6 years ago
sharkdp 36bbc770eb Use error-chain 6 years ago
sharkdp a979608f37 Add Git support, closes #8 7 years ago
sharkdp 8f5a80ea07 Initial commit 7 years ago