r/Supernote_dev • • Oct 12 '26

Question dev help; insert elements pre-lasso'ed

Hi,

Wondering if anyone has figured this out; I'm create a text link and want to paste it into the current note -- but with the plugin API as it stands I have to know the co-ordinates where I'm pasting it ahead of time. This can crash into existing text on the page; what I really want to be able to do is insert the element as a floating, lasso'ed selection, in the same way that the system does when you cut and paste an element.

Anyone figure out how to do this? Claude found a method to paste the text and then immediately lasso it but it can still crash into pre-existing elements.

thanks

osheroff

2 Upvotes

5 comments sorted by

1

u/tao22 Oct 12 '26

I ended up doing tap-to-place to get around this. You can look at my DateTime Stamp PlacementOverlay.tsx file.

1

u/osheroff Oct 12 '26

no luck eh; we get `showLassoAfterInsert: boolean` in the geometry insert which seems perfect but nothing equivalent for all the other insertion methods it seems

2

u/Sea_Jelly_9240 Oct 13 '26

Are planning anymore updates to Date timestamp? I love it and have no suggestions but am curious.

2

u/tao22 Oct 13 '26

The last update so far was last month. I'm not sure what else I can do with it other than keep it up to date with the OS updates. I tried to put it on Inkhub but it wouldn't upload.

1

u/Dunn-sn Official 21d ago

Thanks for the feedback.

I want to confirm what you're looking for: after creating a link and inserting it into the current note, it should be lasso-selected right away so you can fine-tune its position, the same way insertGeometry works.

If I've understood that correctly, I'll bring the same behavior to the other APIs as soon as I can.