From 2ac89b908ef96c2267ca68f1340a3ec3aaeca883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Chiotti?= <44336112+maelchiotti@users.noreply.github.com> Date: Fri, 29 May 2026 15:05:43 +0200 Subject: [PATCH 1/8] feat: disable emoji auto replace (#538) --- lib/pages/editor/editor_page.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/pages/editor/editor_page.dart b/lib/pages/editor/editor_page.dart index 776bcde2..753b5514 100644 --- a/lib/pages/editor/editor_page.dart +++ b/lib/pages/editor/editor_page.dart @@ -90,7 +90,17 @@ class _EditorState extends ConsumerState { case PlainTextNote note: contentEditor = PlainTextEditor(note: note, readOnly: readOnly, autofocus: autofocus); case RichTextNote note: - final fleatherController = FleatherController(document: note.document); + final fleatherController = FleatherController( + document: note.document, + autoFormats: AutoFormats( + autoFormats: [ + const AutoFormatLinks(), + const MarkdownInlineShortcuts(), + const MarkdownLineShortcuts(), + const AutoTextDirection(), + ], + ), + ); fleatherControllerNotifier.value = fleatherController; contentEditor = RichTextEditor( note: note, From 133212be88f942061ed53fef80ed15c27efa072a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Chiotti?= <44336112+maelchiotti@users.noreply.github.com> Date: Fri, 29 May 2026 15:15:29 +0200 Subject: [PATCH 2/8] fix: menu crash when opening from label page (#539) --- lib/common/navigation/side_navigation.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/navigation/side_navigation.dart b/lib/common/navigation/side_navigation.dart index 1353e0c1..a6807ba0 100644 --- a/lib/common/navigation/side_navigation.dart +++ b/lib/common/navigation/side_navigation.dart @@ -56,9 +56,9 @@ class _SideNavigationState extends ConsumerState { } else if (route == NavigationRoute.settings.name) { index = labels.length + 4; } else if (labels.isNotEmpty) { - labels.forEachIndexed((index, label) { + labels.forEachIndexed((i, label) { if (route == NavigationRoute.getLabelRouteName(label)) { - index = index + 1; + index = i + 1; } }); } else { From c59ef07d303185cbe5834ae05405d33716111fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Chiotti?= <44336112+maelchiotti@users.noreply.github.com> Date: Fri, 29 May 2026 16:12:38 +0200 Subject: [PATCH 3/8] fix: labels providers updates (#541) --- lib/common/actions/notes/labels.dart | 3 +++ lib/pages/notes/notes_page.dart | 7 +++++++ lib/providers/notes/notes_provider.dart | 15 +++++++++++++++ .../notifiers/current_note_notifier.dart | 12 +++++------- lib/providers/notifiers/notifiers.dart | 2 +- 5 files changed, 31 insertions(+), 8 deletions(-) diff --git a/lib/common/actions/notes/labels.dart b/lib/common/actions/notes/labels.dart index 1e5520ad..0735c5d5 100644 --- a/lib/common/actions/notes/labels.dart +++ b/lib/common/actions/notes/labels.dart @@ -44,6 +44,9 @@ Future?> selectLabels(BuildContext context, WidgetRef ref, {required .editLabels(note, selectedLabels); currentNoteNotifier.value = note; + // Forcefully notify the listeners + // because the note object as been modified in memory + currentNoteNotifier.notify(); return selectedLabels; } diff --git a/lib/pages/notes/notes_page.dart b/lib/pages/notes/notes_page.dart index 40581441..33bcc591 100644 --- a/lib/pages/notes/notes_page.dart +++ b/lib/pages/notes/notes_page.dart @@ -35,6 +35,13 @@ class NotesPage extends ConsumerStatefulWidget { } class _NotesPageState extends ConsumerState { + @override + void initState() { + super.initState(); + + currentLabelFilter = widget.label; + } + @override void dispose() { currentLabelFilter = null; diff --git a/lib/providers/notes/notes_provider.dart b/lib/providers/notes/notes_provider.dart index ddb87022..a390e761 100644 --- a/lib/providers/notes/notes_provider.dart +++ b/lib/providers/notes/notes_provider.dart @@ -82,6 +82,8 @@ class Notes extends _$Notes { Future editLabels(Note note, Iterable