https://github.com/typora-community-plugin/typora-plugin-note-snippets
Use slash command to autocomplete note snippets. | 使用斜线指令输入笔记片段。
https://github.com/typora-community-plugin/typora-plugin-note-snippets
typora typora-community-plugin typora-plugin
Last synced: 4 months ago
JSON representation
Use slash command to autocomplete note snippets. | 使用斜线指令输入笔记片段。
- Host: GitHub
- URL: https://github.com/typora-community-plugin/typora-plugin-note-snippets
- Owner: typora-community-plugin
- License: mit
- Created: 2023-08-13T22:07:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T09:06:14.000Z (almost 2 years ago)
- Last Synced: 2024-08-24T16:23:22.905Z (almost 2 years ago)
- Topics: typora, typora-community-plugin, typora-plugin
- Language: TypeScript
- Homepage:
- Size: 93.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Typora Plugin Note Snippets
English | [简体中文](https://github.com/typora-community-plugin/typora-plugin-note-snippets/blob/main/README.zh-CN.md)
This a plugin based on [typora-community-plugin](https://github.com/typora-community-plugin/typora-community-plugin) for [Typora](https://typora.io).
Use slash command to autocomplete note snippets.
## Preview

## Usage
1. Open "Plugin Settings" Modal → Plugin "Note Snippets" Settings → "Note snippets folder" → click "Open folder" button to open **the snippets folder**.
2. (Optional) Add JavaScript ESM file to **the snippets folder**
```js
// function.js (or other name)
export function author() {
return 'Tom'
}
```
3. Add note snippets `snippets.md`(or other name) to **the snippets folder**
````markdown
key
```markdown
hello world
```
key2
```markdown
hello {{ author() }}
```
````
Use slash command in Typora, like `/key2`. It will replace with `hello Tom`.