Skip to content

Releases: marslo/batchip

v1.1.2

Choose a tag to compare

@marslo marslo released this 11 Jun 05:56

1.1.2 (2026-06-11)

fix

  • fix(core): honor bat config/env in wrapper mode, keep plain only for pipe mode
    • forced BAT_STYLE=plain for pipe mode only

docs

  • docs: update readme

v1.1.1

Choose a tag to compare

@marslo marslo released this 02 Jun 00:25

1.1.1 (2026-06-02)

fix

  • fix(hexcode): fix the end boundary of hexcode

Fixed #4

v1.1.0

Choose a tag to compare

@marslo marslo released this 02 Jun 00:18

1.1.0 (2026-06-02)

feat

  • feat(oklch): add support for oklch

ci

  • ci: fix the 'Node.js 20 actions are deprecated' issue in pre-commit workflow

docs

  • docs: fix typo

v1.0.2

Choose a tag to compare

@marslo marslo released this 19 May 02:54

1.0.2 (2026-05-19)

Code Refactoring

Documentation

Bug Fixes

  • fix(core): fixed the double ANSI escape rendering in pipe mode

Fixed #3
Signed-off-by: marslo marslo.jiao@gmail.com

  • fix(core): optimize pipe mode to bypass bat and its env vars
    • color filter directly WITHOUT bat when stdin is piped and no args given - cat file | batchip
    • skip BAT_OPTS/BAT_STYLE env manipulation in pipe mode, since the options might be provided by bat previously - bat -p --color always file | batchip
    • add github actions pre-commit workflow

Fixed #1

Signed-off-by: marslo marslo.jiao@gmail.com

v1.0.1

Choose a tag to compare

@marslo marslo released this 17 May 22:07

1.0.1 (2026-05-17)

Documentation

Others

Bug Fixes

  • fix(core): resolve pipe rendering and preserve native bat highlights
    • suppress phantom line numbers during pipe input (! -t 0) by stripping global BAT_OPTS and enforcing BAT_STYLE=plain via env command
    • refactor _color_filter Perl regex to safely inject background ANSI codes without stripping bat's native foreground syntax highlighting
    • restore Rec. 709 luma algorithm to dynamically set text to black or white for readability inside color blocks
    • prevent color bleed into subsequent text by replacing the hardcoded trailing color with a standard reset (\033[39;49m)

Fixed #1

Signed-off-by: marslo marslo.jiao@gmail.com

v1.0.0

Choose a tag to compare

@marslo marslo released this 16 May 23:12

1.0.0 (2026-05-16)

Features