Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to prevent (pinned) home page from being opened twice #88

Open
maryisdead opened this issue Jun 26, 2024 · 2 comments
Open

Option to prevent (pinned) home page from being opened twice #88

maryisdead opened this issue Jun 26, 2024 · 2 comments
Labels
enhancement New feature or request willgetaroundtothis See name

Comments

@maryisdead
Copy link

Summary

I have it configured to automatically pin my home page upon opening the vault. If I click another note from the sidebar, it'll be opened in a new tab. Exactly what I want.

Now, if I select the home page from the sidebar, it'll get opened in the second tab and gets pinned. If I now open another note, this'll be opened in yet another tab and selecting the home page again will pin it in this tab.

Details

A GIF showing what occurs:

homepage_dupes

An option to prevent the home page from being opened twice and instead switching to its current tab would be very nice. I think this doesn't even have to be linked to the Pin option.

Edge case feature: It could still respect forcefully opening a note in a new tab, ie. ⌘-clicking it in the sidebar. When selecting the homepage again in the sidebar, it might just look for the first tab it can find.


I'm a seasoned dev and would be interested to do this myself if there's interest. I just have no idea of obsidian plug-in development and would dive in head-first and come up with a pull request.

@maryisdead maryisdead added the enhancement New feature or request label Jun 26, 2024
@mirnovov
Copy link
Owner

When opening the homepage by the house icon/commands etc it already doesn’t open again if it’s already open. It shouldn’t be too hard to extend that option to the sidebar, though it’s not really a core plugin feature so probably not an immediate priority for me.

@CarlossShi
Copy link

obsidian-mononote plugin may help. It ensures each note appears only once. See discussion in IDE style navigation (tab reuse on link opening, tab management, switch to already open note).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request willgetaroundtothis See name
Projects
None yet
Development

No branches or pull requests

3 participants