fix: batch note formatting to prevent typing flashes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user