You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -647,6 +648,33 @@ export async function openNoteInNewSplitIfNeeded(filename: string): Promise<bool
647
648
return!!res
648
649
}
649
650
651
+
/**
652
+
* Open a note in a split view using x-callback-url, but only if it is not already open in any Editor window.
653
+
* Uses the 'reuseSplitView' openType so that a single split view is reused where possible.
654
+
* Note: This is in place of `await Editor.openNoteByFilename(note.filename, true, 0, 0, false, false)` which doesn't have reuseSplitView option. (Yet.)
655
+
* @author@jgclark
656
+
* @param {string} filename - filename of the note to open
657
+
* @returns {boolean} true if a new split view was opened, false if the note was already open
0 commit comments