Commit 5a06e33
committed
feat(cli): add native drag-and-drop and Cmd+V clipboard image pasting
- Implement background clipboard image synchronizer to extract raw images from system clipboard and reframe their relative text paths back to the clipboard on macOS, Windows, and Linux.
- Update parsePastedPaths to support targetDir and convert absolute file paths to clean relative paths inside the workspace.
- Update text-buffer to pass targetDir and emit a transient status toast confirming dropped/pasted files.
- Add comprehensive unit tests for relative path resolution with targetDir.
Closes #278551 parent 4e10a34 commit 5a06e33
6 files changed
Lines changed: 212 additions & 38 deletions
File tree
- packages/cli/src/ui
- components
- utils
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
266 | 310 | | |
267 | 311 | | |
268 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
769 | 774 | | |
770 | 775 | | |
771 | 776 | | |
| 777 | + | |
772 | 778 | | |
773 | 779 | | |
774 | 780 | | |
| |||
2837 | 2843 | | |
2838 | 2844 | | |
2839 | 2845 | | |
| 2846 | + | |
2840 | 2847 | | |
2841 | 2848 | | |
2842 | 2849 | | |
| |||
2958 | 2965 | | |
2959 | 2966 | | |
2960 | 2967 | | |
2961 | | - | |
| 2968 | + | |
2962 | 2969 | | |
2963 | 2970 | | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
2964 | 2990 | | |
2965 | 2991 | | |
2966 | 2992 | | |
| |||
2980 | 3006 | | |
2981 | 3007 | | |
2982 | 3008 | | |
2983 | | - | |
| 3009 | + | |
2984 | 3010 | | |
2985 | 3011 | | |
2986 | 3012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
600 | 622 | | |
601 | 623 | | |
0 commit comments