mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
unified Jump-To and quick search behavior with regards to hoisting and opening in a new tab
This commit is contained in:
@@ -206,7 +206,7 @@ export default class TabManager extends Component {
|
||||
await noteContext.setEmpty();
|
||||
}
|
||||
|
||||
async openEmptyTab(ntxId, hoistedNoteId = 'root', mainNtxId = null) {
|
||||
async openEmptyTab(ntxId = null, hoistedNoteId = 'root', mainNtxId = null) {
|
||||
const noteContext = new NoteContext(ntxId, hoistedNoteId, mainNtxId);
|
||||
|
||||
const existingNoteContext = this.children.find(nc => nc.ntxId === noteContext.ntxId);
|
||||
@@ -240,7 +240,7 @@ export default class TabManager extends Component {
|
||||
return this.openContextWithNote(notePath, activate, null, hoistedNoteId);
|
||||
}
|
||||
|
||||
async openContextWithNote(notePath, activate, ntxId, hoistedNoteId = 'root', mainNtxId = null) {
|
||||
async openContextWithNote(notePath, activate, ntxId = null, hoistedNoteId = 'root', mainNtxId = null) {
|
||||
const noteContext = await this.openEmptyTab(ntxId, hoistedNoteId, mainNtxId);
|
||||
|
||||
if (notePath) {
|
||||
|
||||
Reference in New Issue
Block a user