mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
ctrl+alt+p will create new note in a new tab
This commit is contained in:
@@ -335,11 +335,13 @@ $tabContentsContainer.on("drop", e => {
|
||||
});
|
||||
});
|
||||
|
||||
async function openEmptyTab() {
|
||||
async function openEmptyTab(render = true) {
|
||||
const ctx = new TabContext(tabRow);
|
||||
tabContexts.push(ctx);
|
||||
|
||||
await renderComponent(ctx);
|
||||
if (render) {
|
||||
await renderComponent(ctx);
|
||||
}
|
||||
|
||||
await tabRow.activateTab(ctx.$tab[0]);
|
||||
}
|
||||
@@ -493,5 +495,6 @@ export default {
|
||||
isActive,
|
||||
activateTabContext,
|
||||
clearOpenTabsTask,
|
||||
filterTabs
|
||||
filterTabs,
|
||||
openEmptyTab
|
||||
};
|
||||
Reference in New Issue
Block a user