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

Keyboard Formatter

lauloquelauloque1k downloads

Format selected text into HTML <kbd> tags for representing keyboard keys and mouse inputs.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

Formats keyboard text (kbd) in your Obsidian notes quickly and consistently.

This Obsidian plugin allows you to select text within your notes and, with a simple keyboard shortcut of your choosing , automatically format common keyboard keys and mouse buttons using HTML <kbd> tags. This provides a visually distinct and semantic way to represent user input instructions in your writing.

Features

  • Effortless Formatting: Select text containing keyboard key names and press a keyboard shortcut of your choosing to format them. For examplectrl shift a will become ⌃ Ctrl ⇧ Shift A.
  • Special Keys Recognition:
    • Common modifier keys: ⌃ Ctrl ⇧ Shift ⎇ Alt ⌘ Cmd Win etc.
    • Function keys: F1-F12
    • Command keys ⇥ Tab, ⌦ Delete ⏎ Enter ⌫ Backspace
    • Directions like up and left become ↑ Up ← Left to mimic arrow keys
    • Numpad keys such as numpad . or numpad 5 will be formatted as Numpad • or Numpad 5
  • Mouse Button Formatting: "lmb" as Left 🖱️, "rmb" as Right 🖱️, "mmb" as Middle 🖱️, and "wheel" or "scrollwheel" as Wheel 🖱️.
  • Case-Insensitive Matching: Key names are recognized regardless of their capitalization (e.g., "Ctrl", "ctrl", and "CTRL" all become ⌘ Ctrl).
  • Single Letter Capitalization: Capitalizes single-letter words (useful for individual key presses), like "a" becoming A.
  • Light and Dark themes for everyone to enjoy!

How to Use

  1. Install the plugin:

    • Open Obsidian.
    • Go to Settings -> Community plugins.
    • Make sure Safe mode is off.
    • Click Browse and search for "Keyboard Formatter".
    • Click Install and then Enable the plugin.
    • Alternatively, you can manually install it by copying the contents of the latest GitHub release from this repository into your Obsidian vault's plugins folder (<your_vault>/.obsidian/plugins/keyboard-formatter), then enable the plugin from your Obsidian's Community plugins list.
    • From the Community Plugins section, click the ➕ icon to set up your keyboard shortcut for this plugin, or click the ⚙️ icon to customize the text and background colors used for the KBD elements:
      image
  2. Format text:

    • Open a Markdown note in Obsidian.
    • Select the text you want to format (e.g., ctrl shift a).
    • Press the keyboard shortcut to run the tool
    • The selected text will be transformed into: <kbd>⌃ Ctrl</kbd> <kbd>⇧ Shift</kbd> <kbd>A</kbd> which looks like this: ⌃ Ctrl ⇧ Shift A.

Keyboard Symbols Reference

This plugin uses cross-platform Unicode symbols for keyboard keys to ensure consistency across different platforms and applications. Here's the mapping of symbols used:

Modifier Keys

Symbol Key
⌃ Control/Ctrl
⇧ Shift
⎇ Alt
⌥ Option
⌘ Command/Cmd

Navigation & Special Keys

Symbol Key
⇥ Tab
⏎ Enter/Return
⌫ Backspace
⌦ Delete
⇪ Caps Lock
⎋ Esc
↑←→↓ Directional Arrows

Super/Meta Keys

Symbol Key
⊞ Win
❖ Super
◆ Meta

Contribute

This is a simple summary of the official sample-plugin docs. If you need more info, go there first.

  1. Have Node.js/npm installed

  2. Clone the repo locally, ideally inside a test vault for easy testing, e.g. <test-vault>/.obsidian/plugins/Keyboard-Formatter

  3. Open a terminal in the repo to install dependencies and run the development build:

    npm install
    npm run dev
    

    This will watch the TypeScript sources and automatically rebuild main.js whenever you save. Keep this running while you work.

  4. After each update of the plugin, you need to refresh it in Obsidian too. Either:

    • Disable/re-enable it in Obsidian
    • Use a hot-reload plugin such as this one

Update the release

Following: Using GitHub actions to create releases for plugins - Obsidian Hub - Obsidian Publish

After validating the changes, gotta make a new release available to Obsidian's repo.

  1. Update the manifest.json with the right version, commit and push it. use git tag , e.g. git tag 1.0.0 using semantic versioning.
  2. Push the new tag to GitHub git push origin --tags GitHub takes care of the rest

Support My Work

If you find this plugin helpful and would like to support its development, you can buy me a coffee on Ko-fi! Your support is greatly appreciated.


Thank you for using Obsidian Keyboard Formatter! If you have any issues or suggestions, please feel free to open an issue on this repository.

HealthExcellent
ReviewSatisfactory
About
Format keyboard and mouse input inline as semantic <kbd> tags using a shortcut to convert modifiers (Ctrl, Shift, Alt, Cmd, Win), function keys, arrows, numpad keys, and mouse buttons into consistent, readable symbols. Recognize names case-insensitively and capitalize single-letter keys; include light and dark display styles.
FormattingHTMLEditing
Details
Current version
1.3.0
Last updated
2 months ago
Created
2 years ago
Updates
6 releases
Downloads
1k
Compatible with
Obsidian 1.8.0+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
lauloquelauloque
gihub.com/Lauloque
GitHublauloque
  1. Community
  2. Plugins
  3. Formatting
  4. Keyboard Formatter

Related plugins

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Underline

Add underline with shortcut.

Text Format

Format selected text upper/lower/capitalize.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

Easy Typing

Auto format when typing.

List Callouts

Create simple callouts in lists.

Admonition

Admonition block-styled content.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Meta Bind

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