NB: Is this a bug report, or is it a discussion of how users want Obsidian to function? See end of post for the latter.
Steps to reproduce
- Create a new note (e.g. link-test.md)
- Add a header (e.g. # Section)
- Add enough text to require scrolling
- Add another header of the same level (e.g. # Section 2)
- Link to header from a different document (e.g. [[internal-links-test#Section]]
- While in Edit mode, click on the link
I expect the linked note to open (it does), for the full linked section to be highlighted (it is), and for the section header to be in view. I expect to be navigated to the top of the linked section, as happens when clicking a linked header in Read mode (or when clicking on a header in the Outline core plugin, in Edit or Read mode).
Edit: When in Read mode, clicking a link to open in the same pane works this way. When clicking a command-clicking a link, to open in a new pane, it opens at the bottom of the linked section. I presume this is because I have Edit mode set as my default for new panes.
While the internal link does take me to the intended note and does highlight the linked section, it navigates me to the bottom of the linked section. I then have to scroll up to the top of the section to read.
- Operating system: macOS Catalina 10.15.7
- Debug info:
Obsidian version: v0.15.6
Installer version: v0.14.6
Operating system: Darwin Kernel Version 19.6.0: Thu May 6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64 19.6.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: Minimal
Snippets enabled: 1
Safe mode: off
Plugins installed: 8
Plugins enabled: 7
1: Advanced Tables
3: Minimal Theme Settings
4: Obsidian TODO | Text-based GTD
5: Todo.txt support
6: Periodic Notes
7: Rollover Daily Todos
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Now, is this a bug or a feature?
I can see a case for why this could be intended behavior. In Read mode, you’re reading so it makes sense to start at the top; in Edit mode, you are writing, and writing happens at the end of a section. It could, then, make sense to navigate to the bottom of a section so you can immediately start writing.
However, in my experience, when I am following a link while in Edit mode, my goal is to read a previous note or copy a previous note, to add to my writing elsewhere. I am not following the link to write in the linked document.
But maybe I am alone in this.
If this is not the intended behavior, here is a bug report! If it is intended, perhaps we could discuss whether this is how we want Obsidian internal links to work.