feat: show diff hunk scope labels
Show per-side Tree-sitter scope paths inline and as sticky continuation labels. Keep presentation rows out of source coordinates, selections, and edits. Verified: cargo test (949 passed), cargo build, and real PTY smoke covering split/unified, wrapping, both split axes, sticky scrolling, live rename and undo. Size exception: 549 implementation lines added plus deleted, excluding tests and docs. Keep syntax extraction and coordinate-safe rendering together as one working behavior.
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
- [x] add support for zig syntax highlighting
|
||||
- [x] add the `*` action from vim on word to highlights and searches in buffer in one action.
|
||||
- [x] diff view: improve word-diff highlighting
|
||||
- [ ] diff view: we should be able to tell what the part of the code we're looking at (any given change hunk) and where it belongs.
|
||||
- i think it would be nice if we in the diff view somehow displayed the function name and/or class name that a hunk belongs to
|
||||
- we should consider the ui before implementing this
|
||||
- [x] diff view: show the function/class context that a change hunk belongs to.
|
||||
- inline scope labels with sticky continuation, chosen before implementation
|
||||
- each side uses its own syntax tree; scope changes within a hunk get separate labels
|
||||
- [ ] diff view: automatically detect changes and update the view when relevant bookmarks move change ids (regards bookmark-based diff view; i.e., user selected at least one bookmark in the before/after picker)
|
||||
- [ ] diff view: annotate folder with checkmark if all items under given folder has been checked AND the folder is collapsed.
|
||||
- [ ] diff view: github integration (code review) - add comments on a pr, add review comments at specific lines of files, request changes, approve pr, etc.
|
||||
- [ ] diff view: local review comments (same features as for github reviews) that allows review of local changes to deliver specific reviews to ai agents used for coding.
|
||||
- design question: would this require a server that the agent can interact with, or would local review files be fine? don't want to use server client stuff, if it would be easier and better to just use local files.
|
||||
|
||||
Reference in New Issue
Block a user