ramandv3k downloadsSnippets manager with full mobile support. You can manage code snippets, infos like passport number, email signature or anything.
The Snippets Manager Plugin for Obsidian allows you to manage and quickly insert text snippets stored in a markdown file (or folder of markdown files, including subfolders). This plugin enhances your workflow by enabling fuzzy search for snippets, allowing you to copy them to your clipboard or directly paste them at the cursor position in your active note. Now, with Alfred integration, it's even more powerful.
Snippets can now be saved in Alfred JSON format for integration with Alfred. If enabled, your snippets will be automatically saved in a JSON format compatible with Alfred workflows.
You can now use Templater syntax in your snippets! If you have the Templater plugin installed, any snippet containing <% will be processed by Templater before insertion.
### Today's Date
Today is <% tp.date.now("YYYY-MM-DD") %>
Yes, you need it. In most of the cases, those apps will be available only for desktops. But this plugin will work on your mobile too.
I use Snippet Manager to quickly copy things like addresses, map locations, URLs, and quotes. With the help of the "Website shortcut" Android app and the Obsidian Advanced URI plugin, I’ve set up a shortcut directly to the snippet search modal. Now, with just one click, I can copy whatever I need to my clipboard and paste it anywhere on my phone.
Example Advanced URI link for Obsidian. You can create the link to the URL. [Replace your vault name accordingly]
obsidian://advanced-uri?vault=<your-vaultname>&commandid=snippets-manager%3Aopen-snippet-search
#tags to dynamically pull snippets from any note in your vault containing those tags.<% will be processed by Templater before insertion.✨ Check out latest updates
🪲 Report bugs and suggest features
❓ Ask questions
👍 Give thumbs up to issues important to you
This plugin will be available in the Obsidian community plugins list. If so, you can install it directly from Obsidian:
Go to Settings > Community Plugins > Browse.
Search for Snippets Manager.
Click Install and then Enable.
Or just install directly into Obsidian.
You can store snippets in single markdown files (e.g., Snippets.md), across multiple folders (e.g., Programming/), or dynamically pull them from any markdown file tagged with specific tags (e.g., #snippet).
In the plugin settings, you can provide a comma-separated list of locations and another for tags.
### Greeting
Hello, how are you doing today?
### Signature
Best regards,
[Your Name]
### Hello World
```js
helloworld() {
console.log("Hello World!!!");
}
```
Example with multiple files:
Settings > Snippets Manager.Snippets locations to your snippet files or folders separated by commas (e.g., Snippets.md, Support/).Snippets tags to dynamically resolve snippets (e.g., #snippet, #templates).Show full folder path as prefix if you want to hide or show long directory paths in your snippet names.Search and Insert Snippets:
Search Snippets.Enter to copy the snippet to your clipboard.CMD/CTRL + Enter to paste the snippet directly at the cursor position in the active note.Keyboard Shortcuts:
Enter: Copy the selected snippet to the clipboard.CMD/CTRL + Enter: Copy the selected snippet to the clipboard and paste it at the cursor position in the active note.Clone the repository:
git clone https://github.com/your-repo/snippet-manager
cd snippet-manager
Install dependencies:
npm install
Build the plugin:
npm run build
Develop with live reload:
npm run dev
Contributions are welcome! If you have any bug reports, feature requests, or code improvements, feel free to open an issue or submit a pull request.
This plugin is open-source software licensed under the MIT License.