Create folder of snippets to activate them in one click !

Overview

-> FR

Obsidian Group Snippet

This plugin allow you to set group of CSS snippets to class them and enable them in one click (or command). Also, this plugin allows you to 'link' a group of snippets to a theme, enabling it when you switch theme ! It works also for switching between light & dark theme !

Usage

  1. Go to the Settings of the plugin
  2. Add a group (clicking on the + button)
  3. Add a name to the group
  4. Click on the edit button to add CSS snippets to the group

After this, you have your group of CSS snippets ! 🎉 🎉

The plugin will enable the enabled snippet, and disable the disabled snippets!

To run the commands, you can :

  1. From command palette
    1. reload snippets to reload the group of snippets (and the newly added groups)
    2. Activate the group : ${groupName} to activate the group
  2. From directly the settings tab by clicking on the command windows icon.

You can also enable every snippets in the group by clicking on the eye icon. Clicking on the cross will disable every snippets in the group.

Also, and it's my game changer here! You can automatically switch group snippets based on your theme or color scheme! The switch is based on the group name, and the theme name. The group name must include the theme name, and optionally the color scheme name based on dark or light.1 For example, minimal dark will be enabled if you switch to the dark theme or from any theme to minimal, in a dark color scheme.

Moreover, snippets linked to other theme (or color Scheme) will be disabled 😀 !

The plugin will also detect if you set a snippet for mobile or desktop. Just put :

  • IOS, Android, Mobile for a mobile group
  • Desktop, PC, windows, mac, linux, for a desktop group

Finally, each time you switch of theme/color scheme, the plugin will toggle2 snippets with a name containing :

  • The same platform you are on
  • The same theme you are on or switch to
  • The same color scheme you are on or switch to
  • Any snippets with no indication of platform/theme/color scheme

When switching, the plugin will disable the snippets in the group that :

  • Have a different platform in name than the current one
  • Have a different theme you are on or switch to
  • Have a different color scheme you are on or switch to

Normally, this plugin can totally override the Appareance for Snippets !

🗒️ Some notes : You need to reload the snippets (using the button refresh) when you remove snippets. But, no worry, the plugin can't activate snippet that doesn't exist ! It's just the list that need some refreshing :).

🤖 Development

  1. Fork the repository on GitHub
  2. Clone the repository on your computer
  3. Run npm install in the cloned repository
  4. Run npm run build in the cloned repository to build the plugin, you can also use npm run dev to watch the changes !

Credit and thanks

Footnotes

  1. The translation of the plugin apply for color scheme with addition with the english dark and light.

  2. Here, toggle meaning that the plugin will disable the disabled snippets and enable the enabled snippets in the group list, mimic the behavior of toggling snippet in the Snippet CSS from Appearance tab.

You might also like...

Chrome extension to simulate cryptoblades fights, giving you the win rate % against all enemies with just one click

Chrome extension to simulate cryptoblades fights, giving you the win rate % against all enemies with just one click

CryptoBlades fight simulator This is a Chrome extension that will help you to know the exact win rate percentage you have on each cryptoblades fight.

Aug 7, 2022

Crypto-tracker - Get crypto currency data in one click. Followed by a few more clicks.

https://crypto-tracker-ayaanzaveri08.vercel.app/ Crypto Tracker Crypto Tracker tracks crypto with the CoinGecko API. This app uses the React framework

Apr 30, 2022

Service Installer for VMware Tanzu is a one-click automation solution that enables VMware field engineers to easily and rapidly install, configure, and operate VMware Tanzu services across a variety of cloud infrastructures.

Service Installer for VMware Tanzu Service Installer for VMware Tanzu seeks to provide a one-click automation solution to enable our VMware engineers

Dec 1, 2022

Less clicking, more creating. Navigate to your favorite actions on the websites you love with just one click.

Less clicking, more creating. Navigate to your favorite actions on the websites you love with just one click.

Navigate to your favorite actions on the websites you love with just one click Web https://irtaza9.github.io/awesome-shortcuts/ Available Shortcuts Go

Aug 25, 2022

For NUS PhD Students and Staffs, just one click to open the research papers on Google Scholar/IEEE/ACM, etc. with this script.

For NUS PhD Students and Staffs, just one click to open the research papers on Google Scholar/IEEE/ACM, etc. with this script.

NUS Literature Quick Access For National University of Singapore's students and staffs, just with one single click you can open any paper without the

Nov 30, 2022

A todo list app where one can create activities to do, and delete them when completed. Created with JavaScript.

My ToDo List project ToDo List: setup the structure. Built With HTML, CSS, JS ESLint, Stylelint, Web Hint, Lighthouse Online Version Link This project

Jul 21, 2022

Create beautiful code snippets from your VSCode environment.

Create beautiful code snippets from your VSCode environment.

Snippets Photo Shoot Create beautiful code snippets from your VSCode environment. How it works Select the code snippet you want to use, then right cli

Aug 3, 2022

Get the last logs of your /var/log folder

var-log-crawler Get the last logs of your /var/log folder Requirements: Node installed. Hot to use: Rename .env.sample to .env and fill with your valu

Jan 5, 2022

This repo contains the templates used in my automated obsidian weekly review video and also an accompanying vault with the folder structure expected and plugins

This repo contains the templates used in my automated obsidian weekly review video and also an accompanying vault with the folder structure expected and plugins

This repo contains the templates used in my automated obsidian weekly review video and also an accompanying vault with the folder structure expected and plugins (periodic note settings etc)

Dec 21, 2022
Comments
Releases(1.9.0)
Owner
Lisandra Simonetti
I love coding in python and learn new things!
Lisandra Simonetti
Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Moodle Downloader Extension Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo. Not

Zhongpin Wang 8 Nov 15, 2022
Specify various templates for different directories and create them with one click. 🤩

English | 简体中文 Gold Right Specify various templates for different directories and create them with one click. Reason Usually there is something in the

赵東澔 16 Aug 8, 2022
A simple to do list webpage where you can log the daily tasks you have to do, mark them as checked, modify them, reorder them and remove them. Made using HTML, CSS and JavaScript.

To-Do-List This Webpage is for an app called To-Do-List which helps you add, remove or check tasks you have to do. It is a simple web page which conta

Zeeshan Haider 9 Mar 12, 2022
AWS SAM project that adds the snippets from serverlessland.com/snippets as saved queries in CloudWatch Logs Insights

cw-logs-insights-snippets Serverlessland.com/snippets hosts a growing number of community provided snippets. Many of these are useful CloudWatch Logs

Lars Jacobsson 12 Nov 8, 2022
A full NodeJS sms-activate.org api wrapper up to date in Typescript

Sms-Activate.org This package fully supports all the https://sms-activate.org/ API with Typescript types. Installation Install the package using npm

SegFault 52 Dec 26, 2022
⛺️ Tipi is a homeserver for everyone! One command setup, one click installs for your favorites self-hosted apps. ✨

⛺️ Tipi — A personal homeserver for everyone ⚠️ Tipi is still at an early stage of development and issues are to be expected. Feel free to open an iss

Nicolas Meienberger 4.9k Jan 4, 2023
Node module for synchronously and recursively merging multiple folders or collections of files into one folder.

merge-dirs Node module for synchronously and recursively merging multiple folders or collections of files into one folder. Install yarn add @nooooooom

不见月 2 Mar 20, 2022
⚡Chrome extension allows you to create lists of Google and Github dork to open multiple tabs with one click, import "scope/out of scope" from #HackerOne #Bugcrowd #Intigriti ...

FastDork v0.1 This chrome extension allows you to create lists of Google and Github dork to open multiple tabs with one click, import "scope/out of sc

skvndr 74 Dec 31, 2022
This is a Webpack based to-do-list project. With this app, users can add thier daily routine tasks to the list, mark them as complet, edit them or delete them.

To Do List This is a Webpack based to-do-list project. With this app, users can add thier daily routine tasks to the list, mark them as complet, edit

Ali Aqa Atayee 12 Oct 30, 2022
Completely free TS/JS one-file source code snippets with tests, which can be copied to avoid extra dependencies (contributions welcome).

TinySource Completely free TS/JS one-file source code snippets with tests, which can be copied to avoid extra dependencies (contributions welcome). Sn

null 81 Jan 3, 2023