Interesting blog post, but Nostr should have been mentioned in "Connecting with friends on the Web"
Can confirm πŸ‘ View quoted note β†’
My first #sewing project has begun! I’m starting out with sewing a basic t-shirt. I’m very nervous about how it’s gonna fit. I should probably just have done an oversized tee, but instead I’m going for a fitted style. I’m regretting that decision now πŸ˜‚
Single-vehicle accident on Bollervej in Horsens. A passenger car lost control and crashed upside down in a field. #press
Here are some of the tasks I need to complete for the notes app I’m building… #dev **Save the state of line numbers in a code block:** Line numbers in code blocks can be controlled via a toggle to show or hide them. The state should be saved so that if hiding the line numbers for a specific code block, it should be saved to the JSON structure. **Add a shortcut to easily insert a new block:** Need a shortcut to insert a new text block. Could be `Cmd+Enter` to insert below and `Cmd+Shift+Enter` to insert above the currently selected or focused block. **Automatically focus a newly added block:** After adding a new block, it should automatically be focused and the caret should be positioned in the new block, so that the user can begin typing immediately. **Clicking enter on empty list item:** When clicking enter in an empty list item, it should be converted to a normal text block. It’s the same behavior as when clicking backspace in an empty list item. **Highlight heading button in outline:** Placing the caret in a heading or the blocks below, should highlight the corresponding heading in the outline of the right sidebar.
I think I finally have a working solution in my notes app πŸš€ Don't want to declare victory too early. Will need to do some more testing, but my solution seems really promising. I am now able to hover the ellipsis button in a collapsed heading and the `NSCursor` will correctly change to the `.pointingHand`. Before it would immediately change back to the default, which is the `.iBeam` for text views. This is because the ellipsis button is positioned on top of an `NSTextView`, and text views in AppKit are very aggressive in controlling the `NSCursor` type. Even if you set `.onHover` to change cursor in SwiftUI, it will just get overridden by the text view... image My solution involved controlling the cursor on AppKit-level, as I needed more control than what SwiftUI offers. Part of my solution involved overriding the function `cursorUpdate()` so that can control exactly when the cursor should update. I have a guard that returns early to avoid changing cursor if the hit view is the ellipsis button. I also override the function `mouseMoved()` to constantly set `NSCursor.pointingHand()` whenever the mouse is moved over the button. On a rare occasion, the cursor will flicker, but from my testing, this happens very rarely. #dev #AppKit #SwiftUI #macOS View quoted note β†’
Having some trouble with changing the `NSCursor` on hover. I have an `NSButton` layered on top of an `NSTextView`, and I want the button to use the `.pointingHand` cursor type when hovering it. But the text view will constantly override the `.pointingHand` back to the default for text views, which is the `.iBeam`. It’s not the first time I’ve been fighting this behavior. I’ve been trying to find a workaround before, but never spent much time on it, as I considered it a low-priority bug fix. But today I finally had the time to figure out a way to fix it. #AppKit #macOS
Semi-truck crashed on E45 Horsens #press