fix: batch note formatting to prevent typing flashes

This commit is contained in:
Valdemar Lorenzen
2026-10-20 12:41:55 +02:00
parent f6d9d04b74
commit 3dfd9f58a4
5 changed files with 63 additions and 10 deletions
-4
View File
@@ -274,8 +274,6 @@ final class NotesController: NSViewController, NSTextViewDelegate {
func textDidChange(_ notification: Notification) {
isDirty = true
MarkdownHighlighting.apply(to: editor)
editor.refreshTasks()
_ = save()
}
@@ -581,8 +579,6 @@ final class NotesController: NSViewController, NSTextViewDelegate {
editor.undoManager?.removeAllActions()
editor.isEditable = true
editor.setSelectedRange(NSRange(location: editor.string.utf16.count, length: 0))
MarkdownHighlighting.apply(to: editor)
editor.refreshTasks()
noteTitle.stringValue = note.title
status.isHidden = true
}