Force Read Mode

by al3xw
5
4
3
2
1
Score: 46/100

Description

The Force Read Mode plugin allows users to enforce read-only mode for markdown files within specified folders in Obsidian. This ensures that files from these folders are always opened in read (preview) mode, preventing accidental edits. Users can configure multiple folder paths where this behavior is applied. The plugin is ideal for those who want to protect specific notes or folders from unintended changes or maintain a consistent read-only experience. Its simple settings interface makes it easy to specify folder paths where read mode should be enforced, offering greater control over file access and editing within Obsidian.

Reviews

No reviews yet.

Stats

17
stars
3,777
downloads
1
forks
505
days
127
days
127
days
1
total PRs
0
open PRs
1
closed PRs
0
merged PRs
10
total issues
5
open issues
5
closed issues
8
commits

Latest Version

4 months ago

Changelog

Added micromatch

README file from

Github

Force Read Mode

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.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Core Search Assistant
4 years ago by qawatake
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Link Embed
4 years ago by SErAphLi
This plugin allow you to convert URLs in your notes into embeded previews.
Enlightenment
4 years ago by ryanjamurphy
Pay attention to what you're paying attention to.
Hugo preview obsidian
3 years ago by fzdwx
:superhero: Hugo preview in obsidian
Floating Search
3 years ago by Boninall
A plugin for searching text by using Obsidian default search view.
Automatic List Styles
3 years ago by Max McGuire
This plugin automatically formats the styles of ordered lists, incrementing the list style for each layer.
Auto Hyperlink
3 years ago by take6
2Hop Links Plus
3 years ago by Tokuhiro Matsuno, L7Cy
Related links up to 2 hops away are displayed in a card format.
Email Reader
3 years ago by Pulsovi
Better Canvas Lock
2 years ago by Mara-Li
An Obsidian plugin that improve the read-only mode of Canvas.
Crypt It
2 years ago by fyears
Obsidian plugin allowing users to right click on a file to generate an encryption version of the file using a password.
Refresh Preview
2 years ago by mnaoumov
Obsidian Plugin that allows to refresh any view without reopening it.
Convert url to preview (iframe)
5 years ago by FHachez
Plugin for Obsidian.md to convert a selected URL to an iframe.
Rich Links
5 years ago by dhamaniasad
Auto Split
4 years ago by James Sartelle
Open notes with side-by-side editor & preview
Link Preview
a year ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
MP Preview
a year ago by Yeban
一个帮助你快速将 Obsidian 笔记转换为微信公众号格式的插件。
Ace Code Editor
a year ago by RavenHogWarts
An enhanced code editor using Ace editor
Vault Encrypt
5 months ago by Pluppen
Obsidian Plugin that encrypts/decrypts the entire vault.
Card Forge
2 months ago by Carl Sverre
Convert notes into printable cards.