Giter Club home page Giter Club logo

text-snippets-obsidian's Introduction

Obsidian Text Snippets Plugin

This is a plugin for Obsidian (https://obsidian.md).

It allows you to replace text templates for faster typing, create your own snippets almost like in many text editors and IDE.

You can use the shortcut (default CTRL/CMD + Tab) or the command Run snippet replacement by command palette (CTRL/CMD + P). There is also an option to use Tab as the shortcut instead. The cursor need to be on the word you want to replace. You can replace text with spaces by selecting all the text.

Demo

demo

Features

  • Use $end$ to place the cursor after replacement in specific position
  • Use $nl$ to add line break in multiline snippet
  • $nl$ ignores next line break in Snippets settings, if the snippet ends with $end$, add additional newline
  • Use $tb$ to add a tabstop for the cursor to jump to (don`t use together with $end$)
  • Trigger the snippet shortcut without any eligible expansion to jump to the next tabstop
  • When enabling Tab as the shortcut, only if there are no eligilbe expansions nor jumps the, a normal Tab will be inserted

tabstop-demo

How to install

In Obsidian app

In Obsidian go to Settings > Third-party plugins > Community Plugins > Browse and search for Text Snippets.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/text-snippets-obsidian/.

text-snippets-obsidian's People

Contributors

arianakhit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.