[claude] Mnemosyne tag management — add, remove, replace topics (#1236) #1238
Reference in New Issue
Block a user
Delete Branch "claude/issue-1236"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1236
What
Adds three methods to
MnemosyneArchiveand matching CLI commands for managing tags on existing entries:add_tags(entry_id, tags)— add new tags (deduplicates case-insensitively, preserves existing)remove_tags(entry_id, tags)— remove specific tags (case-insensitive, unknown tags silently ignored)retag(entry_id, tags)— replace all tags at once (deduplicates new list)All three methods raise
KeyErrorfor missing entries and persist changes immediately.CLI
Tests
11 new tests covering:
All 39 tests pass (28 existing + 11 new).