Feature Suggestion: Clipboard Integration #265
TobiasWallner
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Nice addition indeed but we should use the case with Wayland too which is the future... One day.. then this requires installing X11 that some computer don't have... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To answer the qestion from @flagarde from issue #257:
Copy and pasting from and to the clipboard is something that is often needed when working with text in the console. For example when a key kompination like Ctrl+X/C/V is pressed. This would not generate a CopyPasteEvent in your library, so it may be nice to have some functions exposed that let me copy and paste to and from the clipboard.
I started with this already in my project and made pasting from the clipboard into my editor.
see: https://github.com/TobiasWallner/Lime/blob/main/lime/Lime.cpp#L200-L288
Note that currently there is an issue on Linux. If the clipboard is empty, then a nullptr will be dereferenced. Have not gotten to look into it. (Linux version of the copy and paset requires X11 and windows just windows.h)
Beta Was this translation helpful? Give feedback.
All reactions