MySnippets

by Chetachi
5
4
3
2
1
Score: 31/100

Description

Category: Customization & UI

The MySnippets plugin enhances the management of CSS snippets in Obsidian by introducing a convenient status bar menu. This menu allows users to quickly toggle snippets on or off, open them for editing, or reload the snippets folder without navigating to the settings menu. Additional features include creating new CSS snippets using a modal with customizable templates, as well as optional settings for automatically toggling snippets on or opening them after creation. The plugin also provides aesthetic customization, including a 'glass' style for the menu interface. Designed for ease of use, MySnippets streamlines snippet editing and activation directly within the workspace, reducing interruptions and improving workflow efficiency.

Reviews

No reviews yet.

Stats

197
stars
36,623
downloads
6
forks
1,661
days
742
days
1,343
days
4
total PRs
2
open PRs
0
closed PRs
2
merged PRs
20
total issues
18
open issues
2
closed issues
0
commits

Latest Version

4 years ago

Changelog

Fixed issue with snippets reloading after file creation

MySnippets v1 2 3

README file from

Github

MySnippets Plugin

MySnippets-Plugin Downloads MySnippets-Plugin Releases

Status: This plugin is currently available in the Obsidian plugin store

Remember that one time, where you were trying to test out a few cool and new snippets? Oh, but you had to constantly, go back and forth between workspace and settings tab just to toggle them on and off. Been there, done that… but wait! What if you could… I dunno… have your snippets right there in front of you? What if you could toggle your snippets on and off from the comfort of your workspace? That'd be super cool, right? I know! Well, you've come to the right place!

MySnippets is a plugin that adds a status bar menu allowing the user to quickly manage their snippets within the comfort of their workspace 🖌. This plugin makes managing snippets a breeze with a beautiful mini menu that shows up with a click of a button!

Demo

Ease of Use

We all love hacking away at Obsidian with a bunch of different snippets, but I'm willing to bet that most of us don't like having to trigger and re-trigger the settings tab just to get to our snippets. With MySnippets, we can finally access our snippets and toggle them on and off easily! Think of it as a condensed and tucked away version of the "CSS Snippets" section in the settings tab. I don't know about you, but when I want to edit my snippets, I don't want to have to rummage through the settings tab just to get to them! It can be distracting, a time waster, and just overall annoying! So let's end the era of Settings > Appearance > CSS Snippets and welcome the new era of ← Click!

How it Works

MySnippets appends a cute little status bar icon in your workspace. All you need to do is click and see all of your lovely snippets in a menu! Here, you will see two buttons to the bottom of the menu. The first is your "Reload" button and the second is your "Folder" button. Triggering "Reload" button will allow the plugin to reread your snippets folder, in case you have decided to create a new snippet or delete a snippet. Triggering the "Folder" button will open the folder that houses your snippets. These buttons mimic the functions in the settings tab.

Each snippet item has a toggle and a button. You can use the toggle to turn your snippet off/on.

You can also use the button to open your snippet with your default application for CSS files.

On Mac, you can change your default application by right-clicking on any CSS file, then click "Get info." Then, Go to the "Open with" section and choose the application you'd like to use. Use the "Change All..." button to set this application as your default application to open CSS files.

With MySnippets, you can change the design aesthetic. You can choose to have a "glass" style for MySnippets within the settings tab, which gives it a unique and futuristic look!

Create New CSS Snippets

Version 1.1.0 now adds the functionality to create new CSS snippets using a modal. All you have to do is provide the name of the file and the file contents. You can also set a template for your new snippets within the settings tab. There are settings added that allow you to decide whether or not you want your new snippets to open automatically after creating them, and whether you want your snippets to be automatically toggled on after creating them.

Installation

This plugin is now available in the community plugin store. You can install it from there and enable it. For a manual installation, you can download the necessary files and place them within your plugins folder.


Changelog

1.1.0 - Dec 4, 2021

Added
  • Create new CSS snippets function
Fixed
  • MySnippets menu positioning is now dependent on window coordinates (solves issue with hidden status bar).

Checklist

  • Command to open snippets menu
  • Create new CSS snippets function

Support

If you like this plugin and are considering donating to support continued development, use the button below!

Created with ❤️ by Chetachi

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Callout Manager
3 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
CSS Editor
3 years ago by Zachatoo
Edit CSS snippets in Obsidian.
Text Snippets
5 years ago by Ariana Khitrova
Snippets plugin for obsidian
Canvas CSS class
3 years ago by Lisandra-dev
A plugin that will add a css class to your canvas & adding to each canvas the path to help personnalization
Pieces for Developers
3 years ago by Pieces For Developers
Pieces' powerful extension for Obsidian-MD that allows users to access their code snippets directly within the Obsidian workspace
css snippets
5 years ago by Daniel Brandenburg
Obsidian plugin for css snippets
Style Text
3 years ago by Juanjo Arranz
Apply custom CSS styles to selected text in your Obsidian Notes
Typst Mate
3 months ago by azyarashi
Render math expressions with Typst instead of MathJax in Obsidian.
Snippetor
4 years ago by ebullient
An assist for creating CSS snippets for Obsidian
Hyphenation
3 years ago by 7596ff
Enables justified text and hyphenation
Slash snippets
10 months ago by echo-saurav
Insert snippet of text with slash command
Regex Mark
2 years ago by Mara-Li
Snippet Commands
5 years ago by death_au
Registers custom css snippets as commands (which you can bind hotkeys to)
Snippets
5 years ago by Pelao
Auto Class
4 years ago by Nathonius
Automatically add CSS classes to notes based on file path.
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
CSS Inlay Colors
2 years ago by Benji Grant
Show inline color hints for CSS colors in Obsidian
Custom Theme Studio
7 months ago by @gapmiss
An Obsidian.md plugin to create and tweak custom themes with live CSS editing, element styling, and instant previews. All without leaving Obsidian.
Snippets Manager
2 years ago by Venkatraman Dhamodaran
Snippets Manager (Text Expander) For Obsidian
CSS Inserter
2 years ago by Erika Gozar
Inserts user-defined css snippets into the selected text.
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Snippetsaurus
a year ago by Christian Humbert
Inline Code Copy
a year ago by Hongchen Lin
Auto Math
2 months ago by Vladislav Sorokin
Auto-expands LaTeX snippets. External rules with live reload, Custom Rules Editor, and default math pack.