Skip to content

feat(core): add edit buffer Ctrl-Y yank command - #1277

Open
marcospb19 wants to merge 2 commits into
anomalyco:mainfrom
marcospb19:edit-buffer-ctrl-y-yank
Open

feat(core): add edit buffer Ctrl-Y yank command#1277
marcospb19 wants to merge 2 commits into
anomalyco:mainfrom
marcospb19:edit-buffer-ctrl-y-yank

Conversation

@marcospb19

@marcospb19 marcospb19 commented Jul 18, 2026

Copy link
Copy Markdown

opentui already supports common hotkeys for deleting text:

  • Ctrl-W (delete word behind)
  • Alt-D (delete word ahead)
  • Ctrl-K (delete till end of line)
  • Ctrl-U (delete till start of line)

This PR adds the ability to paste the deleted text back with Ctrl-Y.

Fixes anomalyco/opencode#14577.

Different from popular shells (like zsh and bash), this implementation does not support Alt-Y for cycling between recent copies, instead, it's a single slot buffer for the most recent deletion only, supporting Alt-Y would be a possible follow-up.

text is copied with Ctrl-w, Alt-d, Ctrl-k and Ctrl-u, like zsh and bash
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.

Ctrl-A, Ctrl-K and a final Ctrl-Y doesn't paste the line

1 participant