tldraw/packages
Mitja Bezenšek a85c215ffc
Add "paste at cursor" option, which toggles how cmd + v and cmd + shift + v work (#4088)
Add an option to make paste at cursor the default. 

Not sure if we also want to expose this on tldraw.com? For now I did,
but happy to remove if we'd want to keep the preferences simple.

We could also add this to the `TldrawOptions`, but it felt like some
apps might actually allow this customization on a per user level.

Solves https://github.com/tldraw/tldraw/issues/4066

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [x] `feature`
- [ ] `api`
- [ ] `other`

### Test plan

1. Copy / pasting should still work as it works now: `⌘ + v` pastes on
top of the shape, `⌘ + ⇧ + v` pastes at cursor.
2. There's now a new option under Preferences to paste at cursor. This
just swaps the logic between the two shortcuts: `⌘ + v` then pastes at
cursor and `⌘ + ⇧ + v` pastes on top of the shape.

### Release notes

- Allow users and sdk users to make pasting at the cursor a default
instead of only being available with `⌘ + ⇧ + v`.
2024-07-09 09:09:34 +00:00
..
assets Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
dotcom-shared Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
editor Add "paste at cursor" option, which toggles how cmd + v and cmd + shift + v work (#4088) 2024-07-09 09:09:34 +00:00
namespaced-tldraw Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
state Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
store Update CHANGELOG.md [skip ci] 2024-06-25 13:27:57 +00:00
sync put sync stuff in bemo worker (#4060) 2024-07-03 14:10:54 +00:00
sync-react put sync stuff in bemo worker (#4060) 2024-07-03 14:10:54 +00:00
tldraw Add "paste at cursor" option, which toggles how cmd + v and cmd + shift + v work (#4088) 2024-07-09 09:09:34 +00:00
tlschema Make arrow sequence not retroactive (#4090) 2024-07-08 10:31:42 +00:00
utils Initial bemo worker setup (#4017) 2024-07-01 11:35:23 +00:00
validate Demo server bookmark unfurl endpoint (#4062) 2024-07-03 10:48:34 +00:00
worker-shared introduce images.tldraw.xyz image optimisation worker (#4069) 2024-07-08 16:25:53 +00:00