Better Canvas Lock

by Mara-Li
5
4
3
2
1
Score: 36/100

Description

Category: Note Enhancements

The Better Canvas Lock plugin allows you to lock the view of your Obsidian canvas, disabling features like zooming, selecting, dragging and dropping, and scrolling. This can be particularly useful when working on complex notes or presentations where unwanted interactions might disrupt your workflow. The plugin also includes a log feature for debugging purposes, although be warned that it may produce some redundant error messages in the console. Additionally, you can still enable limited interaction with canvas cards by focusing on them, which is helpful if you need to adjust the view of a specific card. Overall, Better Canvas Lock provides more control over your Obsidian experience and helps you stay focused on your work.

Reviews

No reviews yet.

Stats

23
stars
5,348
downloads
1
forks
887
days
709
days
709
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
3
total issues
3
open issues
0
closed issues
11
commits

Latest Version

2 years ago

Changelog

Changelog

All notable changes to this project will be documented in this file. See commit-and-tag-version for commit guidelines.

0.0.15 (2024-05-26)

Bug Fixes

Other

Update manifest

README file from

Github

Better canvas lock

Experimental plugin for Obsidian, that lock the "view" of canvas. You can disable:

  • Zoom
  • Selection of canvas
  • Drag and drop of canvas
  • Scroll

It will monkey-patch the lock function using monkey-around, so you just need to enable the plugin to make it work. Also, canvas are detected on the active-leaf-change.

You can also enable/disable the logs in the console. Beware, because the logs spam the console, and you will see redondant error.

[!NOTE] For some "usefulness", the dragging / scrolling is enabled when a canvas card is focused, so you can move freely the canvas and adjust the view (SHIFT+2) on a specific card if you need. To disable again the dragging, just click away (or escape) from the canvas card.

https://github.com/mara-li/obsidian-better-canvas-lock/assets/30244939/c5359f72-2234-4959-a094-87c7c51a3372

📥 Installation

  • From Obsidian's community plugins
  • Using BRAT with https://github.com/mara-li/obsidian-better-canvas-lock
  • From the release page:
  • Download the latest release
  • Unzip better-canvas-lock.zip in .obsidian/plugins/ path
  • In Obsidian settings, reload the plugin
  • Enable the plugin

🤖 Developing

To make changes to this plugin, first ensure you have the dependencies installed.

pnpm install

To start building the plugin with what mode enabled run the following command:

pnpm run dev

Note If you haven't already installed the hot-reload-plugin you'll be prompted to. You need to enable that plugin in your obsidian vault before hot-reloading will start. You might need to refresh your plugin list for it to show up. To start a release build run the following command:

pnpm run build

Note You can use the .env file with adding the key VAULT_DEV to specify the path to your Obsidian (development) vault. This will allow you to test your plugin without specify each times the path to the vault.

📤 Export

You can use the pnpm run export command to export your plugin to your Obsidian Main Vault. To do that, you need the .env file with the following content:

VAULT="path/to/your/obsidian/vault"
VAULT_DEV="path/to/your/dev/vault"

🎼 Languages

  • English
  • French

To add a translation:

  • Fork the repository
  • Add the translation in the src/i18n/locales folder with the name of the language (ex: fr.json)
  • Copy the content of the en.json file in the new file
  • Translate the content
  • Create a pull request

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Lock Screen
4 years ago by Eric Biewener
Canvas Presentation
3 years ago by Boninall
A plugin to help you display cards based on sequence.
Canvas Random Note
3 years ago by jmilldotdev
Random notes from search on the Obsidian canvas
Canvas Conversation
3 years ago by André Baltazar
A plugin for Obsidian that allows you to create a canvas conversation using ChatGPT.
Canvas Mindmap
3 years ago by Boninall
A plugin to make your canvas work like a mindmap.
Link Exploder
3 years ago by Ben Hughes
Canvas Filter
3 years ago by Ivan Koshelev
Obsidian Canvas plugin that let's you show only pages / arrows with specific tags / colors / connections.
Optimize Canvas Connections
3 years ago by Félix Chénier
An Obsidian plugin that declutters a canvas by reconnecting notes using their nearest edges
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Simple CanvaSearch
3 years ago by ddalexb
Index Checker
3 years ago by Pavlo Deshko
Repo for Index Checker plugin for Obsidian
Lovely-Mindmap
3 years ago by shaun
Build your own knowledge graph with smiles :-)
Canvas Send to Back
3 years ago by Zachatoo
Send a card in Obsidian Canvas to be behind all other cards.
Collapse Node
3 years ago by Boninall
A node collapsing plugin for Canvas in Obsidian.
Canvas LLM Extender
2 years ago by Pasi Saarinen
Let the OpenAI LLM add nodes to your Obsidian canvas
Canvas Card Background Remover
2 years ago by luxmargos
This Obsidian plugin allows you to make the background of cards transparent in the Canvas for specific embed types, including Image (png), Canvas, and even Markdown.
Canvas Daily Note
2 years ago by Andrew McGivery
A plugin for Obsidian that allows you to add a daily note node to the canvas that will always show todays note.
Password Protection
2 years ago by Qing Li
This is a password plugin for protecting your private notes and diary, no encrypt, no decrypt.
CardNote
2 years ago by cycsd
Help you extract your thoughts more quickly in canvas
Canvas Link Optimizer
2 years ago by khaelar
An Obsidian plugin that optimizes canvas links by displaying a page thumbnail.
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Canvas Mindmap Helper
2 years ago by Tim Smart
Advanced Canvas
2 years ago by Developer-Mike
⚡ Supercharge your canvas experience! Graph view integration and unlimited styling options empower flowcharts, dynamic presentations, and interconnected knowledge.
Crafty
2 years ago by liolle
Add tooltip to your obsidian canvas's nodes and navigation between nodes
Canvas minimap
2 years ago by ifree
Obsidian canvas minimap
Semantic Canvas
2 years ago by Aaron Gillespie
An Obsidian Plugin to update note properties using links on Canvases
Canvas2Document
2 years ago by slnsys
Plugin for Obsidian to convert a complete Canvas to a long form document
Advanced Сanvas Filter
2 years ago by CHex0K
Search In Canvas
2 years ago by Boninall
Node Auto Resize
2 years ago by Boninall
Caret
2 years ago by Jake Colling
Caret, an Obsidian Plugin
Canvas Picture in Picture
2 years ago by hypersphere
Canvas Explorer
2 years ago by Henri Jamet
A plugin that enables users to explore their vault by iteratively adding or ignoring linked notes, ultimately generating a customizable canvas that visually represents the preserved notes and their connections.
Folder Canvas
a year ago by Nancy Lee
Generate a canvas view of your folder structure
Force Read Mode
a year ago by al3xw
Circuit Sketcher
a year ago by Code Forge Temple
A plugin for Obsidian to draw circuits on a canvas.
Enhanced Canvas
a year ago by RobertttBS
When editing on Canvas, properties and Markdown links to notes are automatically updated, enabling backlinks in Canvas.
Attachments MD Indexer
a year ago by Ian Inkov
Converts Obsidian canvas files to markdown index files, making canvas content searchable and graph-viewable within Obsidian.
Canvas Format Brush
a year ago by wenlzhang
An Obsidian plugin that allows you to copy and paste formatting attributes (size and color) between canvas elements, similar to the format painter in Word.
Canvas Connect
10 months ago by camadkins
Dynamically optimize connection anchors in Obsidian Canvas view
Timeline Canvas Creator
10 months ago by chris-codes1
Quickly create timeline structured canvases in Obsidian.
Send to Canvas
9 months ago by wenlzhang
An Obsidian plugin that allows you to send tasks, blocks, and notes to Canvas files as plain text, links, and embeds.
HiWords
7 months ago by Kai
Effortlessly grow your vocabulary as you read, with automatic highlighting and translation of unfamiliar words.
Canvas Link to Group
6 months ago by TGRRRR
Plugin for Obsidian Canvas enabling direct links to specific groups within canvas files for improved navigation