mirror of
https://github.com/bambuscontrol/obsidian-unicode-search.git
synced 2026-07-22 07:20:27 +00:00
Co-authored-by: BambusControl <73384901+BambusControl@users.noreply.github.com> Agent-Logs-Url: https://github.com/BambusControl/obsidian-unicode-search/sessions/38855c47-98bf-46a6-9433-4e8208b7fb2a
1.3 KiB
1.3 KiB
Copilot coding instructions
Project overview
- This repository contains the Obsidian Unicode Search plugin.
- Source code is in
/src:/src/unicode-searchcontains plugin/runtime integration with the Obsidian API./src/librariescontains reusable pure logic (comparison, helpers, data, ordering, and types).
- Tests are in
/testsand generally mirror files in/src/libraries.
Development workflow
- Use Node.js + npm.
- Main scripts:
npm run dev– development build/watch modenpm run build– TypeScript check + production bundlenpm run test– Jest testsnpm run export-schema– regenerateresources/save-data-schema.jsonfor SaveData changes
- Before finalizing changes, run:
npm run buildnpm run test
Coding guidelines
- Use TypeScript and keep changes strongly typed.
- Follow existing formatting conventions from
.editorconfig(UTF-8, LF, 4 spaces). - Keep business logic in
/src/librarieswhen possible; keep Obsidian UI/plugin glue in/src/unicode-search. - Make focused, minimal changes that fit existing naming and structure.
Testing guidelines
- Add or update Jest tests for logic changes.
- Place tests under
/testsin the corresponding mirrored path. - Prefer targeted unit tests over broad rewrites.