When two linked edit/reading tabs panes exist, make "create note in current tab" target the editor tab even if the reading tab is the one active

Use case or problem

When two panes are linked together, one of them being a preview pane and the other an edit pane, and you create a new note with the preview pane selected they both turn into an edit pane. I want them to stay as one preview and one edit pane.

This happens when you try to click an [[Internal Link]] to a uncreated note, and it happens if you have a preview pane selected and hit the create new note button.

Demonstration:


Link to Help post I made in case there was a setting or workaround:
https://forum.obsidian.md/t/linked-preview-pane-switching-to-edit-when-opening-new-note/14144

Proposed solution

Have a check that when a new note is created, check if the currently selected pane is a preview pane, and it has an edit pane linked to it, if so don’t switch to edit mode.
It would be even better if it selected the edit pane linked to it, ready for typing.

6 Likes

Yes yes yes.

I found this because I’m having the same issue, and it’s so annoying. If I have one pane that’s set as a preview pane I want it to be a preview pane, and not have Obsidian change it.

Is there no way yet to keep a permanent preview pane when creating a new note?

I’m having the same issue.

I feel like this should be filed under “Bug reports” rather than “Features”.

I can maybe see this being useful if there isn’t already an editing pane open, but if there is, the existing editing pane should be used for the newly created note, and the linked viewing pane should continue to be linked, and should show the rendered version of the newly created note.

Changing the types of existing panes is definitely unexpected behaviour.

renamed this FR for clarity

So I just noticed something.

I normally create new notes by right-clicking a folder in the navigation pane and selecting “New note”. When I do this, it creates the new note, sets both panes to point to it, and sets both panes to “Edit” mode. (I just noticed, this matches the new name of this thread. Sorry if it seems like I’m repeating things here, but to me it was always just a random thing that happened, and I just noticed the pattern when it happened a few minutes ago.)

If I create a note by clicking the “New note” button at the top of the navigation pane …

… it starts a new tab in the left pane, in editing mode, but leaves the existing linked tabs alone. (It also creates the new note in the root of the vault, which is usually not where I want it.)

Is there maybe a way to make right-clicking a folder and selecting “New note”, behave the same way that the “New note” button behaves? I would be okay with it starting a new un-linked tab for the new note, but in the folder where I need it to be created. (Or even better, add a user-selectable preference for how new note creation should be handled.)