From 85316f3b44b6754460e961b660870b136b684ec7 Mon Sep 17 00:00:00 2001
From: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
Date: Mon, 6 Jul 2026 05:28:06 +0200
Subject: [PATCH] feat(settings): add option to hide category names in the
notes list
The All notes view shows each note's category as a second line, which
reads Uncategorized on every single row for people who do not use
categories at all. Add the user setting showCategoryInList with a
switch in the app settings. The default keeps the current behavior of
showing the category names.
Fixes #1888
Assisted-by: Claude Code:claude-fable-5
AI-assistant: Claude Code 2.1.187 (Claude Fable 5)
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
---
lib/Service/SettingsService.php | 6 ++++++
src/components/AppSettings.vue | 15 +++++++++++++++
src/components/NotesView.vue | 8 ++++++--
3 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php
index 22b341ee4..e7674d272 100644
--- a/lib/Service/SettingsService.php
+++ b/lib/Service/SettingsService.php
@@ -69,6 +69,12 @@ public function __construct(
return '.' . $out;
},
],
+ 'showCategoryInList' => [
+ 'default' => true,
+ 'validate' => function ($value) {
+ return filter_var($value, FILTER_VALIDATE_BOOLEAN);
+ },
+ ],
];
}
diff --git a/src/components/AppSettings.vue b/src/components/AppSettings.vue
index 02930c487..e53df990f 100644
--- a/src/components/AppSettings.vue
+++ b/src/components/AppSettings.vue
@@ -34,6 +34,14 @@
+
+ {{ t('notes', 'Show category names in the list of all notes') }}
+
+
@@ -41,7 +41,7 @@
@@ -142,6 +142,10 @@ export default {
}
},
+ showCategoryTitles() {
+ return this.category === null && store.state.app.settings.showCategoryInList !== false
+ },
+
// group notes by time ("All notes") or by category (if category chosen)
groupedNotes() {
if (this.category === null) {