emilk / emilk/egui

Add support for copying and pasting to the X11/Wayland PRIMARY clipboard

Open
#5,852 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Is your feature request related to a problem? Please describe.**

In most applications using X11/Wayland, it is possible to utilize the primary clipboard by selecting text and pasting this selection using the middle mouse button, but not in egui. Because I want to make an application using egui that I will use myself (a level editor), this would add functionality that I expect from every application and would aid me in the usage of this tool.

**Describe the solution you'd like**

This crate uses `arboard`, which has primary clipboard support. It would not be hard to copy selected text into the PRIMARY clipboard, and paste it using a middle mouse button event.

Contributor guide

Open the contributing guide

Research direction

Start by locating egui's clipboard integration through the arboard crate and its middle-mouse pointer-event handling for native X11/Wayland applications. Verify how selected text is copied to the PRIMARY clipboard and how a middle-button paste would be triggered; done means both operations work as requested without breaking existing clipboard behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
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.