Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

feat(web): add untagged shortcut filter example (#6065)

Archit Goyalb787bfa75f74
diff --git a/web/src/pages/Shortcuts.tsx b/web/src/pages/Shortcuts.tsx
index f2a570896..5bd975cc3 100644
--- a/web/src/pages/Shortcuts.tsx
+++ b/web/src/pages/Shortcuts.tsx
@@ -61,6 +61,12 @@ const shortcutExamples = [
description: "Match one or more exact tags.",
icon: TagsIcon,
},
+ {
+ title: "Untagged",
+ filter: "size(tags) == 0",
+ description: "Memos without any tags.",
+ icon: TagsIcon,
+ },
{
title: "Archive tree",
filter: 'tags.exists(t, t.startsWith("archive"))',
@@ -155,6 +161,7 @@ const filterFields = [
"sets.contains(tags, [...])",
"sets.intersects(tags, [...])",
"sets.equivalent(tags, [...])",
+ "size(tags) == ...",
"size(content) > ...",
"has_task_list",
"has_incomplete_tasks",