Skip to content

Add the kill ring and undo features to the Input component#1373

Merged
badlogic merged 2 commits intobadlogic:mainfrom
Perlence:feat/input-kill-ring-undo
Feb 7, 2026
Merged

Add the kill ring and undo features to the Input component#1373
badlogic merged 2 commits intobadlogic:mainfrom
Perlence:feat/input-kill-ring-undo

Conversation

@Perlence
Copy link
Copy Markdown
Contributor

@Perlence Perlence commented Feb 7, 2026

Extract kill ring and undo logic from Editor into reusable classes:

  • KillRing: ring buffer with accumulation for consecutive kills
  • UndoStack<S>: generic stack with clone-on-push semantics

Refactor Editor to use both classes. Add kill ring (kill/yank/yank-pop), undo with coalescing, and deleteWordForward to Input.

Extract kill ring and undo logic from Editor into reusable classes:

- KillRing: ring buffer with accumulation for consecutive kills
- UndoStack<S>: generic stack with clone-on-push semantics

Refactor Editor to use both classes. Add kill ring (kill/yank/
yank-pop), undo with coalescing, and deleteWordForward to Input.
@badlogic badlogic merged commit 4c2d78f into badlogic:main Feb 7, 2026
1 of 2 checks passed
@badlogic
Copy link
Copy Markdown
Owner

badlogic commented Feb 7, 2026

Cheers!

@Perlence Perlence deleted the feat/input-kill-ring-undo branch February 7, 2026 16:29
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.

2 participants