MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / closeActiveTabLikeQuit

Function closeActiveTabLikeQuit

packages/app-core/src/components/Editor.tsx:748–759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746 // Vim aliases: :bNext and :bfirst/:blast — rare, skipped.
747
748 const closeActiveTabLikeQuit = (): void => {
749 const state = useStore.getState()
750 if (isTasksViewActive(state)) {
751 state.closeTasksView()
752 return
753 }
754 if (isTagsViewActive(state)) {
755 state.closeTagView()
756 return
757 }
758 void state.closeActiveNote()
759 }
760 Vim.defineEx('bdelete', 'bd', closeActiveTabLikeQuit)
761 Vim.defineEx('bclose', 'bc', closeActiveTabLikeQuit)
762 const openBufferSwitcher = (): void => {

Callers

nothing calls this directly

Calls 2

isTasksViewActiveFunction · 0.90
isTagsViewActiveFunction · 0.90

Tested by

no test coverage detected