No description
Find a file
2023-03-15 03:12:40 -07:00
.editorconfig First commit, search snippets done 2023-03-15 00:04:06 -07:00
.eslintignore First commit, search snippets done 2023-03-15 00:04:06 -07:00
.eslintrc First commit, search snippets done 2023-03-15 00:04:06 -07:00
.gitignore First commit, search snippets done 2023-03-15 00:04:06 -07:00
.npmrc First commit, search snippets done 2023-03-15 00:04:06 -07:00
esbuild.config.mjs First commit, search snippets done 2023-03-15 00:04:06 -07:00
LICENSE Create LICENSE 2023-03-15 00:14:59 -07:00
main.ts changed trim() to trimEnd() 2023-03-15 03:12:40 -07:00
manifest.json Updated manifest.json 2023-03-15 00:44:38 -07:00
package-lock.json First commit, search snippets done 2023-03-15 00:04:06 -07:00
package.json First commit, search snippets done 2023-03-15 00:04:06 -07:00
pnpm-lock.yaml First commit, search snippets done 2023-03-15 00:04:06 -07:00
README.md Update README.md 2023-03-15 02:54:37 -07:00
tsconfig.json First commit, search snippets done 2023-03-15 00:04:06 -07:00
version-bump.mjs First commit, search snippets done 2023-03-15 00:04:06 -07:00
versions.json First commit, search snippets done 2023-03-15 00:04:06 -07:00

jelly-snippets

A simple text snippets plugin for Obsidian.md.

What does it do?

Pretty simple. You probably have run into snippets before.

  1. Specify a mapping of snippet to replacement.

    snippet. |+| replacement!

  2. If the cursor is at the end of a snippet...

    snippet.<cursor here>

  3. ..then triggering the snippet conversion...

    snippet.<cursor here - TRIGGER!>

  4. ..will replace the snippet with its replacement!

    replacement!<cursor here>

Why?

I wanted to make a generic snippets plugin that operated on text and worked as I needed. There is an existing snippets plugin already, Text Snippets by ArianaKhit, but not only is the plugin code somewhat outdated and a little complex, it seems to use an older API.

One of my goals writing this was to write a simple plugin that used the API exactly as described by the unofficial docs and by vanilla Typescript. I also wanted to make the core functionality of the plugin more flexible, though of course I have yet to add certain features that would truly provide that.

Future Improvements

  • Control characters in snippets
  • Semantic symbols in snippets
  • Regex capabilities