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

Custom Comments

jack-chroniclejack-chronicle582 downloads

Create custom keyboard shortcuts that enclose comments.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates12

Adds a method to create custom keyboard shortcuts that enclose comments.

Features

I'm putting comments in quotes as they don't really work as comments unless you use one of the methods supported by obsidian (HTML or Markdown)

  • Insert custom comment templates anywhere in your notes.
  • Define your own comment format using {cursor} as a placeholder for the cursor position.
    • Example templates:
      • %% {cursor} %%
      • <!-- {cursor} -->
  • You can add additional sets if you want even more 'comment' markers
    • Each set has a toggle for adding commands for them
  • A command for reloading the plugin if you have more than 9 additional sets of 'comment' markers

Installation

BRAT (Beta Reviewers Auto-update Tester)

  1. Install the BRAT plugin in Obsidian.
  2. In BRAT settings, add this repository's URL as a beta plugin:
    https://github.com/Jack-Chronicle/custom-comment
  3. BRAT will handle installing and updating the plugin automatically.

Manual Installation

  1. Download the main.js and manifest.json files from the Releases page
  2. Move the files to your Obsidian vault's .obsidian/plugins/custom-comment folder.
    1. You can open this up by going to your settings > community plugins page and clicking the little folder icon

Community Plugins

  • Currently Working on approval

Usage

  • Open Obsidian and enable the "Custom Comments" plugin in the community plugins settings.
  • Go to the plugin settings to customize your comment template.
  • Use the "Insert Comment" command (via command palette or hotkey) to insert your custom comment at the cursor position.

Settings

  • Comment Format: Set your desired comment template. Use {cursor} to indicate where the cursor should be placed after insertion.
  • Word-only Mode: If enabled, toggling will comment/uncomment the word at the cursor instead of inserting the template at the cursor position.
  • Additional Marker Sets: Add multiple custom marker sets (start/end pairs). Each set can be enabled/disabled for command registration.
    • A toggle for en/disabling the command for that set
    • Two input fields, one for the start and one for the end markers
  • Reload Marker Commands: Command to reload marker commands in-place if you change marker sets (no plugin reload required).

Development

  • To watch for changes during development: npm run dev

License

MIT


Author: Jack Chronicle

74%
HealthGood
ReviewCaution
About
Insert customizable comment templates anywhere in notes using {cursor} to set the cursor position. Add multiple marker sets with toggleable commands and a word-only mode to comment or uncomment the word at the cursor.
EditingCommandsTemplating
Details
Current version
0.2.8
Last updated
9 months ago
Created
12 months ago
Updates
12 releases
Downloads
582
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
jack-chroniclejack-chronicle
github.com/Jack-Chronicle
GitHubjack-chronicle
  1. Community
  2. Plugins
  3. Editing
  4. Custom Comments

Related plugins

Paste URL into selection

Paste URL "into" selected text.

Vimrc Support

Auto-load a startup file with Vim commands.

Code Editor Shortcuts

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

Advanced Tables

Improved table navigation, formatting, and manipulation.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Outliner

Work with your lists like in Workflowy or Roam Research.

Commander

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