View Mode Lock

by GOODJINC
5
4
3
2
1
Score: 15/100

Description

Reviews

No reviews yet.

Stats

0
stars
717
downloads
1
forks
64
days
61
days
61
days
1
total PRs
1
open PRs
0
closed PRs
0
merged PRs
2
total issues
2
open issues
0
closed issues
8
commits

Latest Version

2 months ago

Changelog

What changed

  • Added separate locking behavior for desktop, tablet, and phone
  • Each device can follow existing rules, always use Reading view, or disable locking
  • Device behavior takes priority over note overrides, lock rules, and the global lock
  • Existing users keep the previous behavior through the default Follow existing rules option
  • Separated settings into Device behavior, Default rules, and Lock rules
  • Added clearer command notices when a device policy overrides a saved setting
  • Updated the English and Korean documentation

변경 사항

  • PC, 태블릿, 휴대폰의 잠금 동작을 각각 설정할 수 있습니다
  • 기기마다 기존 규칙 따르기, 항상 읽기 모드, 잠금 사용 안 함을 선택할 수 있습니다
  • 기기별 동작이 노트별 설정, 잠금 규칙 및 전체 잠금보다 우선합니다
  • 기존 사용자는 기본값인 기존 규칙 따르기를 통해 이전 동작을 유지합니다
  • 설정 화면을 기기별 동작, 기본 규칙, 잠금 규칙으로 구분했습니다
  • 기기 정책이 저장된 설정보다 우선할 때 명령어 알림을 명확하게 개선했습니다
  • 영어 및 한국어 README를 갱신했습니다

Full Changelog: https://github.com/GOODJINC/obsidian-view-mode-lock/compare/1.3.0...1.4.0

README file from

Github

View Mode Lock

English | 한국어

Lock Obsidian notes to Reading, Live Preview, or Source mode.

Features

  • Lock every Markdown note to Reading view.
  • Choose separate locking behavior for desktop, tablet, and phone.
  • Create rules by folder, tag, or property value.
  • Override rules for individual notes.
  • Works on desktop, mobile, and tablet.
  • Uses Korean when Obsidian's app language is Korean; otherwise uses English.
  • Uses Obsidian's metadata cache to stay lightweight.

Usage

Open Settings → View Mode Lock.

  • Enable Lock all Markdown notes to make Reading view the default for every note.
  • Choose whether each device follows the rules, always uses Reading view, or disables locking.
  • Add a rule to select a folder, tag, or property value and its locked view mode.
  • Suggested folders, tags, properties, and property values appear while typing.

Folder rules include subfolders. If multiple rules match, the first matching rule is used.

Device behavior

Configure desktop, tablet, and phone independently:

Option Result
Follow existing rules Use note overrides, rules, and the global lock
Always use Reading view Lock every note to Reading view on this device
Disable locking Allow view mode changes on this device

Language

View Mode Lock follows the language selected in Obsidian → Settings → General → Language. It uses Korean when Obsidian is set to Korean and English for every other language. The system language is not used.

Note-level override

Add view-mode-lock to a note's properties:

view-mode-lock: reading

Supported values:

Value Result
reading Lock to Reading view
live-preview Lock to Live Preview
source Lock to Source mode
off Exempt the note from general rules when the device follows existing rules

The property name can be changed in the plugin settings.

Priority

  1. Device behavior
  2. Note-level override when following existing rules
  3. Folder, tag, and property rules
  4. Global Reading lock

Commands

  • Toggle lock for current note: switches the current note between reading and off.
  • Toggle global reading lock: enables or disables the global lock.

Assign shortcuts in Settings → Hotkeys. No default shortcuts are included.

Manual installation

Copy these files into .obsidian/plugins/view-mode-lock/:

  • main.js
  • manifest.json
  • styles.css

Then reload Obsidian and enable View Mode Lock under Community plugins.

Development

npm install
npm run build
npm run lint

License

MIT © 2026 GOODJINC