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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Snippet Commands

deathaudeathau7k downloads

Register custom CSS snippets as commands (which you can bind hotkeys to).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

A plugin for Obsidian to add all your CSS snippets as commands, accessible from the command pallette and even assignable to hotkeys!

Important: If your snippets change while Obsidian is running, there is also a command to "Reload all snippet commands"

Compatibility

Compatible with Obsidian v0.9.18+ (when the CSS snippets were introduced).

Notes

This is all very experimental at the moment, so parts might not work, etc.

Installation

From within Obsidian

From Obsidian v0.9.8, you can activate this plugin within Obsidian by doing the following:

  • Open Settings > Third-party plugin
  • Make sure Safe mode is off
  • Click Browse community plugins
  • Search for this plugin
  • Click Install
  • Once installed, close the community plugins window and activate the newly installed plugin

Updates

You can follow the same procedure to update the plugin

From GitHub

  • Download the Latest Release from the Releases section of the GitHub Repository
  • Extract the plugin folder from the zip to your vault's plugins folder: <vault>/.obsidian/plugins/
    Note: On some machines the .obsidian folder may be hidden. On MacOS you should be able to press Command+Shift+Dot to show the folder in Finder.
  • Reload Obsidian
  • If prompted about Safe Mode, you can disable safe mode and enable the plugin. Otherwise head to Settings, third-party plugins, make sure safe mode is off and enable the plugin from there.

Security

Third-party plugins can access files on your computer, connect to the internet, and even install additional programs.

The source code of this plugin is available on GitHub for you to audit yourself, but installing plugins into Obsidian is currently a matter of trust.

I can assure you here that I do nothing to collect your data, send information to the internet or otherwise do anything nefarious with your system. However, be aware that I could, and you only have my word that I don't.

Development

This project uses Typescript to provide type checking and documentation.
The repo depends on the latest plugin API in Typescript Definition format, which contains TSDoc comments describing what it does.

If you want to contribute to development and/or just customize it with your own tweaks, you can do the following:

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run build to compile.
  • Copy manifest.json, main.js and styles.css to a subfolder of your plugins folder (e.g, <vault>/.obsidian/plugins/<plugin-name>/)
  • Reload obsidian to see changes

Alternately, you can clone the repo directly into your plugins folder and once dependencies are installed use npm run dev to start compilation in watch mode.
You may have to reload obsidian (ctrl+R) to see changes.

Pricing

Huh? This is an open-source plugin I made for fun. It's completely free. However, if you absolutely have to send me money because you like it that much, feel free to throw some coins in my hat via the following:

Version History

0.0.1

Initial Release

66%
HealthFair
ReviewSatisfactory
About
Expose all CSS snippets as commands in the command palette and assign hotkeys to toggle them. Reload updated snippets on demand with a dedicated "Reload all snippet commands" action.
SnippetsCommandsHotkeys
Details
Current version
0.0.2
Last updated
5 years ago
Created
5 years ago
Updates
2 releases
Downloads
7k
Compatible with
Obsidian 0.9.18+
License
MIT
Report bugRequest featureReport plugin
Author
deathaudeathau
github.com/deathau
GitHubdeathau
  1. Community
  2. Plugins
  3. Snippets
  4. Snippet Commands

Related plugins

Tray

Run Obsidian from the system tray for customisable window management and global quick notes.

Code Editor Shortcuts

Add keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code (VS Code) or Sublime Text.

Doubleshift

Open the command palette by pressing Shift (or any other key) twice like in IntelliJ and create your own shortcuts.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Hotkey Helper

Easily see and access any plugin's settings or hotkey assignments (and conflicts) from the Community Plugins tab.

Collapse All

Extend collapse/expand all with commands that can be bound to hotkeys.

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

Quick Tagger

Add and remove tags quickly. Tag search results, bulk tag, and add dedicated buttons/commands for your favorites!

Key Promoter

Learn keyboard shortcuts by showing them when using the mouse.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.