@mnaoumov/create-obsidian-plugin 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (683) hide show
  1. package/README.md +46 -8
  2. package/dist/main.js +1838 -1007
  3. package/package.json +15 -5
  4. package/src/main.ts +133 -25
  5. package/templates/default/{parcel-transformer-inline-imports.cjs.ejs → (bundlers)/parcel-transformer-inline-imports.cjs.ejs} +1 -1
  6. package/templates/default/{CONTRIBUTING.md.ejs → (contributing)/CONTRIBUTING.md.ejs} +1 -0
  7. package/templates/default/{CONTRIBUTING.md@demo-vault_dev-utils.ejs → (contributing)/CONTRIBUTING.md@demo-vault_framework.ejs} +1 -1
  8. package/templates/default/(contributing)/CONTRIBUTING.md@filing_bug-and-feature.ejs +6 -0
  9. package/templates/default/{.prettierignore.ejs → (format)/.prettierignore.ejs} +1 -0
  10. package/templates/default/(format)/.prettierignore@ignores_docs-showcase.ejs +3 -0
  11. package/templates/default/(format)/biome.jsonc_framework.ejs +16 -0
  12. package/templates/default/(format)/biome.jsonc_framework@excludes_docs-showcase.ejs +1 -0
  13. package/templates/default/{biome.jsonc.ejs → (format)/biome.jsonc_standalone.ejs} +1 -1
  14. package/templates/default/(format)/dprint.json_framework.ejs +10 -0
  15. package/templates/default/(format)/dprint.json_framework@excludes_docs-showcase.ejs +2 -0
  16. package/templates/default/{dprint.json_standalone.ejs → (format)/dprint.json_standalone.ejs} +1 -0
  17. package/templates/default/(format)/prettier.config.mjs_framework.ejs +3 -0
  18. package/templates/default/{cspell.json.ejs → (lint)/cspell.json.ejs} +11 -2
  19. package/templates/default/(lint)/cspell.json@ignore-paths_docs-showcase.ejs +1 -0
  20. package/templates/default/{eslint.config.mts_standalone.ejs → (lint)/eslint.config.mts_standalone.ejs} +9 -0
  21. package/templates/default/{package.json@targets_parcel.ejs → (package)/package.json@targets_parcel-targets.ejs} +0 -5
  22. package/templates/default/(package)/package.json@targets_parcel.ejs +5 -0
  23. package/templates/default/(readme)/README.md.ejs +38 -0
  24. package/templates/default/{README.md@demo-vault_dev-utils.ejs → (readme)/README.md@demo-vault_framework.ejs} +1 -1
  25. package/templates/default/(readme)/README.md@preset_docs-showcase.ejs +4 -0
  26. package/templates/default/(readme)/README.md@preset_framework.ejs +6 -0
  27. package/templates/default/(readme)/README.md@support_bug-and-feature.ejs +11 -0
  28. package/templates/default/(readme)/README.md@support_bug-and-feature@bug-report_has-bug-report-command.ejs +2 -0
  29. package/templates/default/(test)/jest.config.ts_framework.ejs +31 -0
  30. package/templates/default/{scripts/rollup.config.ts@lint-out-dir_dev-utils.ejs → (test)/jest.config.ts_framework@lint-root-dir_framework.ejs} +1 -1
  31. package/templates/default/(test)/jest.config.ts_framework@ts-jest-tsconfig_solid.ejs +8 -0
  32. package/templates/default/{jest.config.ts.ejs → (test)/jest.config.ts_standalone.ejs} +0 -1
  33. package/templates/default/{vitest.config.ts_standalone.ejs → (test)/vitest.config.ts_standalone.ejs} +11 -2
  34. package/templates/default/(test)/wdio.conf.mts.ejs +5 -0
  35. package/templates/default/{wdio.conf.ts.ejs → (test)/wdio.conf.ts.ejs} +4 -4
  36. package/templates/default/{tsconfig.json_dev-utils.ejs → (tsconfig)/(framework)/tsconfig.json_framework.ejs} +2 -2
  37. package/templates/default/(tsconfig)/(framework)/tsconfig.json_framework@exclude_docs-showcase.ejs +4 -0
  38. package/templates/default/(tsconfig)/(framework)/tsconfig.json_framework@include_wdio-obsidian.ejs +1 -0
  39. package/templates/default/(tsconfig)/(framework)/tsconfig.json_framework@types_toolkit-styles.ejs +2 -0
  40. package/templates/default/(tsconfig)/(framework)/tsconfig.json_framework@types_wasm.ejs +2 -0
  41. package/templates/default/{tsconfig.json_standalone.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone.ejs} +1 -1
  42. package/templates/default/.github/ISSUE_TEMPLATE/bug_report.yml.ejs +62 -24
  43. package/templates/default/.github/ISSUE_TEMPLATE/config.yml.ejs +4 -0
  44. package/templates/default/.github/workflows/attest-release-assets.yml.ejs +1 -11
  45. package/templates/default/.github/workflows/ci.yml_framework.ejs +19 -0
  46. package/templates/default/.github/workflows/ci.yml_framework@job-permissions_measured-coverage-badge.ejs +3 -0
  47. package/templates/default/.github/workflows/ci.yml_framework@with_measured-coverage-badge.ejs +1 -0
  48. package/templates/default/.github/workflows/{ci.yml.ejs → ci.yml_standalone.ejs} +1 -1
  49. package/templates/default/.github/workflows/release.yml_framework.ejs +19 -0
  50. package/templates/default/.github/workflows/{release.yml.ejs → release.yml_standalone.ejs} +1 -1
  51. package/templates/default/.gitignore_common.ejs +1 -0
  52. package/templates/default/.gitignore_wdio-obsidian.ejs +2 -0
  53. package/templates/default/.nvmrc.ejs +1 -0
  54. package/templates/default/demo-vault/.gitignore.ejs +4 -4
  55. package/templates/default/demo-vault/00 Start.md.ejs +1 -1
  56. package/templates/default/demo-vault/01 Sample commands.md.ejs +4 -4
  57. package/templates/default/demo-vault/02 Settings.md.ejs +2 -2
  58. package/templates/default/demo-vault/03 WebAssembly.md.ejs +2 -2
  59. package/templates/default/demo-vault/README.md.ejs +1 -1
  60. package/templates/default/demo-vault/_assets/CodeScriptToolkit/demoSetup.ts.ejs +1 -1
  61. package/templates/default/demo-vault/_assets/CodeScriptToolkit/startup.ts.ejs +4 -4
  62. package/templates/default/scripts/{build.ts@bundler_cli-bundler.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler.ejs} +1 -1
  63. package/templates/default/scripts/{dev.ts.ejs → (build)/(dev)/dev.ts.ejs} +1 -1
  64. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_adapter-cli.ejs +6 -0
  65. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_adapter-cli@run_rollup.ejs +3 -0
  66. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_adapter-cli@run_vite.ejs +3 -0
  67. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_adapter-cli@run_webpack.ejs +3 -0
  68. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_esbuild.ejs +3 -0
  69. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_esbuild@preset_framework.ejs +5 -0
  70. package/templates/default/scripts/(build)/(dev)/dev.ts@bundler_parcel-adapter.ejs +5 -0
  71. package/templates/default/scripts/(build)/(esbuild)/build.ts@bundler_esbuild.ejs +3 -0
  72. package/templates/default/scripts/(build)/(esbuild)/build.ts@bundler_esbuild@import_tailwind.ejs +1 -0
  73. package/templates/default/scripts/(build)/(esbuild)/build.ts@bundler_esbuild@preset_framework.ejs +5 -0
  74. package/templates/default/scripts/(build)/build-clean.ts.ejs +4 -0
  75. package/templates/default/scripts/(build)/build-compile-typescript.ts.ejs +14 -0
  76. package/templates/default/scripts/(build)/build-compile.ts.ejs +4 -0
  77. package/templates/default/scripts/(build)/build-options.ts.ejs +9 -0
  78. package/templates/default/scripts/(build)/build-styles.ts.ejs +9 -0
  79. package/templates/default/scripts/{build.ts.ejs → (build)/build.ts.ejs} +2 -2
  80. package/templates/default/scripts/(build)/build.ts@bundler_adapter-cli.ejs +11 -0
  81. package/templates/default/scripts/(build)/build.ts@bundler_adapter-cli@run_rollup.ejs +1 -0
  82. package/templates/default/scripts/(build)/build.ts@bundler_adapter-cli@run_vite.ejs +1 -0
  83. package/templates/default/scripts/(build)/build.ts@bundler_adapter-cli@run_webpack.ejs +1 -0
  84. package/templates/default/scripts/(build)/build.ts@bundler_parcel-adapter.ejs +5 -0
  85. package/templates/default/scripts/(format)/format-check.ts@tool_biome-formatter.ejs +3 -0
  86. package/templates/default/scripts/(format)/format-check.ts@tool_biome-formatter@preset_framework.ejs +7 -0
  87. package/templates/default/scripts/(format)/format-check.ts@tool_dprint.ejs +3 -0
  88. package/templates/default/scripts/(format)/format-check.ts@tool_dprint@preset_framework.ejs +7 -0
  89. package/templates/default/scripts/(format)/format-check.ts@tool_prettier.ejs +3 -0
  90. package/templates/default/scripts/(format)/format-check.ts@tool_prettier@preset_framework.ejs +7 -0
  91. package/templates/default/scripts/(format)/format.ts@tool_biome-formatter.ejs +3 -0
  92. package/templates/default/scripts/(format)/format.ts@tool_biome-formatter@preset_framework.ejs +7 -0
  93. package/templates/default/scripts/(format)/format.ts@tool_dprint.ejs +3 -0
  94. package/templates/default/scripts/(format)/format.ts@tool_dprint@preset_framework.ejs +7 -0
  95. package/templates/default/scripts/(format)/format.ts@tool_prettier.ejs +3 -0
  96. package/templates/default/scripts/(format)/format.ts@tool_prettier@preset_framework.ejs +7 -0
  97. package/templates/default/scripts/(lint)/(markdown)/lint-md-fix.ts_framework.ejs +7 -0
  98. package/templates/default/scripts/(lint)/(markdown)/lint-md.ts_framework.ejs +7 -0
  99. package/templates/default/scripts/{markdownlint-cli2-config.ts_dev-utils.ejs → (lint)/(markdown)/markdownlint-cli2-config.ts_framework.ejs} +4 -4
  100. package/templates/default/scripts/{markdownlint-cli2-config.ts_standalone.ejs → (lint)/(markdown)/markdownlint-cli2-config.ts_standalone.ejs} +3 -6
  101. package/templates/default/scripts/{eslint-config.ts.ejs → (lint)/eslint-config.ts.ejs} +3 -14
  102. package/templates/default/scripts/(lint)/eslint-config.ts@ignores_docs-showcase.ejs +4 -0
  103. package/templates/default/scripts/{find-overexposed-fix.ts.ejs → (lint)/find-overexposed-fix.ts.ejs} +4 -4
  104. package/templates/default/scripts/{find-overexposed.ts.ejs → (lint)/find-overexposed.ts.ejs} +3 -3
  105. package/templates/default/scripts/{lint-fix.ts.ejs → (lint)/lint-fix.ts.ejs} +2 -2
  106. package/templates/default/scripts/(lint)/lint-fix.ts@tool_biome-linter.ejs +3 -0
  107. package/templates/default/scripts/(lint)/lint-fix.ts@tool_biome-linter@preset_framework.ejs +7 -0
  108. package/templates/default/scripts/(lint)/lint-fix.ts@tool_eslint.ejs +3 -0
  109. package/templates/default/scripts/(lint)/lint-fix.ts@tool_eslint@preset_framework.ejs +7 -0
  110. package/templates/default/scripts/{lint.ts.ejs → (lint)/lint.ts.ejs} +2 -2
  111. package/templates/default/scripts/(lint)/lint.ts@tool_biome-linter.ejs +3 -0
  112. package/templates/default/scripts/(lint)/lint.ts@tool_biome-linter@preset_framework.ejs +7 -0
  113. package/templates/default/scripts/(lint)/lint.ts@tool_eslint.ejs +3 -0
  114. package/templates/default/scripts/(lint)/lint.ts@tool_eslint@preset_framework.ejs +7 -0
  115. package/templates/default/scripts/{rollup.config.ts.ejs → (rollup)/(standalone)/rollup.config.ts_standalone.ejs} +4 -4
  116. package/templates/default/scripts/(rollup)/rollup.config.ts_framework.ejs +49 -0
  117. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@import_rollup-json.ejs +1 -0
  118. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@import_scss.ejs +1 -0
  119. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@plugin_rollup-json.ejs +2 -0
  120. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@plugin_scss.ejs +3 -0
  121. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@unwrap_rollup-json.ejs +1 -0
  122. package/templates/default/scripts/(rollup)/rollup.config.ts_framework@unwrap_scss.ejs +1 -0
  123. package/templates/default/scripts/(test)/(e2e)/test-e2e.ts@tool_obsidian-test.ejs +2 -0
  124. package/templates/default/scripts/(test)/(e2e)/test-e2e.ts@tool_obsidian-test@preset_framework.ejs +4 -0
  125. package/templates/default/scripts/(test)/(e2e)/test-e2e.ts@tool_wdio-obsidian.ejs +2 -0
  126. package/templates/default/scripts/(test)/(e2e)/test-e2e.ts@tool_wdio-obsidian@preset_framework.ejs +5 -0
  127. package/templates/default/scripts/{demo-vault-global-setup.ts.ejs → (test)/(integration)/demo-vault-global-setup.ts.ejs} +7 -4
  128. package/templates/default/scripts/(test)/(integration)/test-integration-android.ts.ejs +8 -0
  129. package/templates/default/scripts/(test)/(integration)/test-integration-demo-vault.ts.ejs +8 -0
  130. package/templates/default/scripts/(test)/(integration)/test-integration-desktop-performance.ts.ejs +8 -0
  131. package/templates/default/scripts/(test)/(integration)/test-integration-desktop.ts.ejs +8 -0
  132. package/templates/default/scripts/(test)/(integration)/test-integration-no-app.ts.ejs +8 -0
  133. package/templates/default/scripts/{test-integration.ts.ejs → (test)/(integration)/test-integration.ts.ejs} +2 -2
  134. package/templates/default/scripts/{stylesheet-stub.ts.ejs → (test)/stylesheet-stub.ts.ejs} +1 -1
  135. package/templates/default/scripts/(test)/test-coverage.ts.ejs +2 -0
  136. package/templates/default/scripts/(test)/test-coverage.ts@tool_jest.ejs +5 -0
  137. package/templates/default/scripts/(test)/test-coverage.ts@tool_vitest.ejs +8 -0
  138. package/templates/default/scripts/(test)/test-watch.ts_framework@tool_jest.ejs +5 -0
  139. package/templates/default/scripts/(test)/test-watch.ts_framework@tool_vitest.ejs +8 -0
  140. package/templates/default/scripts/(test)/test.ts_framework@tool_jest.ejs +5 -0
  141. package/templates/default/scripts/(test)/test.ts_framework@tool_vitest.ejs +8 -0
  142. package/templates/default/scripts/{vitest-config.ts.ejs → (test)/vitest-config.ts.ejs} +3 -2
  143. package/templates/default/scripts/(test)/vitest-config.ts@edit-context_docs-showcase.ejs +3 -0
  144. package/templates/default/scripts/{vitest-config.ts@post-config_solid.ejs → (test)/vitest-config.ts@post-config_solid.ejs} +6 -8
  145. package/templates/default/scripts/(vite)/vite.config.ts_framework.ejs +10 -0
  146. package/templates/default/scripts/{vite.config.ts.ejs → (vite)/vite.config.ts_standalone.ejs} +5 -8
  147. package/templates/default/scripts/(webpack)/webpack.config.ts_framework.ejs +19 -0
  148. package/templates/default/scripts/(webpack)/webpack.config.ts_framework@import_scss.ejs +1 -0
  149. package/templates/default/scripts/(webpack)/webpack.config.ts_framework@plugin_scss.ejs +1 -0
  150. package/templates/default/scripts/(webpack)/webpack.config.ts_framework@rule_scss.ejs +4 -0
  151. package/templates/default/scripts/{webpack.config.ts.ejs → (webpack)/webpack.config.ts_standalone.ejs} +4 -4
  152. package/templates/default/scripts/commit.ts_framework.ejs +3 -0
  153. package/templates/default/scripts/commitlint-config.ts_framework.ejs +1 -0
  154. package/templates/default/scripts/gate.ts.ejs +3 -3
  155. package/templates/default/scripts/nano-staged-config.ts_toolkit-nano-staged.ejs +3 -0
  156. package/templates/default/scripts/prepare.ts_framework.ejs +3 -0
  157. package/templates/default/scripts/spellcheck.ts_framework.ejs +7 -0
  158. package/templates/default/scripts/{version.ts_dev-utils.ejs → version.ts_framework.ejs} +3 -3
  159. package/templates/default/scripts/version.ts_standalone.ejs +4 -4
  160. package/templates/default/src/(main)/main.ts@import_tailwind.ejs +1 -0
  161. package/templates/default/src/(main)/main.ts@import_tailwind@preset_framework.ejs +1 -0
  162. package/templates/default/src/{plugin.ts_enhanced.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one.ejs} +7 -5
  163. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@bug-report-handler_has-bug-report-command.ejs +7 -0
  164. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@bug-report-import_has-bug-report-command.ejs +1 -0
  165. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@import2_css-modules.ejs +1 -0
  166. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@import2_docs-showcase.ejs +1 -0
  167. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@onload_css-modules.ejs +1 -0
  168. package/templates/default/src/(plugin)/(all-in-one)/plugin.ts_all-in-one@onload_docs-showcase.ejs +3 -0
  169. package/templates/default/src/{plugin.ts_demo.ejs → (plugin)/(demo)/plugin.ts_demo.ejs} +18 -16
  170. package/templates/default/src/(plugin)/(demo)/plugin.ts_demo@bug-report-handler_has-bug-report-command.ejs +7 -0
  171. package/templates/default/src/(plugin)/(demo)/plugin.ts_demo@bug-report-import_has-bug-report-command.ejs +1 -0
  172. package/templates/default/src/(plugin)/(demo)/plugin.ts_demo@import_css-modules.ejs +1 -0
  173. package/templates/default/src/(plugin)/(demo)/plugin.ts_demo@onload_css-modules.ejs +1 -0
  174. package/templates/default/src/{plugin.ts_standalone.ejs → (plugin)/(standalone)/plugin.ts_standalone.ejs} +5 -3
  175. package/templates/default/src/(plugin)/(standalone)/plugin.ts_standalone@import_css-modules.ejs +1 -0
  176. package/templates/default/src/(plugin)/(standalone)/plugin.ts_standalone@onload_css-modules.ejs +1 -0
  177. package/templates/default/src/{plugin-settings-component.test.ts_enhanced.ejs → (settings)/plugin-settings-component.test.ts_all-in-one.ejs} +4 -4
  178. package/templates/default/src/{plugin-settings-component.test.ts_demo.ejs → (settings)/plugin-settings-component.test.ts_demo.ejs} +5 -5
  179. package/templates/default/src/{plugin-settings-component.ts_enhanced.ejs → (settings)/plugin-settings-component.ts_all-in-one.ejs} +3 -3
  180. package/templates/default/src/{plugin-settings-component.ts_demo.ejs → (settings)/plugin-settings-component.ts_demo.ejs} +9 -7
  181. package/templates/default/src/{plugin-settings-tab.ts_enhanced.ejs → (settings)/plugin-settings-tab.ts_all-in-one.ejs} +1 -1
  182. package/templates/default/src/{plugin-settings-tab.ts_demo.ejs → (settings)/plugin-settings-tab.ts_demo.ejs} +5 -5
  183. package/templates/default/src/{plugin-settings.ts_demo.ejs → (settings)/plugin-settings.ts_demo.ejs} +2 -2
  184. package/templates/default/src/demo-vault-buttons.demo-vault.integration.test.ts.ejs +2 -2
  185. package/templates/default/src/demo-vault.no-app.integration.test.ts.ejs +3 -3
  186. package/templates/default/src/docs-showcase.desktop.integration.test.ts.ejs +77 -0
  187. package/templates/default/src/editor-extensions/{sample-state-field.ts_dev-utils.ejs → sample-state-field.ts_framework.ejs} +1 -1
  188. package/templates/default/src/lit-elements/sample-lit-element.ts.ejs +1 -1
  189. package/templates/default/src/modals/sample-suggest-modal.ts.ejs +2 -2
  190. package/templates/default/src/plugin.test.ts_jest.ejs +3 -0
  191. package/templates/default/src/plugin.test.ts_jest@bug-report-import_has-bug-report-command.ejs +4 -0
  192. package/templates/default/src/plugin.test.ts_jest@bug-report-test_has-bug-report-command.ejs +16 -0
  193. package/templates/default/src/plugin.test.ts_jest@bug-report-type-import_has-bug-report-command.ejs +2 -0
  194. package/templates/default/src/plugin.test.ts_vitest.ejs +3 -0
  195. package/templates/default/src/plugin.test.ts_vitest@bug-report-import_has-bug-report-command.ejs +4 -0
  196. package/templates/default/src/plugin.test.ts_vitest@bug-report-test_has-bug-report-command.ejs +16 -0
  197. package/templates/default/src/plugin.test.ts_vitest@bug-report-type-import_has-bug-report-command.ejs +2 -0
  198. package/templates/default/src/preact-components/{sample-preact-component.tsx_dev-utils.ejs → sample-preact-component.tsx_framework.ejs} +1 -1
  199. package/templates/default/src/preact-components/sample-preact-component.tsx_standalone.ejs +1 -1
  200. package/templates/default/src/react-components/{sample-react-component.tsx_dev-utils.ejs → sample-react-component.tsx_framework.ejs} +2 -2
  201. package/templates/default/src/react-components/sample-react-component.tsx_standalone.ejs +1 -1
  202. package/templates/default/src/solid-components/{sample-solid-component.tsx_dev-utils.ejs → sample-solid-component.tsx_framework.ejs} +1 -1
  203. package/templates/default/src/solid-components/sample-solid-component.tsx_standalone.ejs +1 -1
  204. package/templates/default/src/styles/css-modules.d.ts.ejs +9 -3
  205. package/templates/default/src/styles/{main.css_dev-utils.ejs → main.css_framework.ejs} +3 -3
  206. package/templates/default/src/styles/main.module.css.ejs +4 -2
  207. package/templates/default/src/styles/{main.scss_dev-utils.ejs → main.scss_framework.ejs} +3 -3
  208. package/templates/default/src/styles/sample-css-module-command.ts.ejs +30 -0
  209. package/templates/default/src/svelte-components/sample-svelte-component.d.ts.ejs +2 -2
  210. package/templates/default/src/views/{sample-react-view.tsx_dev-utils.ejs → sample-react-view.tsx_framework.ejs} +1 -1
  211. package/templates/default/src/views/sample-view.ts.ejs +2 -1
  212. package/templates/default/src/wasm/answer.ts_wasm-adapter.ejs +18 -0
  213. package/templates/docs-showcase/files/src/docs/README.md +511 -0
  214. package/templates/docs-showcase/files/src/docs/entry.d.ts +8 -0
  215. package/templates/docs-showcase/files/src/docs/entry.js +4 -0
  216. package/templates/docs-showcase/files/src/docs/host.ts +449 -0
  217. package/templates/docs-showcase/files/src/docs/index.ts +699 -0
  218. package/templates/docs-showcase/files/src/docs/plugins/editor/communicating-with-editor-extensions/01-intro.ts +21 -0
  219. package/templates/docs-showcase/files/src/docs/plugins/editor/communicating-with-editor-extensions/03-state-field.ts +32 -0
  220. package/templates/docs-showcase/files/src/docs/plugins/editor/decorations/01-widgets.ts +23 -0
  221. package/templates/docs-showcase/files/src/docs/plugins/editor/decorations/02-widgets.ts +20 -0
  222. package/templates/docs-showcase/files/src/docs/plugins/editor/decorations/04-state-fields.ts +57 -0
  223. package/templates/docs-showcase/files/src/docs/plugins/editor/decorations/05-view-plugins.ts +79 -0
  224. package/templates/docs-showcase/files/src/docs/plugins/editor/editor/01-intro.ts +26 -0
  225. package/templates/docs-showcase/files/src/docs/plugins/editor/editor/03-replace-current-selection.ts +26 -0
  226. package/templates/docs-showcase/files/src/docs/plugins/editor/markdown-post-processing/01-intro.ts +39 -0
  227. package/templates/docs-showcase/files/src/docs/plugins/editor/state-fields/01-defining-state-effects.ts +19 -0
  228. package/templates/docs-showcase/files/src/docs/plugins/editor/state-fields/02-defining-a-state-field.ts +35 -0
  229. package/templates/docs-showcase/files/src/docs/plugins/editor/state-fields/04-dispatching-state-effects.ts +34 -0
  230. package/templates/docs-showcase/files/src/docs/plugins/editor/state-management/01-state-changes.ts +21 -0
  231. package/templates/docs-showcase/files/src/docs/plugins/editor/state-management/02-state-changes.ts +23 -0
  232. package/templates/docs-showcase/files/src/docs/plugins/editor/view-plugins/01-creating-a-view-plugin.ts +36 -0
  233. package/templates/docs-showcase/files/src/docs/plugins/events/01-intro.ts +21 -0
  234. package/templates/docs-showcase/files/src/docs/plugins/getting-started/anatomy-of-a-plugin/01-intro.ts +22 -0
  235. package/templates/docs-showcase/files/src/docs/plugins/getting-started/anatomy-of-a-plugin/02-plugin-lifecycle.ts +22 -0
  236. package/templates/docs-showcase/files/src/docs/plugins/getting-started/build-a-plugin/06-step-5-update-the-source-code.ts +19 -0
  237. package/templates/docs-showcase/files/src/docs/plugins/getting-started/build-a-plugin/07-step-5-update-the-source-code.ts +21 -0
  238. package/templates/docs-showcase/files/src/docs/plugins/getting-started/mobile-development/03-platform-specific-features.ts +25 -0
  239. package/templates/docs-showcase/files/src/docs/plugins/getting-started/use-react-in-your-plugin/03-configure-your-plugin.ts +23 -0
  240. package/templates/docs-showcase/files/src/docs/plugins/guides/build-a-bases-view/01-step-1-sample-plugin-setup.ts +18 -0
  241. package/templates/docs-showcase/files/src/docs/plugins/guides/build-a-bases-view/02-step-2-create-and-register-the-bases-vie.ts +46 -0
  242. package/templates/docs-showcase/files/src/docs/plugins/guides/build-a-bases-view/03-step-3-add-configuration.ts +40 -0
  243. package/templates/docs-showcase/files/src/docs/plugins/guides/defer-views/04-accessing-your-customview-without-reveal.ts +26 -0
  244. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/01-overview.ts +26 -0
  245. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/02-overview.ts +30 -0
  246. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/03-automatic-resource-management-with-compo.ts +26 -0
  247. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/04-registerevent-eventref.ts +22 -0
  248. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/05-registerinterval-id.ts +21 -0
  249. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/06-registerdomevent-el-event-handler.ts +20 -0
  250. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/08-understanding-the-lifecycle-of-objects.ts +29 -0
  251. package/templates/docs-showcase/files/src/docs/plugins/guides/manage-plugin-lifecycle/14-componentized-modal-example.ts +37 -0
  252. package/templates/docs-showcase/files/src/docs/plugins/guides/optimize-plugin-load-time/01-option-a-check-if-the-layout-is-ready.ts +29 -0
  253. package/templates/docs-showcase/files/src/docs/plugins/guides/optimize-plugin-load-time/02-option-b-register-the-handler-once-the-l.ts +27 -0
  254. package/templates/docs-showcase/files/src/docs/plugins/guides/store-secrets/03-step-3-retrieve-the-secret-value.ts +22 -0
  255. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/01-use-setheading-instead-of-a-h1-h2.ts +20 -0
  256. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/03-clean-up-resources-when-plugin-unloads.ts +23 -0
  257. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/04-avoid-accessing-workspace-activeleaf-dir.ts +24 -0
  258. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/05-avoid-accessing-workspace-activeleaf-dir.ts +22 -0
  259. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/10-avoid-iterating-all-files-to-find-a-file.ts +20 -0
  260. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/11-avoid-iterating-all-files-to-find-a-file.ts +20 -0
  261. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/13-use-normalizepath-to-clean-up-user-defin.ts +18 -0
  262. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/15-no-hardcoded-styling.ts +21 -0
  263. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/16-no-hardcoded-styling.ts +19 -0
  264. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/17-no-hardcoded-styling.ts +14 -0
  265. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/18-prefer-async-await-over-promise.ts +24 -0
  266. package/templates/docs-showcase/files/src/docs/plugins/releasing/plugin-guidelines/19-prefer-async-await-over-promise.ts +27 -0
  267. package/templates/docs-showcase/files/src/docs/plugins/user-interface/commands/01-intro.ts +25 -0
  268. package/templates/docs-showcase/files/src/docs/plugins/user-interface/commands/03-editor-commands.ts +27 -0
  269. package/templates/docs-showcase/files/src/docs/plugins/user-interface/commands/05-hot-keys.ts +25 -0
  270. package/templates/docs-showcase/files/src/docs/plugins/user-interface/context-menus/01-intro.ts +41 -0
  271. package/templates/docs-showcase/files/src/docs/plugins/user-interface/html-elements/02-create-html-elements-using-createel.ts +19 -0
  272. package/templates/docs-showcase/files/src/docs/plugins/user-interface/html-elements/03-create-html-elements-using-createel.ts +21 -0
  273. package/templates/docs-showcase/files/src/docs/plugins/user-interface/html-elements/04-style-your-elements.ts +14 -0
  274. package/templates/docs-showcase/files/src/docs/plugins/user-interface/html-elements/05-style-your-elements.ts +21 -0
  275. package/templates/docs-showcase/files/src/docs/plugins/user-interface/html-elements/06-conditional-styles.ts +19 -0
  276. package/templates/docs-showcase/files/src/docs/plugins/user-interface/icons/01-use-icons.ts +20 -0
  277. package/templates/docs-showcase/files/src/docs/plugins/user-interface/icons/02-use-icons.ts +14 -0
  278. package/templates/docs-showcase/files/src/docs/plugins/user-interface/icons/03-add-your-own-icon.ts +23 -0
  279. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/01-intro.ts +20 -0
  280. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/02-intro.ts +26 -0
  281. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/03-accept-user-input.ts +38 -0
  282. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/04-accept-user-input.ts +22 -0
  283. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/05-select-from-list-of-suggestions.ts +56 -0
  284. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/06-approximate-string-matching-results.ts +28 -0
  285. package/templates/docs-showcase/files/src/docs/plugins/user-interface/modals/07-custom-rendering-of-fuzzy-search-results.ts +41 -0
  286. package/templates/docs-showcase/files/src/docs/plugins/user-interface/ribbon-actions/01-intro.ts +21 -0
  287. package/templates/docs-showcase/files/src/docs/plugins/user-interface/right-to-left/01-use-fallback-values-when-necessary.ts +14 -0
  288. package/templates/docs-showcase/files/src/docs/plugins/user-interface/right-to-left/02-global-selectors.ts +14 -0
  289. package/templates/docs-showcase/files/src/docs/plugins/user-interface/right-to-left/03-icons-are-mirrored-automatically.ts +14 -0
  290. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/09-toggle.ts +20 -0
  291. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/10-text.ts +23 -0
  292. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/11-textarea.ts +23 -0
  293. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/12-number.ts +23 -0
  294. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/13-slider.ts +23 -0
  295. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/14-dropdown.ts +28 -0
  296. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/15-file.ts +27 -0
  297. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/16-folder.ts +23 -0
  298. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/17-color-picker.ts +20 -0
  299. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/18-validating-input.ts +28 -0
  300. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/23-groups.ts +27 -0
  301. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/32-cleanup.ts +30 -0
  302. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/33-no-top-level-heading.ts +27 -0
  303. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/34-headings-only-when-there-are-multiple-se.ts +26 -0
  304. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/36-headings.ts +20 -0
  305. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/38-moment-format.ts +42 -0
  306. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/39-buttons.ts +26 -0
  307. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/40-extra-button.ts +28 -0
  308. package/templates/docs-showcase/files/src/docs/plugins/user-interface/settings/41-progress-bar.ts +23 -0
  309. package/templates/docs-showcase/files/src/docs/plugins/user-interface/status-bar/01-intro.ts +20 -0
  310. package/templates/docs-showcase/files/src/docs/plugins/user-interface/status-bar/02-intro.ts +25 -0
  311. package/templates/docs-showcase/files/src/docs/plugins/user-interface/views/01-intro.ts +39 -0
  312. package/templates/docs-showcase/files/src/docs/plugins/user-interface/workspace/05-inspect-the-workspace.ts +23 -0
  313. package/templates/docs-showcase/files/src/docs/plugins/user-interface/workspace/06-leaf-groups.ts +19 -0
  314. package/templates/docs-showcase/files/src/docs/plugins/vault/02-read-files.ts +37 -0
  315. package/templates/docs-showcase/files/src/docs/plugins/vault/03-modify-files.ts +19 -0
  316. package/templates/docs-showcase/files/src/docs/plugins/vault/04-modify-files.ts +22 -0
  317. package/templates/docs-showcase/files/src/docs/plugins/vault/05-is-it-a-file-or-folder.ts +25 -0
  318. package/templates/docs-showcase/files/src/docs/reference/css-variables/about-styling/01-for-plugins.ts +14 -0
  319. package/templates/docs-showcase/files/src/docs/reference/css-variables/about-styling/02-for-themes-and-snippets.ts +14 -0
  320. package/templates/docs-showcase/files/src/docs/reference/css-variables/publish/site-fonts/01-intro.ts +14 -0
  321. package/templates/docs-showcase/files/src/docs/reference/typescript-api/command/callback/01-example.ts +24 -0
  322. package/templates/docs-showcase/files/src/docs/reference/typescript-api/debounce/01-example.ts +24 -0
  323. package/templates/docs-showcase/files/src/docs/reference/typescript-api/vault/process/01-example.ts +22 -0
  324. package/templates/docs-showcase/files/src/docs/themes/app-themes/build-a-theme/05-step-4-change-the-font.ts +14 -0
  325. package/templates/docs-showcase/files/src/docs/themes/app-themes/build-a-theme/06-step-5-change-the-background-color.ts +14 -0
  326. package/templates/docs-showcase/files/src/docs/themes/app-themes/build-a-theme/07-step-6-change-the-input-hover-border-col.ts +14 -0
  327. package/templates/docs-showcase/files/src/docs/themes/app-themes/build-a-theme/08-step-7-discover-css-variables-in-use.ts +14 -0
  328. package/templates/docs-showcase/files/src/docs/themes/app-themes/embed-fonts-and-images-in-your-theme/02-use-data-urls.ts +14 -0
  329. package/templates/docs-showcase/files/src/docs/themes/app-themes/theme-guidelines/01-use-css-variables.ts +14 -0
  330. package/templates/docs-showcase/files/src/docs/themes/obsidian-publish-themes/best-practices-for-publish-themes/01-small-screens-and-mobile-devices.ts +14 -0
  331. package/templates/docs-showcase/files/src/docs/themes/obsidian-publish-themes/build-a-publish-theme/01-intro.ts +14 -0
  332. package/templates/docs-showcase/files/src/docs/tsconfig.json +25 -0
  333. package/templates/docs-showcase/host/entry.d.ts +8 -0
  334. package/templates/docs-showcase/host/entry.js +4 -0
  335. package/templates/docs-showcase/host/host.ts +449 -0
  336. package/templates/docs-showcase/host/tsconfig.json +25 -0
  337. package/templates/docs-showcase/snippets.json +3566 -0
  338. package/templates/official-sample/README.md +9 -0
  339. package/templates/official-sample/files/.editorconfig.vendored +11 -0
  340. package/templates/official-sample/files/.github/workflows/lint.yml.vendored +27 -0
  341. package/templates/official-sample/files/.github/workflows/release.yml.vendored +50 -0
  342. package/templates/official-sample/files/.gitignore.vendored +22 -0
  343. package/templates/official-sample/files/.npmrc.vendored +1 -0
  344. package/templates/official-sample/files/AGENTS.md.vendored +269 -0
  345. package/templates/official-sample/files/LICENSE.vendored +5 -0
  346. package/templates/official-sample/files/README.md.vendored +92 -0
  347. package/templates/official-sample/files/esbuild.config.mjs.vendored +49 -0
  348. package/templates/official-sample/files/eslint.config.mts.vendored +32 -0
  349. package/templates/official-sample/files/manifest.json.vendored +11 -0
  350. package/templates/official-sample/files/package-lock.json.vendored +5053 -0
  351. package/templates/official-sample/files/package.json.vendored +27 -0
  352. package/templates/official-sample/files/src/main.ts.vendored +114 -0
  353. package/templates/official-sample/files/src/settings.ts.vendored +38 -0
  354. package/templates/official-sample/files/styles.css.vendored +8 -0
  355. package/templates/official-sample/files/tsconfig.json.vendored +19 -0
  356. package/templates/official-sample/files/version-bump.mjs.vendored +17 -0
  357. package/templates/official-sample/files/versions.json.vendored +3 -0
  358. package/upstreams.json +35 -0
  359. package/templates/default/README.md.ejs +0 -28
  360. package/templates/default/README.md@preset_dev-utils.ejs +0 -12
  361. package/templates/default/demo-vault/Materials/01 Sample commands/Scratch note.md.ejs +0 -5
  362. package/templates/default/dprint.json_dev-utils.ejs +0 -10
  363. package/templates/default/jest.config.ts@lint-root-dir_dev-utils.ejs +0 -1
  364. package/templates/default/scripts/build-clean.ts.ejs +0 -4
  365. package/templates/default/scripts/build-compile.ts.ejs +0 -4
  366. package/templates/default/scripts/build-styles.ts.ejs +0 -12
  367. package/templates/default/scripts/build.ts@bundler_cli-bundler@import_tailwind.ejs +0 -2
  368. package/templates/default/scripts/build.ts@bundler_cli-bundler@lint-build-styles_dev-utils.ejs +0 -1
  369. package/templates/default/scripts/build.ts@bundler_esbuild.ejs +0 -3
  370. package/templates/default/scripts/build.ts@bundler_esbuild@dev-utils-pre-build_tailwind.ejs +0 -2
  371. package/templates/default/scripts/build.ts@bundler_esbuild@lint-build-styles_dev-utils.ejs +0 -1
  372. package/templates/default/scripts/build.ts@bundler_esbuild@preset_dev-utils.ejs +0 -7
  373. package/templates/default/scripts/commit.ts_dev-utils.ejs +0 -3
  374. package/templates/default/scripts/dev.ts@bundler_esbuild.ejs +0 -3
  375. package/templates/default/scripts/dev.ts@bundler_esbuild@dev-utils-pre-build_tailwind.ejs +0 -2
  376. package/templates/default/scripts/dev.ts@bundler_esbuild@lint-build-styles_dev-utils.ejs +0 -1
  377. package/templates/default/scripts/dev.ts@bundler_esbuild@preset_dev-utils.ejs +0 -7
  378. package/templates/default/scripts/esbuild-plugins.ts.ejs +0 -20
  379. package/templates/default/scripts/esbuild-plugins.ts@dev-utils-import_vue.ejs +0 -2
  380. package/templates/default/scripts/esbuild-plugins.ts@dev-utils-plugin_vue.ejs +0 -1
  381. package/templates/default/scripts/esbuild-plugins.ts@dev-utils-plugin_wasm.ejs +0 -13
  382. package/templates/default/scripts/format-check.ts@tool_dprint.ejs +0 -3
  383. package/templates/default/scripts/format-check.ts@tool_dprint@preset_dev-utils.ejs +0 -7
  384. package/templates/default/scripts/format.ts@tool_dprint.ejs +0 -3
  385. package/templates/default/scripts/format.ts@tool_dprint@preset_dev-utils.ejs +0 -7
  386. package/templates/default/scripts/lint-fix.ts@tool_eslint.ejs +0 -3
  387. package/templates/default/scripts/lint-fix.ts@tool_eslint@preset_dev-utils.ejs +0 -7
  388. package/templates/default/scripts/lint-md-fix.ts_dev-utils.ejs +0 -7
  389. package/templates/default/scripts/lint-md.ts_dev-utils.ejs +0 -7
  390. package/templates/default/scripts/lint.ts@tool_eslint.ejs +0 -3
  391. package/templates/default/scripts/lint.ts@tool_eslint@preset_dev-utils.ejs +0 -7
  392. package/templates/default/scripts/prepare.ts_dev-utils.ejs +0 -3
  393. package/templates/default/scripts/spellcheck.ts_dev-utils.ejs +0 -7
  394. package/templates/default/scripts/test-coverage.ts.ejs +0 -8
  395. package/templates/default/scripts/test-integration-android.ts.ejs +0 -8
  396. package/templates/default/scripts/test-integration-demo-vault.ts.ejs +0 -8
  397. package/templates/default/scripts/test-integration-desktop-performance.ts.ejs +0 -8
  398. package/templates/default/scripts/test-integration-desktop.ts.ejs +0 -8
  399. package/templates/default/scripts/test-integration-no-app.ts.ejs +0 -8
  400. package/templates/default/scripts/test-watch.ts_dev-utils@tool_jest.ejs +0 -13
  401. package/templates/default/scripts/test-watch.ts_dev-utils@tool_vitest.ejs +0 -8
  402. package/templates/default/scripts/test.ts_dev-utils@tool_jest.ejs +0 -13
  403. package/templates/default/scripts/test.ts_dev-utils@tool_vitest.ejs +0 -8
  404. package/templates/default/scripts/vite.config.ts@lint-empty-out-dir_dev-utils.ejs +0 -1
  405. package/templates/default/scripts/vite.config.ts@lint-out-dir_dev-utils.ejs +0 -1
  406. package/templates/default/scripts/webpack.config.ts@lint-webpack-default_dev-utils.ejs +0 -1
  407. package/templates/default/src/main.ts@import_css-modules.ejs +0 -1
  408. package/templates/default/src/views/sample-preact-view.tsx_dev-utils.ejs +0 -45
  409. package/templates/default/tsconfig.json_dev-utils@compiler-options_preact.ejs +0 -2
  410. package/templates/default/tsconfig.json_dev-utils@compiler-options_react.ejs +0 -1
  411. package/templates/default/tsconfig.json_dev-utils@compiler-options_solid.ejs +0 -2
  412. /package/templates/default/{.parcelrc.ejs → (bundlers)/.parcelrc.ejs} +0 -0
  413. /package/templates/default/{.parcelrc@transformers_svelte.ejs → (bundlers)/.parcelrc@transformers_svelte.ejs} +0 -0
  414. /package/templates/default/{babel.config.json.ejs → (bundlers)/babel.config.json.ejs} +0 -0
  415. /package/templates/default/{babel.config.mjs.ejs → (bundlers)/babel.config.mjs.ejs} +0 -0
  416. /package/templates/default/{parcel-namer-obsidian.cjs.ejs → (bundlers)/parcel-namer-obsidian.cjs.ejs} +0 -0
  417. /package/templates/default/{parcel-resolver-obsidian.cjs.ejs → (bundlers)/parcel-resolver-obsidian.cjs.ejs} +0 -0
  418. /package/templates/default/{parcel-transformer-svelte.cjs.ejs → (bundlers)/parcel-transformer-svelte.cjs.ejs} +0 -0
  419. /package/templates/default/{postcss.config.cjs.ejs → (bundlers)/postcss.config.cjs.ejs} +0 -0
  420. /package/templates/default/{rollup.config.mjs.ejs → (bundlers)/rollup.config.mjs.ejs} +0 -0
  421. /package/templates/default/{vite.config.ts.ejs → (bundlers)/vite.config.ts.ejs} +0 -0
  422. /package/templates/default/{webpack.config.ts.ejs → (bundlers)/webpack.config.ts.ejs} +0 -0
  423. /package/templates/default/{CONTRIBUTING.md@scripts_biome-formatter.ejs → (contributing)/CONTRIBUTING.md@scripts_biome-formatter.ejs} +0 -0
  424. /package/templates/default/{CONTRIBUTING.md@scripts_biome-linter.ejs → (contributing)/CONTRIBUTING.md@scripts_biome-linter.ejs} +0 -0
  425. /package/templates/default/{CONTRIBUTING.md@scripts_conventional-commits.ejs → (contributing)/CONTRIBUTING.md@scripts_conventional-commits.ejs} +0 -0
  426. /package/templates/default/{CONTRIBUTING.md@scripts_cspell.ejs → (contributing)/CONTRIBUTING.md@scripts_cspell.ejs} +0 -0
  427. /package/templates/default/{CONTRIBUTING.md@scripts_dprint.ejs → (contributing)/CONTRIBUTING.md@scripts_dprint.ejs} +0 -0
  428. /package/templates/default/{CONTRIBUTING.md@scripts_eslint.ejs → (contributing)/CONTRIBUTING.md@scripts_eslint.ejs} +0 -0
  429. /package/templates/default/{CONTRIBUTING.md@scripts_dev-utils.ejs → (contributing)/CONTRIBUTING.md@scripts_framework.ejs} +0 -0
  430. /package/templates/default/{CONTRIBUTING.md@scripts_jest.ejs → (contributing)/CONTRIBUTING.md@scripts_jest.ejs} +0 -0
  431. /package/templates/default/{CONTRIBUTING.md@scripts_markdownlint.ejs → (contributing)/CONTRIBUTING.md@scripts_markdownlint.ejs} +0 -0
  432. /package/templates/default/{CONTRIBUTING.md@scripts_prettier.ejs → (contributing)/CONTRIBUTING.md@scripts_prettier.ejs} +0 -0
  433. /package/templates/default/{CONTRIBUTING.md@scripts_vitest.ejs → (contributing)/CONTRIBUTING.md@scripts_vitest.ejs} +0 -0
  434. /package/templates/default/{prettier.config.mjs.ejs → (format)/prettier.config.mjs_standalone.ejs} +0 -0
  435. /package/templates/default/{.depcheckrc.json.ejs → (lint)/.depcheckrc.json.ejs} +0 -0
  436. /package/templates/default/{.markdownlint-cli2.mjs.ejs → (lint)/.markdownlint-cli2.mjs.ejs} +0 -0
  437. /package/templates/default/{eslint.config.mts_dev-utils.ejs → (lint)/eslint.config.mts_framework.ejs} +0 -0
  438. /package/templates/default/{eslint.config.mts_standalone@extra-files_has-e2e.ejs → (lint)/eslint.config.mts_standalone@extra-files_has-e2e.ejs} +0 -0
  439. /package/templates/default/{linkinator.config.json.ejs → (lint)/linkinator.config.json.ejs} +0 -0
  440. /package/templates/default/{.npmrc.ejs → (package)/.npmrc.ejs} +0 -0
  441. /package/templates/default/{package.json.ejs → (package)/package.json.ejs} +0 -0
  442. /package/templates/default/{pinned-versions.json.ejs → (package)/pinned-versions.json.ejs} +0 -0
  443. /package/templates/default/{pnpm-workspace.yaml.ejs → (package)/pnpm-workspace.yaml.ejs} +0 -0
  444. /package/templates/default/{README.md@support_has-funding.ejs → (readme)/README.md@support_has-funding.ejs} +0 -0
  445. /package/templates/default/{jest.config.ts@ts-jest-tsconfig_solid.ejs → (test)/jest.config.ts_standalone@ts-jest-tsconfig_solid.ejs} +0 -0
  446. /package/templates/default/{vitest.config.ts_dev-utils.ejs → (test)/vitest.config.ts_framework.ejs} +0 -0
  447. /package/templates/default/{vitest.config.ts_standalone@jsx_solid.ejs → (test)/vitest.config.ts_standalone@jsx_solid.ejs} +0 -0
  448. /package/templates/default/{tsconfig.json_dev-utils@compiler-options_i18next.ejs → (tsconfig)/(framework)/tsconfig.json_framework@compiler-options_i18next.ejs} +0 -0
  449. /package/templates/default/{tsconfig.json_dev-utils@compiler-options_lit.ejs → (tsconfig)/(framework)/tsconfig.json_framework@compiler-options_lit.ejs} +0 -0
  450. /package/templates/default/{tsconfig.json_dev-utils@include_has-e2e.ejs → (tsconfig)/(framework)/tsconfig.json_framework@include_has-e2e.ejs} +0 -0
  451. /package/templates/default/{tsconfig.json_dev-utils@include_svelte.ejs → (tsconfig)/(framework)/tsconfig.json_framework@include_svelte.ejs} +0 -0
  452. /package/templates/default/{tsconfig.json_dev-utils@include_vue.ejs → (tsconfig)/(framework)/tsconfig.json_framework@include_vue.ejs} +0 -0
  453. /package/templates/default/{tsconfig.json_dev-utils@types_jest.ejs → (tsconfig)/(framework)/tsconfig.json_framework@types_jest.ejs} +0 -0
  454. /package/templates/default/{tsconfig.json_dev-utils@types_svelte.ejs → (tsconfig)/(framework)/tsconfig.json_framework@types_svelte.ejs} +0 -0
  455. /package/templates/default/{tsconfig.json_dev-utils@types_wdio-obsidian.ejs → (tsconfig)/(framework)/tsconfig.json_framework@types_wdio-obsidian.ejs} +0 -0
  456. /package/templates/default/{tsconfig.json_dev-utils@types_with-unofficial.ejs → (tsconfig)/(framework)/tsconfig.json_framework@types_with-unofficial.ejs} +0 -0
  457. /package/templates/default/{tsconfig.json_standalone@compiler-options_i18next.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@compiler-options_i18next.ejs} +0 -0
  458. /package/templates/default/{tsconfig.json_standalone@compiler-options_lit.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@compiler-options_lit.ejs} +0 -0
  459. /package/templates/default/{tsconfig.json_standalone@compiler-options_preact.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@compiler-options_preact.ejs} +0 -0
  460. /package/templates/default/{tsconfig.json_standalone@compiler-options_react.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@compiler-options_react.ejs} +0 -0
  461. /package/templates/default/{tsconfig.json_standalone@compiler-options_solid.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@compiler-options_solid.ejs} +0 -0
  462. /package/templates/default/{tsconfig.json_standalone@include-extra_preact.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include-extra_preact.ejs} +0 -0
  463. /package/templates/default/{tsconfig.json_standalone@include-extra_react.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include-extra_react.ejs} +0 -0
  464. /package/templates/default/{tsconfig.json_standalone@include-extra_solid.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include-extra_solid.ejs} +0 -0
  465. /package/templates/default/{tsconfig.json_standalone@include_has-e2e.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include_has-e2e.ejs} +0 -0
  466. /package/templates/default/{tsconfig.json_standalone@include_svelte.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include_svelte.ejs} +0 -0
  467. /package/templates/default/{tsconfig.json_standalone@include_vue.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@include_vue.ejs} +0 -0
  468. /package/templates/default/{tsconfig.json_standalone@types_jest.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@types_jest.ejs} +0 -0
  469. /package/templates/default/{tsconfig.json_standalone@types_svelte.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@types_svelte.ejs} +0 -0
  470. /package/templates/default/{tsconfig.json_standalone@types_wdio-obsidian.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@types_wdio-obsidian.ejs} +0 -0
  471. /package/templates/default/{tsconfig.json_standalone@types_with-unofficial.ejs → (tsconfig)/(standalone)/tsconfig.json_standalone@types_with-unofficial.ejs} +0 -0
  472. /package/templates/default/.github/workflows/{ci.yml@steps_biome-linter.ejs → ci.yml_standalone@steps_biome-linter.ejs} +0 -0
  473. /package/templates/default/.github/workflows/{ci.yml@steps_cspell.ejs → ci.yml_standalone@steps_cspell.ejs} +0 -0
  474. /package/templates/default/.github/workflows/{ci.yml@steps_dprint.ejs → ci.yml_standalone@steps_dprint.ejs} +0 -0
  475. /package/templates/default/.github/workflows/{ci.yml@steps_eslint.ejs → ci.yml_standalone@steps_eslint.ejs} +0 -0
  476. /package/templates/default/.github/workflows/{ci.yml@steps_jest.ejs → ci.yml_standalone@steps_jest.ejs} +0 -0
  477. /package/templates/default/.github/workflows/{ci.yml@steps_markdownlint.ejs → ci.yml_standalone@steps_markdownlint.ejs} +0 -0
  478. /package/templates/default/.github/workflows/{ci.yml@steps_prettier.ejs → ci.yml_standalone@steps_prettier.ejs} +0 -0
  479. /package/templates/default/.github/workflows/{ci.yml@steps_vitest.ejs → ci.yml_standalone@steps_vitest.ejs} +0 -0
  480. /package/templates/default/{.gitignore_tailwind.ejs → .gitignore_tailwind-cli.ejs} +0 -0
  481. /package/templates/default/e2e/{sample.spec.ts_obsidian-test@lint-no-void-disable_dev-utils.ejs → sample.spec.ts_obsidian-test@lint-no-void-disable_framework.ejs} +0 -0
  482. /package/templates/default/e2e/{sample.spec.ts_obsidian-test@lint-no-void-enable_dev-utils.ejs → sample.spec.ts_obsidian-test@lint-no-void-enable_framework.ejs} +0 -0
  483. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@compile_svelte.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@compile_svelte.ejs} +0 -0
  484. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@fs-import_hot-reload-plugin.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@fs-import_hot-reload-plugin.ejs} +0 -0
  485. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@hot-reload_hot-reload-plugin.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@hot-reload_hot-reload-plugin.ejs} +0 -0
  486. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_tailwind.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@import_tailwind.ejs} +0 -0
  487. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@reload_obsidian-cli.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@reload_obsidian-cli.ejs} +0 -0
  488. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@run_parcel.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@run_parcel.ejs} +0 -0
  489. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@run_rollup.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@run_rollup.ejs} +0 -0
  490. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@run_vite.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@run_vite.ejs} +0 -0
  491. /package/templates/default/scripts/{build.ts@bundler_cli-bundler@run_webpack.ejs → (build)/(cli-bundler)/build.ts@bundler_cli-bundler@run_webpack.ejs} +0 -0
  492. /package/templates/default/scripts/{dev.ts@bundler_cli-bundler.ejs → (build)/(dev)/dev.ts@bundler_cli-bundler.ejs} +0 -0
  493. /package/templates/default/scripts/{dev.ts@bundler_esbuild@preset_standalone.ejs → (build)/(dev)/dev.ts@bundler_esbuild@preset_standalone.ejs} +0 -0
  494. /package/templates/default/scripts/{build.ts@bundler_esbuild@compile_svelte.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@compile_svelte.ejs} +0 -0
  495. /package/templates/default/scripts/{build.ts@bundler_esbuild@fs-import_hot-reload-plugin.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@fs-import_hot-reload-plugin.ejs} +0 -0
  496. /package/templates/default/scripts/{build.ts@bundler_esbuild@hot-reload_hot-reload-plugin.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@hot-reload_hot-reload-plugin.ejs} +0 -0
  497. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_postcss.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@import_postcss.ejs} +0 -0
  498. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_scss.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@import_scss.ejs} +0 -0
  499. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_solid.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@import_solid.ejs} +0 -0
  500. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_svelte.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@import_svelte.ejs} +0 -0
  501. /package/templates/default/scripts/{build.ts@bundler_esbuild@import_vue.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@import_vue.ejs} +0 -0
  502. /package/templates/default/scripts/{build.ts@bundler_esbuild@options_preact.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@options_preact.ejs} +0 -0
  503. /package/templates/default/scripts/{build.ts@bundler_esbuild@options_react.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@options_react.ejs} +0 -0
  504. /package/templates/default/scripts/{build.ts@bundler_esbuild@options_wasm.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@options_wasm.ejs} +0 -0
  505. /package/templates/default/scripts/{build.ts@bundler_esbuild@plugin_postcss.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@plugin_postcss.ejs} +0 -0
  506. /package/templates/default/scripts/{build.ts@bundler_esbuild@plugin_scss.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@plugin_scss.ejs} +0 -0
  507. /package/templates/default/scripts/{build.ts@bundler_esbuild@plugin_solid.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@plugin_solid.ejs} +0 -0
  508. /package/templates/default/scripts/{build.ts@bundler_esbuild@plugin_svelte.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@plugin_svelte.ejs} +0 -0
  509. /package/templates/default/scripts/{build.ts@bundler_esbuild@plugin_vue.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@plugin_vue.ejs} +0 -0
  510. /package/templates/default/scripts/{build.ts@bundler_esbuild@preset_standalone.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@preset_standalone.ejs} +0 -0
  511. /package/templates/default/scripts/{build.ts@bundler_esbuild@reload_obsidian-cli.ejs → (build)/(esbuild)/build.ts@bundler_esbuild@reload_obsidian-cli.ejs} +0 -0
  512. /package/templates/default/scripts/{format-check.ts.ejs → (format)/format-check.ts.ejs} +0 -0
  513. /package/templates/default/scripts/{format-check.ts@tool_biome-formatter.ejs → (format)/format-check.ts@tool_biome-formatter@preset_standalone.ejs} +0 -0
  514. /package/templates/default/scripts/{format-check.ts@tool_dprint@preset_standalone.ejs → (format)/format-check.ts@tool_dprint@preset_standalone.ejs} +0 -0
  515. /package/templates/default/scripts/{format-check.ts@tool_prettier.ejs → (format)/format-check.ts@tool_prettier@preset_standalone.ejs} +0 -0
  516. /package/templates/default/scripts/{format.ts.ejs → (format)/format.ts.ejs} +0 -0
  517. /package/templates/default/scripts/{format.ts@tool_biome-formatter.ejs → (format)/format.ts@tool_biome-formatter@preset_standalone.ejs} +0 -0
  518. /package/templates/default/scripts/{format.ts@tool_dprint@preset_standalone.ejs → (format)/format.ts@tool_dprint@preset_standalone.ejs} +0 -0
  519. /package/templates/default/scripts/{format.ts@tool_prettier.ejs → (format)/format.ts@tool_prettier@preset_standalone.ejs} +0 -0
  520. /package/templates/default/scripts/{prettier.config.ts.ejs → (format)/prettier.config.ts.ejs} +0 -0
  521. /package/templates/default/scripts/{lint-md-fix.ts_standalone.ejs → (lint)/(markdown)/lint-md-fix.ts_standalone.ejs} +0 -0
  522. /package/templates/default/scripts/{lint-md.ts_standalone.ejs → (lint)/(markdown)/lint-md.ts_standalone.ejs} +0 -0
  523. /package/templates/default/scripts/{eslint-config.ts@extra-files_has-e2e.ejs → (lint)/eslint-config.ts@extra-files_has-e2e.ejs} +0 -0
  524. /package/templates/default/scripts/{lint-fix.ts@tool_biome-linter.ejs → (lint)/lint-fix.ts@tool_biome-linter@preset_standalone.ejs} +0 -0
  525. /package/templates/default/scripts/{lint-fix.ts@tool_eslint@preset_standalone.ejs → (lint)/lint-fix.ts@tool_eslint@preset_standalone.ejs} +0 -0
  526. /package/templates/default/scripts/{lint.ts@tool_biome-linter.ejs → (lint)/lint.ts@tool_biome-linter@preset_standalone.ejs} +0 -0
  527. /package/templates/default/scripts/{lint.ts@tool_eslint@preset_standalone.ejs → (lint)/lint.ts@tool_eslint@preset_standalone.ejs} +0 -0
  528. /package/templates/default/scripts/{rollup.config.ts@import_rollup-babel.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_rollup-babel.ejs} +0 -0
  529. /package/templates/default/scripts/{rollup.config.ts@import_rollup-json.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_rollup-json.ejs} +0 -0
  530. /package/templates/default/scripts/{rollup.config.ts@import_rollup-postcss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_rollup-postcss.ejs} +0 -0
  531. /package/templates/default/scripts/{rollup.config.ts@import_scss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_scss.ejs} +0 -0
  532. /package/templates/default/scripts/{rollup.config.ts@import_svelte.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_svelte.ejs} +0 -0
  533. /package/templates/default/scripts/{rollup.config.ts@import_vue.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_vue.ejs} +0 -0
  534. /package/templates/default/scripts/{rollup.config.ts@import_wasm.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@import_wasm.ejs} +0 -0
  535. /package/templates/default/scripts/{rollup.config.ts@post-plugin_preact.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_preact.ejs} +0 -0
  536. /package/templates/default/scripts/{rollup.config.ts@post-plugin_react.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_react.ejs} +0 -0
  537. /package/templates/default/scripts/{rollup.config.ts@post-plugin_rollup-json.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_rollup-json.ejs} +0 -0
  538. /package/templates/default/scripts/{rollup.config.ts@post-plugin_rollup-postcss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_rollup-postcss.ejs} +0 -0
  539. /package/templates/default/scripts/{rollup.config.ts@post-plugin_scss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_scss.ejs} +0 -0
  540. /package/templates/default/scripts/{rollup.config.ts@post-plugin_solid.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_solid.ejs} +0 -0
  541. /package/templates/default/scripts/{rollup.config.ts@post-plugin_wasm.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@post-plugin_wasm.ejs} +0 -0
  542. /package/templates/default/scripts/{rollup.config.ts@pre-plugin_svelte.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@pre-plugin_svelte.ejs} +0 -0
  543. /package/templates/default/scripts/{rollup.config.ts@pre-plugin_vue.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@pre-plugin_vue.ejs} +0 -0
  544. /package/templates/default/scripts/{rollup.config.ts@unwrap_rollup-babel.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_rollup-babel.ejs} +0 -0
  545. /package/templates/default/scripts/{rollup.config.ts@unwrap_rollup-json.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_rollup-json.ejs} +0 -0
  546. /package/templates/default/scripts/{rollup.config.ts@unwrap_rollup-postcss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_rollup-postcss.ejs} +0 -0
  547. /package/templates/default/scripts/{rollup.config.ts@unwrap_scss.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_scss.ejs} +0 -0
  548. /package/templates/default/scripts/{rollup.config.ts@unwrap_svelte.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_svelte.ejs} +0 -0
  549. /package/templates/default/scripts/{rollup.config.ts@unwrap_vue.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_vue.ejs} +0 -0
  550. /package/templates/default/scripts/{rollup.config.ts@unwrap_wasm.ejs → (rollup)/(standalone)/rollup.config.ts_standalone@unwrap_wasm.ejs} +0 -0
  551. /package/templates/default/scripts/{babel.config.ts_rollup.ejs → (rollup)/babel.config.ts_rollup.ejs} +0 -0
  552. /package/templates/default/scripts/{babel.config.ts_rollup@babel-plugin_preact.ejs → (rollup)/babel.config.ts_rollup@babel-plugin_preact.ejs} +0 -0
  553. /package/templates/default/scripts/{babel.config.ts_rollup@babel-preset_react.ejs → (rollup)/babel.config.ts_rollup@babel-preset_react.ejs} +0 -0
  554. /package/templates/default/scripts/{babel.config.ts_rollup@babel-preset_solid.ejs → (rollup)/babel.config.ts_rollup@babel-preset_solid.ejs} +0 -0
  555. /package/templates/default/scripts/{test-e2e.ts.ejs → (test)/(e2e)/test-e2e.ts.ejs} +0 -0
  556. /package/templates/default/scripts/{test-e2e.ts@tool_obsidian-test.ejs → (test)/(e2e)/test-e2e.ts@tool_obsidian-test@preset_standalone.ejs} +0 -0
  557. /package/templates/default/scripts/{test-e2e.ts@tool_wdio-obsidian.ejs → (test)/(e2e)/test-e2e.ts@tool_wdio-obsidian@preset_standalone.ejs} +0 -0
  558. /package/templates/default/scripts/{framework-component-stub.ts.ejs → (test)/framework-component-stub.ts.ejs} +0 -0
  559. /package/templates/default/scripts/{test-watch.ts_dev-utils.ejs → (test)/test-watch.ts_framework.ejs} +0 -0
  560. /package/templates/default/scripts/{test-watch.ts_standalone.ejs → (test)/test-watch.ts_standalone.ejs} +0 -0
  561. /package/templates/default/scripts/{test-watch.ts_standalone@tool_jest.ejs → (test)/test-watch.ts_standalone@tool_jest.ejs} +0 -0
  562. /package/templates/default/scripts/{test-watch.ts_standalone@tool_vitest.ejs → (test)/test-watch.ts_standalone@tool_vitest.ejs} +0 -0
  563. /package/templates/default/scripts/{test.ts_dev-utils.ejs → (test)/test.ts_framework.ejs} +0 -0
  564. /package/templates/default/scripts/{test.ts_standalone.ejs → (test)/test.ts_standalone.ejs} +0 -0
  565. /package/templates/default/scripts/{test.ts_standalone@tool_jest.ejs → (test)/test.ts_standalone@tool_jest.ejs} +0 -0
  566. /package/templates/default/scripts/{test.ts_standalone@tool_vitest.ejs → (test)/test.ts_standalone@tool_vitest.ejs} +0 -0
  567. /package/templates/default/scripts/{wasm-module-stub.ts.ejs → (test)/wasm-module-stub.ts.ejs} +0 -0
  568. /package/templates/default/scripts/{vite.config.ts@import_preact.ejs → (vite)/vite.config.ts_standalone@import_preact.ejs} +0 -0
  569. /package/templates/default/scripts/{vite.config.ts@import_react.ejs → (vite)/vite.config.ts_standalone@import_react.ejs} +0 -0
  570. /package/templates/default/scripts/{vite.config.ts@import_solid.ejs → (vite)/vite.config.ts_standalone@import_solid.ejs} +0 -0
  571. /package/templates/default/scripts/{vite.config.ts@import_svelte.ejs → (vite)/vite.config.ts_standalone@import_svelte.ejs} +0 -0
  572. /package/templates/default/scripts/{vite.config.ts@import_vue.ejs → (vite)/vite.config.ts_standalone@import_vue.ejs} +0 -0
  573. /package/templates/default/scripts/{vite.config.ts@plugin_preact.ejs → (vite)/vite.config.ts_standalone@plugin_preact.ejs} +0 -0
  574. /package/templates/default/scripts/{vite.config.ts@plugin_react.ejs → (vite)/vite.config.ts_standalone@plugin_react.ejs} +0 -0
  575. /package/templates/default/scripts/{vite.config.ts@plugin_solid.ejs → (vite)/vite.config.ts_standalone@plugin_solid.ejs} +0 -0
  576. /package/templates/default/scripts/{vite.config.ts@plugin_svelte.ejs → (vite)/vite.config.ts_standalone@plugin_svelte.ejs} +0 -0
  577. /package/templates/default/scripts/{vite.config.ts@plugin_vue.ejs → (vite)/vite.config.ts_standalone@plugin_vue.ejs} +0 -0
  578. /package/templates/default/scripts/{webpack.config.ts@import_svelte.ejs → (webpack)/webpack.config.ts_standalone@import_svelte.ejs} +0 -0
  579. /package/templates/default/scripts/{webpack.config.ts@import_vue.ejs → (webpack)/webpack.config.ts_standalone@import_vue.ejs} +0 -0
  580. /package/templates/default/scripts/{webpack.config.ts@import_webpack-css-extract.ejs → (webpack)/webpack.config.ts_standalone@import_webpack-css-extract.ejs} +0 -0
  581. /package/templates/default/scripts/{webpack.config.ts@plugin_vue.ejs → (webpack)/webpack.config.ts_standalone@plugin_vue.ejs} +0 -0
  582. /package/templates/default/scripts/{webpack.config.ts@plugin_webpack-css-extract.ejs → (webpack)/webpack.config.ts_standalone@plugin_webpack-css-extract.ejs} +0 -0
  583. /package/templates/default/scripts/{webpack.config.ts@rule_css-modules.ejs → (webpack)/webpack.config.ts_standalone@rule_css-modules.ejs} +0 -0
  584. /package/templates/default/scripts/{webpack.config.ts@rule_css.ejs → (webpack)/webpack.config.ts_standalone@rule_css.ejs} +0 -0
  585. /package/templates/default/scripts/{webpack.config.ts@rule_postcss.ejs → (webpack)/webpack.config.ts_standalone@rule_postcss.ejs} +0 -0
  586. /package/templates/default/scripts/{webpack.config.ts@rule_scss.ejs → (webpack)/webpack.config.ts_standalone@rule_scss.ejs} +0 -0
  587. /package/templates/default/scripts/{webpack.config.ts@rule_solid.ejs → (webpack)/webpack.config.ts_standalone@rule_solid.ejs} +0 -0
  588. /package/templates/default/scripts/{webpack.config.ts@rule_svelte.ejs → (webpack)/webpack.config.ts_standalone@rule_svelte.ejs} +0 -0
  589. /package/templates/default/scripts/{webpack.config.ts@rule_tailwind.ejs → (webpack)/webpack.config.ts_standalone@rule_tailwind.ejs} +0 -0
  590. /package/templates/default/scripts/{webpack.config.ts@rule_vue.ejs → (webpack)/webpack.config.ts_standalone@rule_vue.ejs} +0 -0
  591. /package/templates/default/scripts/{webpack.config.ts@rule_wasm.ejs → (webpack)/webpack.config.ts_standalone@rule_wasm.ejs} +0 -0
  592. /package/templates/default/scripts/{webpack.config.ts@ts-loader-compiler-options_vue.ejs → (webpack)/webpack.config.ts_standalone@ts-loader-compiler-options_vue.ejs} +0 -0
  593. /package/templates/default/scripts/{webpack.config.ts@ts-loader-options_vue.ejs → (webpack)/webpack.config.ts_standalone@ts-loader-options_vue.ejs} +0 -0
  594. /package/templates/default/scripts/{commitlint-config.ts.ejs → commitlint-config.ts_standalone.ejs} +0 -0
  595. /package/templates/default/scripts/{nano-staged-config.ts.ejs → nano-staged-config.ts_inline-nano-staged.ejs} +0 -0
  596. /package/templates/default/src/{main.test.ts.ejs → (main)/main.test.ts.ejs} +0 -0
  597. /package/templates/default/src/{main.test.ts@test-imports_vitest.ejs → (main)/main.test.ts@test-imports_vitest.ejs} +0 -0
  598. /package/templates/default/src/{main.ts.ejs → (main)/main.ts.ejs} +0 -0
  599. /package/templates/default/src/{main.ts@import_css.ejs → (main)/main.ts@import_css.ejs} +0 -0
  600. /package/templates/default/src/{main.ts@import_postcss.ejs → (main)/main.ts@import_postcss.ejs} +0 -0
  601. /package/templates/default/src/{main.ts@import_scss.ejs → (main)/main.ts@import_scss.ejs} +0 -0
  602. /package/templates/default/src/{main.ts@import_tailwind.ejs → (main)/main.ts@import_tailwind@preset_standalone.ejs} +0 -0
  603. /package/templates/default/src/{plugin.ts_enhanced@import2_codemirror.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_codemirror.ejs} +0 -0
  604. /package/templates/default/src/{plugin.ts_enhanced@import2_i18next.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_i18next.ejs} +0 -0
  605. /package/templates/default/src/{plugin.ts_demo@import_lit.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_lit.ejs} +0 -0
  606. /package/templates/default/src/{plugin.ts_demo@import_preact.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_preact.ejs} +0 -0
  607. /package/templates/default/src/{plugin.ts_demo@import_react.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_react.ejs} +0 -0
  608. /package/templates/default/src/{plugin.ts_demo@import_solid.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_solid.ejs} +0 -0
  609. /package/templates/default/src/{plugin.ts_demo@import_svelte.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_svelte.ejs} +0 -0
  610. /package/templates/default/src/{plugin.ts_enhanced@import2_typesafe-i18n.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_typesafe-i18n.ejs} +0 -0
  611. /package/templates/default/src/{plugin.ts_demo@import_vue.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_vue.ejs} +0 -0
  612. /package/templates/default/src/{plugin.ts_demo@import_wasm.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@import2_wasm.ejs} +0 -0
  613. /package/templates/default/src/{plugin.ts_demo@method_ui-view.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@method_ui-view.ejs} +0 -0
  614. /package/templates/default/src/{plugin.ts_enhanced@onload_codemirror.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_codemirror.ejs} +0 -0
  615. /package/templates/default/src/{plugin.ts_demo@onload_i18next.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_i18next.ejs} +0 -0
  616. /package/templates/default/src/{plugin.ts_demo@onload_lit.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_lit.ejs} +0 -0
  617. /package/templates/default/src/{plugin.ts_demo@onload_preact.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_preact.ejs} +0 -0
  618. /package/templates/default/src/{plugin.ts_demo@onload_react.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_react.ejs} +0 -0
  619. /package/templates/default/src/{plugin.ts_demo@onload_solid.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_solid.ejs} +0 -0
  620. /package/templates/default/src/{plugin.ts_demo@onload_svelte.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_svelte.ejs} +0 -0
  621. /package/templates/default/src/{plugin.ts_demo@onload_typesafe-i18n.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_typesafe-i18n.ejs} +0 -0
  622. /package/templates/default/src/{plugin.ts_demo@onload_vue.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_vue.ejs} +0 -0
  623. /package/templates/default/src/{plugin.ts_demo@onload_wasm.ejs → (plugin)/(all-in-one)/plugin.ts_all-in-one@onload_wasm.ejs} +0 -0
  624. /package/templates/default/src/{plugin.ts_demo@import_i18next.ejs → (plugin)/(demo)/plugin.ts_demo@import_i18next.ejs} +0 -0
  625. /package/templates/default/src/{plugin.ts_enhanced@import2_lit.ejs → (plugin)/(demo)/plugin.ts_demo@import_lit.ejs} +0 -0
  626. /package/templates/default/src/{plugin.ts_enhanced@import2_preact.ejs → (plugin)/(demo)/plugin.ts_demo@import_preact.ejs} +0 -0
  627. /package/templates/default/src/{plugin.ts_enhanced@import2_react.ejs → (plugin)/(demo)/plugin.ts_demo@import_react.ejs} +0 -0
  628. /package/templates/default/src/{plugin.ts_enhanced@import2_solid.ejs → (plugin)/(demo)/plugin.ts_demo@import_solid.ejs} +0 -0
  629. /package/templates/default/src/{plugin.ts_enhanced@import2_svelte.ejs → (plugin)/(demo)/plugin.ts_demo@import_svelte.ejs} +0 -0
  630. /package/templates/default/src/{plugin.ts_demo@import_typesafe-i18n.ejs → (plugin)/(demo)/plugin.ts_demo@import_typesafe-i18n.ejs} +0 -0
  631. /package/templates/default/src/{plugin.ts_enhanced@import2_vue.ejs → (plugin)/(demo)/plugin.ts_demo@import_vue.ejs} +0 -0
  632. /package/templates/default/src/{plugin.ts_enhanced@import2_wasm.ejs → (plugin)/(demo)/plugin.ts_demo@import_wasm.ejs} +0 -0
  633. /package/templates/default/src/{plugin.ts_enhanced@method_ui-view.ejs → (plugin)/(demo)/plugin.ts_demo@method_ui-view.ejs} +0 -0
  634. /package/templates/default/src/{plugin.ts_enhanced@onload_i18next.ejs → (plugin)/(demo)/plugin.ts_demo@onload_i18next.ejs} +0 -0
  635. /package/templates/default/src/{plugin.ts_enhanced@onload_lit.ejs → (plugin)/(demo)/plugin.ts_demo@onload_lit.ejs} +0 -0
  636. /package/templates/default/src/{plugin.ts_enhanced@onload_preact.ejs → (plugin)/(demo)/plugin.ts_demo@onload_preact.ejs} +0 -0
  637. /package/templates/default/src/{plugin.ts_enhanced@onload_react.ejs → (plugin)/(demo)/plugin.ts_demo@onload_react.ejs} +0 -0
  638. /package/templates/default/src/{plugin.ts_enhanced@onload_solid.ejs → (plugin)/(demo)/plugin.ts_demo@onload_solid.ejs} +0 -0
  639. /package/templates/default/src/{plugin.ts_enhanced@onload_svelte.ejs → (plugin)/(demo)/plugin.ts_demo@onload_svelte.ejs} +0 -0
  640. /package/templates/default/src/{plugin.ts_enhanced@onload_typesafe-i18n.ejs → (plugin)/(demo)/plugin.ts_demo@onload_typesafe-i18n.ejs} +0 -0
  641. /package/templates/default/src/{plugin.ts_enhanced@onload_vue.ejs → (plugin)/(demo)/plugin.ts_demo@onload_vue.ejs} +0 -0
  642. /package/templates/default/src/{plugin.ts_enhanced@onload_wasm.ejs → (plugin)/(demo)/plugin.ts_demo@onload_wasm.ejs} +0 -0
  643. /package/templates/default/src/{plugin.ts_standalone@import_codemirror.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_codemirror.ejs} +0 -0
  644. /package/templates/default/src/{plugin.ts_standalone@import_i18next.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_i18next.ejs} +0 -0
  645. /package/templates/default/src/{plugin.ts_standalone@import_lit.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_lit.ejs} +0 -0
  646. /package/templates/default/src/{plugin.ts_standalone@import_preact.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_preact.ejs} +0 -0
  647. /package/templates/default/src/{plugin.ts_standalone@import_react.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_react.ejs} +0 -0
  648. /package/templates/default/src/{plugin.ts_standalone@import_solid.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_solid.ejs} +0 -0
  649. /package/templates/default/src/{plugin.ts_standalone@import_svelte.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_svelte.ejs} +0 -0
  650. /package/templates/default/src/{plugin.ts_standalone@import_typesafe-i18n.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_typesafe-i18n.ejs} +0 -0
  651. /package/templates/default/src/{plugin.ts_standalone@import_vue.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_vue.ejs} +0 -0
  652. /package/templates/default/src/{plugin.ts_standalone@import_wasm.ejs → (plugin)/(standalone)/plugin.ts_standalone@import_wasm.ejs} +0 -0
  653. /package/templates/default/src/{plugin.ts_standalone@method_ui-view.ejs → (plugin)/(standalone)/plugin.ts_standalone@method_ui-view.ejs} +0 -0
  654. /package/templates/default/src/{plugin.ts_standalone@onload_codemirror.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_codemirror.ejs} +0 -0
  655. /package/templates/default/src/{plugin.ts_standalone@onload_i18next.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_i18next.ejs} +0 -0
  656. /package/templates/default/src/{plugin.ts_standalone@onload_lit.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_lit.ejs} +0 -0
  657. /package/templates/default/src/{plugin.ts_standalone@onload_preact.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_preact.ejs} +0 -0
  658. /package/templates/default/src/{plugin.ts_standalone@onload_react.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_react.ejs} +0 -0
  659. /package/templates/default/src/{plugin.ts_standalone@onload_solid.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_solid.ejs} +0 -0
  660. /package/templates/default/src/{plugin.ts_standalone@onload_svelte.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_svelte.ejs} +0 -0
  661. /package/templates/default/src/{plugin.ts_standalone@onload_typesafe-i18n.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_typesafe-i18n.ejs} +0 -0
  662. /package/templates/default/src/{plugin.ts_standalone@onload_vue.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_vue.ejs} +0 -0
  663. /package/templates/default/src/{plugin.ts_standalone@onload_wasm.ejs → (plugin)/(standalone)/plugin.ts_standalone@onload_wasm.ejs} +0 -0
  664. /package/templates/default/src/{plugin-settings-component.test.ts_demo@test-imports_vitest.ejs → (settings)/plugin-settings-component.test.ts_all-in-one@test-imports_vitest.ejs} +0 -0
  665. /package/templates/default/src/{plugin-settings-component.test.ts_enhanced@test-imports_vitest.ejs → (settings)/plugin-settings-component.test.ts_demo@test-imports_vitest.ejs} +0 -0
  666. /package/templates/default/src/{plugin-settings.test.ts_demo.ejs → (settings)/plugin-settings.test.ts_demo.ejs} +0 -0
  667. /package/templates/default/src/{plugin-settings.test.ts_demo@test-imports_vitest.ejs → (settings)/plugin-settings.test.ts_demo@test-imports_vitest.ejs} +0 -0
  668. /package/templates/default/src/{plugin-settings.ts_enhanced.ejs → (settings)/plugin-settings.ts_all-in-one.ejs} +0 -0
  669. /package/templates/default/src/{settings.ts.ejs → (settings)/settings.ts.ejs} +0 -0
  670. /package/templates/default/src/styles/{main.css_dev-utils@content_tailwind.ejs → main.css_framework@content_tailwind.ejs} +0 -0
  671. /package/templates/default/src/views/{sample-lit-view.ts@lint-register-element_dev-utils.ejs → sample-lit-view.ts@lint-register-element_framework.ejs} +0 -0
  672. /package/templates/default/src/views/{sample-preact-view.tsx_standalone.ejs → sample-preact-view.tsx.ejs} +0 -0
  673. /package/templates/default/src/views/{sample-solid-view.tsx_dev-utils.ejs → sample-solid-view.tsx_framework.ejs} +0 -0
  674. /package/templates/default/src/wasm/{answer.ts_esbuild.ejs → answer.ts_wasm-esbuild.ejs} +0 -0
  675. /package/templates/default/src/wasm/{answer.ts_parcel.ejs → answer.ts_wasm-parcel.ejs} +0 -0
  676. /package/templates/default/src/wasm/{answer.ts_rollup.ejs → answer.ts_wasm-rollup.ejs} +0 -0
  677. /package/templates/default/src/wasm/{answer.ts_vite.ejs → answer.ts_wasm-vite.ejs} +0 -0
  678. /package/templates/default/src/wasm/{answer.ts_webpack.ejs → answer.ts_wasm-webpack.ejs} +0 -0
  679. /package/templates/default/src/{wasm.d.ts_esbuild.ejs → wasm.d.ts_wasm-esbuild.ejs} +0 -0
  680. /package/templates/default/src/{wasm.d.ts_parcel.ejs → wasm.d.ts_wasm-parcel.ejs} +0 -0
  681. /package/templates/default/src/{wasm.d.ts_rollup.ejs → wasm.d.ts_wasm-rollup.ejs} +0 -0
  682. /package/templates/default/src/{wasm.d.ts_vite.ejs → wasm.d.ts_wasm-vite.ejs} +0 -0
  683. /package/templates/default/src/{wasm.d.ts_webpack.ejs → wasm.d.ts_wasm-webpack.ejs} +0 -0
@@ -0,0 +1,23 @@
1
+ // Docs: Use React in your plugin > Configure your plugin (3)
2
+ // https://docs.obsidian.md/Plugins/Getting+started/Use+React+in+your+plugin#Configure+your+plugin
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Getting%20started/Use%20React%20in%20your%20plugin.md?plain=1#L25
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+
10
+ async function snippet(context: DocsContext) {
11
+ const value = (
12
+ {
13
+ "compilerOptions": {
14
+ "jsx": "react-jsx"
15
+ }
16
+ }
17
+ );
18
+ await context.showResult(value);
19
+ }
20
+
21
+ export async function run(context: DocsContext): Promise<void> {
22
+ await snippet(context);
23
+ }
@@ -0,0 +1,18 @@
1
+ // Docs: Build a Bases view > Step 1: Sample plugin setup
2
+ // https://docs.obsidian.md/Plugins/Guides/Build+a+Bases+view#Step+1%3A+Sample+plugin+setup
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Build%20a%20Bases%20view.md?plain=1#L37
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ export default class MyPlugin extends Plugin {
12
+ async onload() {
13
+ }
14
+ }
15
+
16
+ export async function run(context: DocsContext): Promise<void> {
17
+ await context.toggleChildPlugin(MyPlugin);
18
+ }
@@ -0,0 +1,46 @@
1
+ // Docs: Build a Bases view > Step 2: Create and register the Bases view
2
+ // https://docs.obsidian.md/Plugins/Guides/Build+a+Bases+view#Step+2%3A+Create+and+register+the+Bases+view
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Build%20a%20Bases%20view.md?plain=1#L48
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { BasesView, Plugin, QueryController } from 'obsidian';
10
+
11
+ export const ExampleViewType = 'example-view';
12
+
13
+ export default class MyPlugin extends Plugin {
14
+ async onload() {
15
+ // Tell Obsidian about the new view type that this plugin provides.
16
+ this.registerBasesView(ExampleViewType, {
17
+ name: 'Example',
18
+ icon: 'lucide-graduation-cap',
19
+ factory: (controller, containerEl) => {
20
+ return new MyBasesView(controller, containerEl)
21
+ },
22
+ });
23
+ }
24
+ }
25
+
26
+ export class MyBasesView extends BasesView {
27
+ readonly type = ExampleViewType;
28
+ private containerEl: HTMLElement;
29
+
30
+ constructor(controller: QueryController, parentEl: HTMLElement) {
31
+ super(controller);
32
+ this.containerEl = parentEl.createDiv('bases-example-view-container');
33
+ }
34
+
35
+ // onDataUpdated is called by Obsidian whenever there is a configuration
36
+ // or data change in the vault which may affect your view. For now,
37
+ // simply draw "Hello World" to screen.
38
+ public onDataUpdated(): void {
39
+ this.containerEl.empty();
40
+ this.containerEl.createDiv({ text: 'Hello World' });
41
+ }
42
+ }
43
+
44
+ export async function run(context: DocsContext): Promise<void> {
45
+ await context.toggleChildPlugin(MyPlugin);
46
+ }
@@ -0,0 +1,40 @@
1
+ // Docs: Build a Bases view > Step 3: Add configuration
2
+ // https://docs.obsidian.md/Plugins/Guides/Build+a+Bases+view#Step+3%3A+Add+configuration
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Build%20a%20Bases%20view.md?plain=1#L91
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { ExampleViewType, MyBasesView } from './02-step-2-create-and-register-the-bases-vie.ts';
10
+ import { Plugin } from 'obsidian';
11
+
12
+ export default class MyPlugin extends Plugin {
13
+ async onload() {
14
+ // Tell Obsidian about the new view type that this plugin provides.
15
+ this.registerBasesView(ExampleViewType, {
16
+ name: "Example",
17
+ icon: 'lucide-graduation-cap',
18
+ factory: (controller, containerEl) => {
19
+ return new MyBasesView(controller, containerEl)
20
+ },
21
+ options: () => ([
22
+ {
23
+ // The type of option. 'text' is a text input.
24
+ type: 'text',
25
+ // The name displayed in the settings menu.
26
+ displayName: 'Property separator',
27
+ // The value saved to the view settings.
28
+ key: 'separator',
29
+ // The default value for this option.
30
+ default: ' - ',
31
+ },
32
+ // ...
33
+ ]),
34
+ });
35
+ }
36
+ }
37
+
38
+ export async function run(context: DocsContext): Promise<void> {
39
+ await context.toggleChildPlugin(MyPlugin);
40
+ }
@@ -0,0 +1,26 @@
1
+ // Docs: Defer views > Accessing your CustomView without reveal (Advanced)
2
+ // https://docs.obsidian.md/Plugins/Guides/Defer+views#Accessing+your+%60CustomView%60+without+reveal+(Advanced)
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Defer%20views.md?plain=1#L74
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { requireApiVersion } from 'obsidian';
10
+
11
+ async function snippet(context: DocsContext) {
12
+ const workspace = context.app.workspace;
13
+ {
14
+ let leaves = workspace.getLeavesOfType('my-view');
15
+ for (let leaf of leaves) {
16
+ if (requireApiVersion('1.7.2')) {
17
+ await leaf.loadIfDeferred(); // Ensure view is fully loaded
18
+ }
19
+ // perform modifications here...
20
+ }
21
+ }
22
+ }
23
+
24
+ export async function run(context: DocsContext): Promise<void> {
25
+ await context.showResult(await snippet(context));
26
+ }
@@ -0,0 +1,26 @@
1
+ // Docs: Manage plugin lifecycle > Overview
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#Overview
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L23
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ // Bad: the listener is never removed!
12
+ class MyPlugin extends Plugin {
13
+ onResize() {
14
+ console.debug("Window resized!");
15
+ }
16
+
17
+ onload() {
18
+ window.addEventListener("resize", this.onResize);
19
+ }
20
+ }
21
+
22
+ export { MyPlugin };
23
+
24
+ export async function run(context: DocsContext): Promise<void> {
25
+ await context.toggleChildPlugin(MyPlugin);
26
+ }
@@ -0,0 +1,30 @@
1
+ // Docs: Manage plugin lifecycle > Overview (2)
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#Overview
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L40
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ // Better: but more tedious and error-prone.
12
+ class MyPlugin extends Plugin {
13
+ onResize() {
14
+ console.debug("Window resized!");
15
+ }
16
+
17
+ onload() {
18
+ window.addEventListener("resize", this.onResize);
19
+ }
20
+
21
+ onunload() {
22
+ window.removeEventListener("resize", this.onResize);
23
+ }
24
+ }
25
+
26
+ export { MyPlugin };
27
+
28
+ export async function run(context: DocsContext): Promise<void> {
29
+ await context.toggleChildPlugin(MyPlugin);
30
+ }
@@ -0,0 +1,26 @@
1
+ // Docs: Manage plugin lifecycle > Automatic Resource Management with Component
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#Automatic+Resource+Management+with+%60Component%60
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L65
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ // Best: the listener is automatically cleaned up!
12
+ class MyPlugin extends Plugin {
13
+ onResize() {
14
+ console.debug("Window resized!");
15
+ }
16
+
17
+ onload() {
18
+ this.registerDomEvent(window, "resize", this.onResize);
19
+ }
20
+ }
21
+
22
+ export { MyPlugin };
23
+
24
+ export async function run(context: DocsContext): Promise<void> {
25
+ await context.toggleChildPlugin(MyPlugin);
26
+ }
@@ -0,0 +1,22 @@
1
+ // Docs: Manage plugin lifecycle > Automatic Resource Management with Component > registerEvent(eventRef)
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#%60registerEvent(eventRef)%60
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L86
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ this.registerEvent(
13
+ this.app.vault.on("modify", (file) => {
14
+ console.debug("File modified:", file.path);
15
+ })
16
+ );
17
+ }
18
+ }
19
+
20
+ export async function run(context: DocsContext): Promise<void> {
21
+ await context.showResult(await snippet.call(context.thisValue(), context));
22
+ }
@@ -0,0 +1,21 @@
1
+ // Docs: Manage plugin lifecycle > Automatic Resource Management with Component > registerInterval(id)
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#%60registerInterval(id)%60
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L98
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ const id = window.setInterval(() => {
13
+ console.debug("Periodic task running...");
14
+ }, 1000);
15
+ this.registerInterval(id);
16
+ }
17
+ }
18
+
19
+ export async function run(context: DocsContext): Promise<void> {
20
+ await context.showResult(await snippet.call(context.thisValue(), context));
21
+ }
@@ -0,0 +1,20 @@
1
+ // Docs: Manage plugin lifecycle > Automatic Resource Management with Component > registerDomEvent(el, event, handler)
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#%60registerDomEvent(el%2C+event%2C+handler)%60
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L109
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ this.registerDomEvent(window, "resize", () => {
13
+ console.debug("Window resized!");
14
+ });
15
+ }
16
+ }
17
+
18
+ export async function run(context: DocsContext): Promise<void> {
19
+ await context.showResult(await snippet.call(context.thisValue(), context));
20
+ }
@@ -0,0 +1,29 @@
1
+ // Docs: Manage plugin lifecycle > Understanding The Lifecycle of Objects (2)
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#Understanding+The+Lifecycle+of+Objects
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L160
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Modal } from 'obsidian';
10
+
11
+ class MyModal extends Modal {
12
+ onKeyDown() {
13
+ console.debug("Key pressed!");
14
+ }
15
+
16
+ onOpen() {
17
+ window.addEventListener("keydown", this.onKeyDown);
18
+ }
19
+
20
+ onClose() {
21
+ window.removeEventListener("keydown", this.onKeyDown);
22
+ }
23
+ }
24
+
25
+ export { MyModal };
26
+
27
+ export async function run(context: DocsContext): Promise<void> {
28
+ context.openModal(new MyModal(context.app));
29
+ }
@@ -0,0 +1,37 @@
1
+ // Docs: Manage plugin lifecycle > Creating Your Own Components > Componentized Modal Example
2
+ // https://docs.obsidian.md/Plugins/Guides/Manage+plugin+lifecycle#Componentized+Modal+Example
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Manage%20plugin%20lifecycle.md?plain=1#L349
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { App, Component, Modal } from 'obsidian';
10
+
11
+ class MyModal extends Modal {
12
+ private component: Component;
13
+
14
+ public constructor(app: App) {
15
+ super(app);
16
+ this.component = new Component();
17
+ this.component.load();
18
+ }
19
+
20
+ onOpen() {
21
+ // Register the keyboard event on the component
22
+ this.component.registerDomEvent(window, "keydown", (evt) => {
23
+ console.debug("Key pressed:", evt.key);
24
+ });
25
+ }
26
+
27
+ onClose() {
28
+ // Manually unload the component, which removes the listener
29
+ this.component.unload();
30
+ }
31
+ }
32
+
33
+ export { MyModal };
34
+
35
+ export async function run(context: DocsContext): Promise<void> {
36
+ context.openModal(new MyModal(context.app));
37
+ }
@@ -0,0 +1,29 @@
1
+ // Docs: Optimize plugin load time > Pitfalls > Listening to vault.on('create') > Option A. Check if the layout is ready
2
+ // https://docs.obsidian.md/Plugins/Guides/Optimize+plugin+load+time#Option+A.+Check+if+the+layout+is+ready
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Optimize%20plugin%20load%20time.md?plain=1#L36
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ class MyPlugin extends Plugin {
12
+ onload() {
13
+ this.registerEvent(this.app.vault.on('create', this.onCreate, this));
14
+ }
15
+
16
+ onCreate() {
17
+ if (!this.app.workspace.layoutReady) {
18
+ // Workspace is still loading, do nothing
19
+ return;
20
+ }
21
+ // ...
22
+ }
23
+ }
24
+
25
+ export { MyPlugin };
26
+
27
+ export async function run(context: DocsContext): Promise<void> {
28
+ await context.toggleChildPlugin(MyPlugin);
29
+ }
@@ -0,0 +1,27 @@
1
+ // Docs: Optimize plugin load time > Pitfalls > Listening to vault.on('create') > Option B. Register the handler once the layout is ready
2
+ // https://docs.obsidian.md/Plugins/Guides/Optimize+plugin+load+time#Option+B.+Register+the+handler+once+the+layout+is+ready
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Optimize%20plugin%20load%20time.md?plain=1#L54
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin } from 'obsidian';
10
+
11
+ class MyPlugin extends Plugin {
12
+ onload() {
13
+ this.app.workspace.onLayoutReady(() => {
14
+ this.registerEvent(this.app.vault.on('create', this.onCreate, this));
15
+ });
16
+ }
17
+
18
+ onCreate() {
19
+ // ...
20
+ }
21
+ }
22
+
23
+ export { MyPlugin };
24
+
25
+ export async function run(context: DocsContext): Promise<void> {
26
+ await context.toggleChildPlugin(MyPlugin);
27
+ }
@@ -0,0 +1,22 @@
1
+ // Docs: Store secrets > Step 3: Retrieve the secret value
2
+ // https://docs.obsidian.md/Plugins/Guides/Store+secrets#Step+3%3A+Retrieve+the+secret+value
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Guides/Store%20secrets.md?plain=1#L89
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ const app = context.app;
12
+ {
13
+ const secret = app.secretStorage.getSecret(this.settings.mySetting);
14
+ if (secret) { // secret value might be null
15
+
16
+ }
17
+ }
18
+ }
19
+
20
+ export async function run(context: DocsContext): Promise<void> {
21
+ await context.showResult(await snippet.call(context.thisValue(), context));
22
+ }
@@ -0,0 +1,20 @@
1
+ // Docs: Plugin guidelines > UI text > Use setHeading instead of a <h1>, <h2>
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Use+%60setHeading%60+instead+of+a+%60%3Ch1%3E%60%2C+%60%3Ch2%3E%60
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L73
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Setting } from 'obsidian';
10
+
11
+ async function snippet(context: DocsContext) {
12
+ const containerEl = context.getContainerEl();
13
+ {
14
+ new Setting(containerEl).setName('your heading title').setHeading();
15
+ }
16
+ }
17
+
18
+ export async function run(context: DocsContext): Promise<void> {
19
+ await context.showResult(await snippet(context));
20
+ }
@@ -0,0 +1,23 @@
1
+ // Docs: Plugin guidelines > Resource management > Clean up resources when plugin unloads
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Clean+up+resources+when+plugin+unloads
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L104
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { Plugin, TAbstractFile } from 'obsidian';
10
+
11
+ export default class MyPlugin extends Plugin {
12
+ onload() {
13
+ this.registerEvent(this.app.vault.on('create', this.onCreate));
14
+ }
15
+
16
+ onCreate = (file: TAbstractFile) => {
17
+ // ...
18
+ };
19
+ }
20
+
21
+ export async function run(context: DocsContext): Promise<void> {
22
+ await context.toggleChildPlugin(MyPlugin);
23
+ }
@@ -0,0 +1,24 @@
1
+ // Docs: Plugin guidelines > Workspace > Avoid accessing workspace.activeLeaf directly
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid+accessing+%60workspace.activeLeaf%60+directly
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L146
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+ import { MarkdownView } from 'obsidian';
10
+
11
+ async function snippet(this: DocsThis, context: DocsContext) {
12
+ {
13
+ const view = this.app.workspace.getActiveViewOfType(MarkdownView);
14
+
15
+ // getActiveViewOfType will return null if the active view is null, or if it's not a MarkdownView.
16
+ if (view) {
17
+ // ...
18
+ }
19
+ }
20
+ }
21
+
22
+ export async function run(context: DocsContext): Promise<void> {
23
+ await context.showResult(await snippet.call(context.thisValue(), context));
24
+ }
@@ -0,0 +1,22 @@
1
+ // Docs: Plugin guidelines > Workspace > Avoid accessing workspace.activeLeaf directly (2)
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid+accessing+%60workspace.activeLeaf%60+directly
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L157
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ const editor = this.app.workspace.activeEditor?.editor;
13
+
14
+ if (editor) {
15
+ // ...
16
+ }
17
+ }
18
+ }
19
+
20
+ export async function run(context: DocsContext): Promise<void> {
21
+ await context.showResult(await snippet.call(context.thisValue(), context));
22
+ }
@@ -0,0 +1,20 @@
1
+ // Docs: Plugin guidelines > Vault > Avoid iterating all files to find a file by its path (2)
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid+iterating+all+files+to+find+a+file+by+its+path
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L236
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ const filePath = 'folder/file.md';
13
+ // if you want to get a file
14
+ const file = this.app.vault.getFileByPath(filePath);
15
+ }
16
+ }
17
+
18
+ export async function run(context: DocsContext): Promise<void> {
19
+ await context.showResult(await snippet.call(context.thisValue(), context));
20
+ }
@@ -0,0 +1,20 @@
1
+ // Docs: Plugin guidelines > Vault > Avoid iterating all files to find a file by its path (3)
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid+iterating+all+files+to+find+a+file+by+its+path
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L242
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext, DocsThis } from '../../../host.ts';
9
+
10
+ async function snippet(this: DocsThis, context: DocsContext) {
11
+ {
12
+ const folderPath = 'folder';
13
+ // or if you want to get a folder
14
+ const folder = this.app.vault.getFolderByPath(folderPath);
15
+ }
16
+ }
17
+
18
+ export async function run(context: DocsContext): Promise<void> {
19
+ await context.showResult(await snippet.call(context.thisValue(), context));
20
+ }
@@ -0,0 +1,18 @@
1
+ // Docs: Plugin guidelines > Vault > Use normalizePath() to clean up user-defined paths
2
+ // https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Use+%60normalizePath()%60+to+clean+up+user-defined+paths
3
+ // Source: https://github.com/obsidianmd/obsidian-developer-docs/blob/1c26772ac13d6e9870c865936d389fdfe694e742/en/Plugins/Releasing/Plugin%20guidelines.md?plain=1#L271
4
+ // The code block is licensed under 0BSD (code examples of obsidianmd/obsidian-developer-docs, Copyright (C) 2020-2026 Dynalist Inc.).
5
+ // The code block is upstream's, as the docs show it. create-obsidian-plugin generated the rest: the imports it
6
+ // leaves out, the exports later blocks on the page take, and the `run(context)` host the command calls.
7
+
8
+ import type { DocsContext } from '../../../host.ts';
9
+ import { normalizePath } from 'obsidian';
10
+
11
+ const pathToPlugin = normalizePath('//my-folder\file');
12
+ // pathToPlugin contains "my-folder/file" not "//my-folder\"
13
+
14
+ export { pathToPlugin };
15
+
16
+ export async function run(context: DocsContext): Promise<void> {
17
+ context.report("Declares pathToPlugin. It compiles against the API, and there is nothing in it to run on its own.");
18
+ }