Add reopen_last_tab and copy_tab_to_new_window to tab management

This commit is contained in:
SiriusXT
2024-11-22 17:24:06 +08:00
parent 79a906e695
commit 3cfc2ac768
3 changed files with 13 additions and 1 deletions

View File

@@ -586,6 +586,11 @@ export default class TabManager extends Component {
}
}
async copyTabToNewWindowCommand({ntxId}) {
const {notePath, hoistedNoteId} = this.getNoteContextById(ntxId);
this.triggerCommand('openInWindow', {notePath, hoistedNoteId});
}
async reopenLastTabCommand() {
let closeLastEmptyTab = null;