Hotstrings
approvedby wakywayne
Allows you to set custom hot strings that get expanded to text once typed.
Hotstrings Plugin
A plugin for Obsidian that allows you to create custom text expansions (hotstrings) that automatically expand as you type.
Features
- Create custom text expansions that trigger automatically while typing
- Supports both simple and complex text replacements
- Easy to configure through the plugin settings
- Works in any note or editor within Obsidian
- Hotstrings can be reloaded without restarting Obsidian
Installation
- Open Obsidian Settings
- Go to Community Plugins and disable Safe Mode
- Click Browse and search for "Hotstrings"
- Install the plugin and enable it
Usage
Creating Hotstrings
- Open Obsidian Settings
- Navigate to the Hotstrings plugin settings
- Add new hotstrings in the format:
- Trigger: The text you type
- Expansion: The text it expands to
Example: LOL~.~{Laugh Out Loud}
Using Hotstrings
Simply type your trigger text anywhere in Obsidian. The plugin will automatically replace it with your defined expansion.
Reloading Hotstrings
If you make changes to your hotstrings, you can reload them using the command palette:
- Press
Ctrl/Cmd + Pto open the command palette - Search for "Reload Hotstrings"
- Select the command to reload your changes Alternatively you can add a hotkey by clicking the plus button in the hotkey settings
Examples
Here are some useful hotstring examples:
SIG~.~{Your signature saying how you are a nice person and proffesional or something}→ Your signatureSUPA~.~{supercalifragilisticexpialidocious}→ Long word that you don't want to have to typeMAILAD→ Your email address
Tips
- Use the quick add community plugin to easily add hotstrings to the hotstring file git-repo
- Hotstrings are case-sensitive by default
- Triggers must be unique
- Use the reload command after adding new hotstrings
Troubleshooting
If hotstrings aren't working:
- Check if the plugin is enabled under Community Plugins
- Try reloading the hotstrings using the command palette
- Ensure there are no conflicts with your hotstrings
- Restart Obsidian if issues persist
Support
If you encounter any issues or have suggestions:
- Open an issue on the GitHub repository
- Include steps to reproduce the problem
- Provide your Obsidian version and operating system
Contributing
Contributions are always welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git checkout -b featureName) - Make your changes
- Test the code for a week or few days if you are a heavy user
- Commit your changes
- Push to the branch (
git push origin feature/improvement) - Create a Pull Request
Development Setup
- Clone your fork of the repository
- Install dependencies with
npm install - Make your changes in the
main.tsfile - Build the plugin with
npm run dev
Please ensure your PR:
- Follows the existing code style
- Includes relevant documentation updates
- Describes the changes made
- References any related issues
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.