readd tags

This commit is contained in:
rdavis 2026-02-20 12:40:09 -06:00
parent 0a8d824c5d
commit 9eaf512ed7
1 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,8 @@ def scan_notes_fast_walk(notes_dir: str, file_filter: Optional[str] = None, use_
continue continue
folder = relative_path.parent.as_posix() folder = relative_path.parent.as_posix()
# Get tags for this note (cached)
tags = get_tags_cached(full_path)
notes.append({ notes.append({
"name": full_path.stem, "name": full_path.stem,
"path": relative_path.as_posix(), "path": relative_path.as_posix(),
@ -138,7 +139,7 @@ def scan_notes_fast_walk(notes_dir: str, file_filter: Optional[str] = None, use_
"modified": datetime.fromtimestamp(st.st_mtime, tz=timezone.utc).isoformat(), "modified": datetime.fromtimestamp(st.st_mtime, tz=timezone.utc).isoformat(),
"size": st.st_size, "size": st.st_size,
"type": "note", "type": "note",
"tags": [], "tags": tags,
}) })
value = (sorted(notes, key=lambda x: x.get('modified', ''), reverse=True), sorted(folders_set)) value = (sorted(notes, key=lambda x: x.get('modified', ''), reverse=True), sorted(folders_set))