Skip to content

v0.1.2 Release

Choose a tag to compare

@danielss-dev danielss-dev released this 14 Oct 21:50
· 21 commits to master since this release

Critica v0.1.2

Features

  • Enhanced diff rendering and readability:
    • Persistent background highlights for added/deleted lines.
    • Inline change highlighting for precise segment diffs.
    • Alternating style on unchanged lines to improve scanning.
    • Centered “lines skipped” separators between hunks.
    • Syntax highlighting via Chroma (terminal256).
  • Interactive improvements:
    • Toggle unified/split view with Tab.
    • Search/filter files with / (Enter to confirm, Esc to cancel).
    • Filters: All (a), Staged (s), Changed (c); cycle with f.
    • Keybindings: j/k navigate, o/Enter open, Space preview/collapse, h/l prev/next, g/G top/bottom, Ctrl+d/u page down/up, Esc back, q quit.
  • CLI/config integration:
    • Config-backed defaults for interactive, unified, no_color, diff_mode via ~/.config/critica/config.json.
    • Flags: --interactive/-i, --unified/-u, --no-color, --staged/-s, --cached/-c.

Documentation

  • Expanded README.md with installation, usage examples, configuration, and project structure.

Licensing

  • Added MIT License.

Internal/Refactors

  • Clearer theming and rendering pipeline in internal/ui/theme.go and internal/ui/renderer.go.
  • Improved diff mode selection logic in cmd/root.go honoring config vs flag precedence.
  • internal/config/config.go validates diff_mode (all|staged|unstaged) and normalizes config.

Affected files

  • README.md, LICENSE, cmd/root.go, internal/config/config.go, internal/ui/interactive.go, internal/ui/renderer.go, internal/ui/theme.go

Contributors

  • Daniels