ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
Frederik Handberg9d ago
Time to fix the next bug! I have another problem with state values being shared between different window instances - it's not the first time I'm experiencing this kind of bug. Now I notice that the formatting sidebar is applying styling to other windows... I imagine it should be fairly easy to fix by just passing the `windowId` to the notification.
💬 1 replies

Thread context

Root: e030e3d70e38…

Replying to: f4875fbe884e…

Replies (1)

Frederik Handberg9d ago
I just needed to pass the `windowId` to all the formatting notifications. Now it works correctly across multiple window instances. Besides fixing the bug, I implemented a new feature that allows pasting text without formatting by calling `NSTextView.pasteAsPlainText` using shortcut `Cmd+Shift+V`. **Next bug to fix:** When I paste some text with formatting (using normal `Cmd+V`), the text is black with a small font-size. Then once I move my cursor over the text view, the text suddenly gets the correct styling - so it seems like the text view is re-rendering.
0000 sats