feat(layout): integrate note map

This commit is contained in:
Elian Doran
2025-12-11 22:01:22 +02:00
parent bd9fe14a6c
commit 726d6aad65
9 changed files with 31 additions and 8 deletions

View File

@@ -193,6 +193,22 @@ export default class RootCommandExecutor extends Component {
appContext.triggerEvent("zenModeChanged", { isEnabled });
}
async toggleRibbonTabNoteMapCommand() {
const { isExperimentalFeatureEnabled } = await import("../services/experimental_features.js");
const isNewLayout = isExperimentalFeatureEnabled("new-layout");
if (!isNewLayout) return;
const activeContext = appContext.tabManager.getActiveContext();
if (!activeContext) return;
const subContexts = activeContext.getSubContexts();
appContext.triggerCommand("openNewNoteSplit", {
ntxId: subContexts[subContexts.length - 1].ntxId,
notePath: activeContext.notePath,
viewScope: { viewMode: "note-map" }
});
}
firstTabCommand() {
this.#goToTab(1);
}