processing / processing/p5.js-web-editor

Linux highlight clipboards does not work

Open
#3,065 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

p5.js version

Web Editor: v2.12.2 p5.js: v1.9.2

What is your operating system?

None

Web browser and version

Firefox 115.8.0esr (64-bit)

Actual Behavior

When you highlight text it is not being picked up by the Linux (Debian 11) highlight clipboards.

I use this feature a lot to quickly copy text in my programing and it would be nice

right now i can highlight text from outside editor and middle click paste it in but if i highlight some potion of my text the os is not detecting that. text and putting it in the clipboareds. not to sure how all of it works but it is very usefull

Some background on the feature https://askubuntu.com/q/1010543

Expected Behavior

Somehow the p5 editor should use a virtual select if your doing a fancy custom highlight mechanism so the text from editors is also copied.

Steps to reproduce

Open p5 web editor

highlight some text middle click it in ... works

highlight different text in the sketch and middle click .. not working

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 reproducing the selection and middle-click paste steps in the Web Editor on Debian 11 with Firefox 115.8.0esr. Trace how the editor handles text selection, then verify that highlighting text in a sketch populates the Linux highlight clipboard while ordinary copy and external selection behavior remain intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.