Skip to content

Feature/dirty line highlight#81

Merged
kibi2 merged 23 commits into
mainfrom
feature/dirty-line-highlight
May 25, 2026
Merged

Feature/dirty line highlight#81
kibi2 merged 23 commits into
mainfrom
feature/dirty-line-highlight

Conversation

@kibi2

@kibi2 kibi2 commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

This PR introduces deferred repair support and restructures the internal buffer/model pipeline.

The main change is replacing the old redraw-based workflow with a repair-based workflow centered around dirty state tracking.

User-facing changes

  • Remove :Tir redraw
  • Add :Tir repair [enable|disable|toggle]
  • Add dirty table line highlights
  • Add configurable highlight groups for dirty markers
  • Add deprecation warning for :Tir redraw

Internal changes

  • Rename reconcile-based APIs to repair
  • Introduce dirty range tracking
  • Rename INVALID namespace/state to DIRTY
  • Rename vim_* modules to buf_* modules
  • Rename tir_text.lua to tir_buf.lua
  • Move reconcile/update logic into pipeline modules
  • Clear dirty ranges after write
  • Improve Range utilities and naming consistency

Notes

Deferred repair mode allows users to temporarily keep malformed tables while maintaining internal attrs/model consistency.

Dirty lines are tracked incrementally via on_lines and visualized using extmarks/highlights.

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

@kibi2 kibi2 merged commit 7e1c35f into main May 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant