Quickly wrap selected text with customisable tags using keyboard shortcuts.
This plugin allows you to wrap selected text with custom prefix and suffix tags, such as HTML tags. Define multiple quick tags and assign keyboard shortcuts for fast editing. Add and delete quick tags as needed from the settings panel.
- Edit quick tags: Go to Settings > Quick Tags. Add new quick tags by specifying a name, prefix, and suffix.
- Set keyboard shortcuts: Go to Settings > Hotkeys. Search
Quick Wrapper
and find the commands Quick Wrapper: Wrap with … followed by your quick tag names. Assign your desired keyboard shortcuts. - Wrap text: In the editor, select the text you want to wrap. Use the Command palette or the assigned keyboard shortcuts to wrap the text.
Note: After deleting a quick tag from settings, its command will remain available in the Command palette until you restart Obsidian or disable and re-enable the plugin.
- Use command U to wrap with
<u>...</u>
. - Use command shift K to wrap with
<kbd>...</kbd>
.
Contributions are welcome! Submit issues or pull requests on the GitHub repository.