tui: add copy to clipboard button
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
We are unable to select text when Notty is drawing the terminal. From looking around, other TUIs also suffer from this problem.
One solution would be to directly give the user the functionality they need. Typically, a user will select text in the terminal in order to copy it. We should therefore provide a "copy to clipboard" button for messages that allows users to copy a message.
Not a priority at the moment, so making an issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TUI message rendering and interaction entry points in Dune, then inspect how Notty handles selectable text and user actions. Check the project's supported platforms and existing tests before choosing the clipboard behavior. Done means users can invoke a copy action for a displayed message while the TUI is drawing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100