Commit graph

7 commits

Author SHA1 Message Date
Kodai Nakamura
621b15a7a1 refactor(replace-urls): centralize prose-aware URL formatting
Why:
- URL formatting orchestration was split across formatting-run and the GitHub adapter, which made adapter ordering harder to reason about.
- Task 4 added prose segmentation, and URL formatting needed to use it so protected Markdown stays untouched while still supporting linear:// URLs.

What:
- add a dedicated url-formatting module that applies GitHub, Jira, and Linear adapters in one prose-aware pass
- route formatting-run document/body URL formatting through the central formatter and remove cross-adapter orchestration from github.ts
- extend markdown segmentation and compatibility tests to cover protected angle-bracket autolinks and linear:// matching
2026-06-22 03:22:28 +09:00
Kodai Nakamura
8748a6c4d2 fix(plugin): resolve obsidian compatibility warnings
Why:
- Obsidian's plugin checks were reporting compatibility and packaging warnings that could break popout-window behavior or leave async failures unhandled.
- The build also depended on a deprecated module listing package and carried inline tests that leaked warning noise into the production bundle.

What:
- add @codemirror/view as a runtime dependency and replace builtin-modules with node:module builtinModules in the esbuild config
- route plugin async startup and save-file hooks through compatibility helpers so delayed work uses window.setTimeout and fire-and-forget promises are explicitly handled
- switch the AI progress notice to activeDocument, await clipboard writes, align extended Obsidian types, rename the settings heading, and remove unused catch bindings
- move trie inline tests into dedicated Vitest files and add coverage for the new compatibility helpers to keep the build warning-free
2026-05-26 21:49:50 +09:00
Kodai Nakamura
2943d80742 chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00
Kodai Nakamura
c997fd075a chore: fix lint 2025-12-20 20:25:54 +09:00
Kodai Nakamura
ced0210af8 feat: handle Linear URLs and format them in Obsidian link style 2025-11-27 15:03:01 +09:00
Kodai Nakamura
f0947406e1 refactor: reorganize settings module and update import paths
- Move settings-related files into a dedicated `settings` directory
- Update import paths in main plugin, URL formatting modules, and test files
- Maintain existing settings functionality and structure
2025-02-16 14:10:08 +09:00
Kodai Nakamura
3881035fa7 feat: add Jira URL formatting with domain support
- Implement Jira URL formatting feature in main plugin logic
- Create new Jira URL parsing and formatting module
- Add settings for Jira URL formatting and domain configuration
- Include comprehensive test suite for Jira URL formatting scenarios
- Support URL transformations for multiple Jira domains
2025-02-16 14:07:27 +09:00
Renamed from src/replace-urls/index.ts (Browse further)