{"id":42362915,"url":"https://github.com/typora-community-plugin/typora-plugin-templater","last_synced_at":"2026-01-27T17:14:40.344Z","repository":{"id":262096111,"uuid":"846490443","full_name":"typora-community-plugin/typora-plugin-templater","owner":"typora-community-plugin","description":"Create notes from templates. | 从模板创建笔记","archived":false,"fork":false,"pushed_at":"2025-11-01T11:00:06.000Z","size":584,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T11:25:30.071Z","etag":null,"topics":["typora","typora-community-plugin","typora-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typora-community-plugin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T10:17:58.000Z","updated_at":"2025-11-01T11:00:04.000Z","dependencies_parsed_at":"2024-11-10T14:34:04.749Z","dependency_job_id":null,"html_url":"https://github.com/typora-community-plugin/typora-plugin-templater","commit_stats":null,"previous_names":["typora-community-plugin/typora-plugin-templater"],"tags_count":6,"template":false,"template_full_name":"typora-community-plugin/typora-plugin-example","purl":"pkg:github/typora-community-plugin/typora-plugin-templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-templater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-templater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-templater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-templater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typora-community-plugin","download_url":"https://codeload.github.com/typora-community-plugin/typora-plugin-templater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typora-community-plugin%2Ftypora-plugin-templater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typora","typora-community-plugin","typora-plugin"],"created_at":"2026-01-27T17:14:40.260Z","updated_at":"2026-01-27T17:14:40.326Z","avatar_url":"https://github.com/typora-community-plugin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typora Plugin Templater\n\nEnglish | [简体中文](https://github.com/typora-community-plugin/typora-plugin-templater/blob/main/README.zh-CN.md)\n\nThis a plugin based on [typora-community-plugin](https://github.com/typora-community-plugin/typora-community-plugin) for [Typora](https://typora.io).\n\nCreate content from template:\n\n- paste the content to current note\n- create markdown file with the content\n\n## Preview\n\n![](./docs/assets/paste-note.gif)\n\n![](./docs/assets/write-note.gif)\n\n## Example\n\n### Paste note from template\n\n````markdown\n```js\nconst title = await tp.quickInput({ placeholder: 'Input note\\'s title' })\nconst type = await tp.quickPick(\n  ['book', 'video', 'music'], \n  { placeholder: 'Pick note\\'s type' },\n)\n\nconst icon = type === 'book' ? '📕' \n  : type == 'video' ? '🎞' \n  : '🎵'\n```\n\n# {{icon}} {{title}}\n````\n\n### Create note from template\n\n````markdown\n```js\nconst title = await tp.quickInput({ placeholder: 'Input note\\'s title' })\nconst type = await tp.quickPick(\n  ['book', 'video', 'music'], \n  { placeholder: 'Pick note\\'s type' },\n)\n\nconst icon = type === 'book' ? '📕' \n  : type == 'video' ? '🎞' \n  : '🎵'\n\ntp.writeNoteTo(title)  // The file path will be saved, it is relative to your vault's path\n```\n\n# {{icon}} {{title}}\n````\n\n## API\n\nglobal variable: `tp`\n\n- `quickInput(options?): Promise\u003cstring\u003e`\n  - options: `{ placeholder?: string }`\n- `quickPick(items: string[], options?): Promise\u003cstring | string[]\u003e`\n  - options: `{ placeholder?: string, canPickMany?: boolean }`\n    \u003e If `canPickMany` is `false`, `quickPick()` will return `string`\n    \u003e If `canPickMany` is `true`, `quickPick()` will return `string[]`\n- `writeNoteTo(path: string, options?): void`\n  - options: `{ openNote: true }`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-templater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-templater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypora-community-plugin%2Ftypora-plugin-templater/lists"}