ocaml / ocaml/dune

tui: add copy to clipboard button

Open
#8,532 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tui
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.