Commit 5db9d49
committed
feat(clipboard): add middle-click paste from X11 primary selection
Adds readPrimary() function supporting wl-paste, xclip, and xsel
for reading the X11 primary selection buffer. Adds middle-click
handler to the prompt textarea.
Upstream: anomalyco/opencode#16379
https://claude.ai/code/session_01R2NB6YZNAFe57T3uhSCGo91 parent e7f1ec8 commit 5db9d49
2 files changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
568 | 588 | | |
569 | 589 | | |
570 | 590 | | |
| |||
967 | 987 | | |
968 | 988 | | |
969 | 989 | | |
| 990 | + | |
970 | 991 | | |
971 | 992 | | |
972 | 993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
211 | 244 | | |
212 | 245 | | |
213 | 246 | | |
| |||
216 | 249 | | |
217 | 250 | | |
218 | 251 | | |
| 252 | + | |
219 | 253 | | |
0 commit comments