Search Code Snippets and Display all Code Snippets for a Note/Foldera

Hello,

I use Obsidian for documentation and code snippets. Sometimes I quickly want to find a code block for quick copy/paste.

I am thinking of a two part plugin:

  • The ability to search Code snippets based on text contents, code block title, code block tag or code block language.
  • The ability to display all code blocks for a given note or folder in the right hand sidebar.

Each of these two modes would allow for copying a code block directly to clipboard.

1 Like

This isn’t exactly what you asked for but in the mean time maybe the Code block copy plugin might be useful?

I am using that plugin currently and its awesome. However, I have many code snippets in my notes and need a way to quickly view and find them. In this way, I Use obsidian like a snippet manager, as well as for documentation

2 Likes

Hello, I changed the category of this post to “Feature Request” as this seemed to make more sense.

Did you ever find a solution for this, @amarionette?

1 Like

A post was merged into an existing topic: AI Powered Snippet Curation

Enabling and disabling CSS snippets

I often and disable snippets multiple times a week, both in my own vault, and when doing user support on a plugin I maintain.

Obsidian has no mechanism to filter CSS snippets, so one has to scroll up and down to find, by eye, any one you wish to turn on or off…

This is what it looks like in a vault with 43 snippets:

Below is a description of a Plugin filtering mechanism that I would love to see ported to the CSS snippets settings…

Enabling and disabling Plugins

Obsidian already has a lovely ‘Search installed plugins’ mechanism:

Making it really easy to focus on certain plugins…

Proposal

Port the Plugin search filtering mechanism to CSS snippets, and use it to filter CSS snippets by their file names.