Read Only View - keep selected notes in Reading view to avoid accidental edits

Disclaimer

Is this project open source? Yes
Is this project completely free? Yes
Is this project vibe-coded beyond the author’s ability to comprehend how it works? No
Community Directory Link: Read Only View


Hi everyone :waving_hand:

I use Obsidian mostly as a collection of Markdown notes and personal summaries. A lot of the time I’m not actively editing them — I’m just rereading them from my phone or tablet.

One thing that kept happening to me: I would accidentally tap the screen while reading, Obsidian would switch into edit mode, and the keyboard would open. It’s a small thing, but after it happens often enough, it becomes annoying — especially on mobile.

So I made a small plugin: Read Only View.

Read-Only-View-note-example

It keeps selected Markdown notes in Reading view based on include and exclude path rules. The goal is not to provide real file-level security or OS-level locking. It is more like a simple “anti-accidental-edit” layer for notes that you mostly read.

What it can be useful for

  • folders with summaries or reference notes
  • archive folders
  • documentation notes
  • notes you often read from mobile/tablet
  • shared or semi-stable vault content
  • any notes where accidental editing is more annoying than useful

How it works

You define include/exclude rules based on vault paths.

For example, you can keep everything inside a folder in Reading view:

Notes/Summaries/

Or include a folder but exclude drafts:

Include:
Notes/Summaries/

Exclude:
Notes/Summaries/Drafts/

By default, matching is simple path/prefix-based. Glob patterns can also be enabled if you need more flexible rules.

The plugin also includes:

  • include/exclude rules
  • optional glob patterns
  • case-sensitive matching
  • diagnostics for ignored or invalid rules
  • path tester
  • command palette actions
  • desktop and mobile support

Links

I’d be happy to get feedback, especially from people who also use Obsidian as a reading/reference vault on mobile or tablet.

1 Like

Small update for this thread: Read Only View 1.0.6 is out.

The main fix is for read-only enforcement inside hover preview editors. If a matching note is opened in hover preview, the plugin should now keep it in Reading view more reliably.

I also refreshed the README screenshots so the setup flow is easier to understand.

Hi!

Not an issue with the plugin, but I noticed on the community site the images are cropped a bit odd. Not sure if it’s something you can fix on your end, but just thought I’d let you know. :grinning_face:

Hi!

Thanks for noticing and letting me know! I’ve tweaked the preview screenshots a bit, they should look better now. Appreciate the heads-up! :slightly_smiling_face:

Small update for this thread: Read Only View 1.0.7 is out.

This one is not a feature release, but more of a stability pass.

I spent some time auditing the plugin internals and tightened a few edge cases around hover previews, popout windows, lifecycle cleanup, and settings handling. The plugin now does a better job cleaning up delayed work when it is disabled/reloaded, handles popout-related observer logic more carefully, validates saved settings on startup, and does less unnecessary work while editing rules in the settings tab.

I also added more regression tests around rule matching, hover preview handling, settings validation, debounced saves/renders, and cleanup behavior.

So the visible behavior should mostly stay the same, but 1.0.7 should be a bit more reliable in weird cases like fast switching, popouts, hover previews, and settings edits.