add view mode as default, open new notes in edit mode with cursor ready

- Introduce NoteMode enum { view, edit, preview } replacing the old bool
- Default mode when opening a note is view (syntax-highlighted, read-only)
- Menu now shows all three modes with a checkmark on the active one
- Save and autosave menu items disabled outside edit mode
- New notes open in edit mode with cursor positioned after the header
  and keyboard focused, ready to type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
randogoth 2026-06-19 17:21:00 +03:00
parent 6b11515aa2
commit bf214afe72
2 changed files with 57 additions and 14 deletions

View file

@ -449,6 +449,7 @@ Happy note taking! ✨
note: newNote,
isDarkMode: widget.isDarkMode,
notesDirectoryPath: notesDirectoryPath,
initialMode: NoteMode.edit,
),
),
);