On Android, I often go back to previous notes with the back-button as it is fast and acessible.
Sometimes (e.g. opening a link in a new tab) the back-button behavior changes in Obsidian. it going back is not possible (new tab) it offers to close the app on a second press of the back-button.
Instead, I think it would be more useful to close the tab instead and go back to the previously active tab.
This would be more consistent with a back-key behavior.
Proposed solution
Make the back-key close the tab if no further back-history exists. (or make this an option)
Current workaround (optional)
I try to not work in tabs at all to keep the back-button behavior consistent.
Unfortunately, opening links in Excalidraw will always open in a new tab if no modifiers are held.
The back button in android usually works like described in this thread. Web browsers work like this:
Click on link to open new tab
New tab opens
Pressing back button closes the newly opened tab and returns to the previous tab
If back button is pressed when only a single tab is open, the browser closes the tab and exits/minimizes the app
Virtually all browsers on Android work this way and it is indeed drilled into everyoneâs muscle memory. I have used Obsidian on mobile for over a year and have still not gotten used to how this is currently handled.
A concrete use case in Obsidian for this is having a pinned âdashboardâ markdown file. It contains links to my most used notes. I want to click on link, have a new tab open and once I am done with the tab press backward so that this tab closes and I come back to my pinned tab.