Obsidian has a feature to set the default view mode - you can set it to “edit” when you frequently edit content, or to “view” when you more frequently just browse and view content.
However, my usage is mixed. There are some files which I usually only view, and others where I constantly edit. It would be great if Obsidian could somehow remember the last view mode for each file individually.
+1 I would love this feature. My most common workflow is that I reference evergreen notes or MOCs in view mode and use them to follow links. I follow the links to sub-notes which I am still writing so they are in the editing process.
For example, I’m using the Dataview plugin to generate tables for tasks and I’d like to be in view mode for that file and stay in edit mode for my notes. Now I have to switch between the modes, which is not the best experience.
I’ve built a plug-in for this; will have a look to publish it as community plug-in. As suggested above: it analyzes the YAML to decide whether to display the file in PREVIEW or EDITOR mode, regardless of Obsidian’s default setting. Think of notes serving as a dashboard (and containing dataview or tasks as code blocks).