Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Force Read Mode

al3xwal3xw3k downloads

Forces Markdown files in specified folders to open in read-only mode.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Force Read Mode is a simple Obsidian plugin that ensures all Markdown files within specified paths are always opened in read (preview) mode. It’s useful when you want to prevent accidental edits or enforce a read-only experience for certain files.

Features

  • Automatically forces read mode when opening Markdown files from specified folders.
  • Supports multiple folder patterns.
  • Uses powerful micromatch glob syntax.
  • Simple and lightweight.
  • Quickly enable or disable via the Command Palette.
  • No impact on files outside the configured folders.

How It Works

  • When a Markdown file is opened, the plugin checks its path.
  • If the path matches a configured pattern, the file opens in read mode.
  • This happens every time the file is opened.
  • You can temporarily disable this behavior using a command.

How to Use

  1. Go to Settings → Community Plugins → Browse and install the Force Read Mode plugin.
  2. Enable the plugin from Settings → Community Plugins.
  3. Open Settings → Force Read Mode to configure:
    • Add a pattern for files you want to open in read mode (one pattern per line).
    • Patterns use micromatch syntax.
    • Examples:
      • Notes/** — all files under the Notes folder (any depth).
      • Projects/*/*.md — Markdown files directly inside a subfolder of Projects.
      • **/Readme.md — all Readme.md files.
  4. Use the Command Palette (Ctrl+P or Cmd+P) to toggle the plugin on or off with Force Read Mode: Enable or Force Read Mode: Disable.

Development

To contribute to or modify this plugin:

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Build the plugin with npm run build.
  4. Load the plugin into Obsidian for testing.
  5. Open a pull request with your changes.
76%
HealthGood
ReviewSatisfactory
About
Force Markdown files in specified paths to open in read (preview) mode to prevent accidental edits. Match files with multiple micromatch glob patterns and toggle the behavior on or off from the Command Palette.
FilesFoldersCommands
Details
Current version
1.0.4
Last updated
5 months ago
Created
2 years ago
Updates
5 releases
Downloads
3k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
al3xwal3xw
github.com/al3xw
GitHubal3xw
  1. Community
  2. Plugins
  3. Files
  4. Force Read Mode

Related plugins

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

Create Note in Folder

Add commands to create a note in a specific folder.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Trash Explorer

Restore and delete files from the Obsidian .trash folder.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.