feat: add vault switcher in status bar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-02-17 17:45:31 +01:00
parent 2f59d1d6c8
commit 829cd2ad95
4 changed files with 133 additions and 19 deletions

View File

@@ -257,6 +257,11 @@ export function useNoteActions(
return handleUpdateFrontmatter(path, key, value)
}, [handleUpdateFrontmatter])
const closeAllTabs = useCallback(() => {
setTabs([])
setActiveTabPath(null)
}, [])
return {
tabs,
activeTabPath,
@@ -270,5 +275,6 @@ export function useNoteActions(
handleUpdateFrontmatter,
handleDeleteProperty,
handleAddProperty,
closeAllTabs,
}
}