English | 简体中文
This a plugin based on typora-community-plugin for Typora.
Create content from template:
- paste the content to current note
- create markdown file with the content
```js
const title = await tp.quickInput({ placeholder: 'Input note\'s title' })
const type = await tp.quickPick(
['book', 'video', 'music'],
{ placeholder: 'Pick note\'s type' },
)
const icon = type === 'book' ? '📕'
: type == 'video' ? '🎞'
: '🎵'
```
# {{icon}} {{title}}```js
const title = await tp.quickInput({ placeholder: 'Input note\'s title' })
const type = await tp.quickPick(
['book', 'video', 'music'],
{ placeholder: 'Pick note\'s type' },
)
const icon = type === 'book' ? '📕'
: type == 'video' ? '🎞'
: '🎵'
tp.writeNoteTo(title) // The file path will be saved, it is relative to your vault's path
```
# {{icon}} {{title}}global variable: tp
quickInput(options?): Promise<string>- options:
{ placeholder?: string }
- options:
quickPick(items: string[], options?): Promise<string | string[]>- options:
{ placeholder?: string, canPickMany?: boolean }If
canPickManyisfalse,quickPick()will returnstringIfcanPickManyistrue,quickPick()will returnstring[]
- options:
writeNoteTo(path: string, options?): void- options:
{ openNote: true }
- options:

