Skip to content

feat: textarea selection - #1029

Open
andrinoff wants to merge 6 commits into
charmbracelet:mainfrom
andrinoff:wip/textarea-select
Open

feat: textarea selection#1029
andrinoff wants to merge 6 commits into
charmbracelet:mainfrom
andrinoff:wip/textarea-select

Conversation

@andrinoff

@andrinoff andrinoff commented Aug 4, 2026

Copy link
Copy Markdown
Member
  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

What?

Users can now highlight text using keyboard shortcuts (shift+arrows, ctrl+alt+arrows for words, ctrl+g for all) or by clicking and dragging with the mouse (needs wiring). Selected text is visually highlighted with a customizable background color.

Why?

The textarea previously had no way to select, copy, or replace portions of text. This made it difficult to edit existing content without retyping it, and impossible to copy text out of the component. These are baseline expectations for any text input, and their absence meant users had to work around the limitation by deleting and re-entering content manually.

Fixes #1027
Fixes CRUSHGH-1113

This will also partially open the textarea element to more uses!

Signed-off-by: drew <me@andrinoff.com>
@andrinoff
andrinoff marked this pull request as draft August 4, 2026 12:29
@andrinoff

Copy link
Copy Markdown
Member Author
2026-08-04.16-40-32.mp4

Signed-off-by: drew <me@andrinoff.com>
joestump and others added 2 commits August 4, 2026 19:15
Signed-off-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
andrinoff added a commit to charmbracelet/crush that referenced this pull request Aug 4, 2026
@andrinoff
andrinoff marked this pull request as ready for review August 4, 2026 15:55
@andrinoff andrinoff changed the title WIP: textarea selection feat: textarea selection Aug 4, 2026
Signed-off-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
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.

make input area selection only select the text

2 participants