Skip to content

refactor: extract copy-mode state machine and clean up session view#29

Merged
leohenon merged 4 commits intovimfrom
refactor/copy-mode-cleanup
Mar 26, 2026
Merged

refactor: extract copy-mode state machine and clean up session view#29
leohenon merged 4 commits intovimfrom
refactor/copy-mode-cleanup

Conversation

@leohenon
Copy link
Copy Markdown
Owner

Extract copy-mode state machine from session/index.tsx into copy-mode.ts.
Deduplicate diff view elements and remove as-any casts.

@leohenon leohenon merged commit 84c91c0 into vim Mar 26, 2026
1 check passed
leohenon added a commit that referenced this pull request Mar 26, 2026
)

* refactor: extract copy-mode state machine into dedicated module

* refactor: deduplicate diff elements in Edit and ApplyPatch

* refactor: remove as-any casts from part component spreads

* fix: revert rows to plain function to fix copy-mode cursor

---------

Co-authored-by: leohenon <[email protected]>
leohenon added a commit that referenced this pull request Mar 26, 2026
)

* refactor: extract copy-mode state machine into dedicated module

* refactor: deduplicate diff elements in Edit and ApplyPatch

* refactor: remove as-any casts from part component spreads

* fix: revert rows to plain function to fix copy-mode cursor

---------

Co-authored-by: leohenon <[email protected]>
leohenon added a commit that referenced this pull request Mar 26, 2026
)

* refactor: extract copy-mode state machine into dedicated module

* refactor: deduplicate diff elements in Edit and ApplyPatch

* refactor: remove as-any casts from part component spreads

* fix: revert rows to plain function to fix copy-mode cursor

---------

Co-authored-by: leohenon <[email protected]>
leohenon added a commit that referenced this pull request Mar 31, 2026
)

* refactor: extract copy-mode state machine into dedicated module

* refactor: deduplicate diff elements in Edit and ApplyPatch

* refactor: remove as-any casts from part component spreads

* fix: revert rows to plain function to fix copy-mode cursor

---------

Co-authored-by: leohenon <[email protected]>
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