feat: add vault switcher in status bar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user