Commit graph

210 commits

Author SHA1 Message Date
Kodai Nakamura
fd69706fd2 chore 2025-02-22 21:41:06 +09:00
Kodai Nakamura
d40c041430 feat: implement case-insensitive handling in link resolution and trie building 2025-02-22 21:37:52 +09:00
Kodai Nakamura
c90b5b2661 feat: enhance link resolution with case-insensitive matching and update tests 2025-02-22 21:17:06 +09:00
Kodai Nakamura
36aadfea6b refactor: reorganize replace-links module and add ignoreCase option 2025-02-22 20:38:37 +09:00
Kodai Nakamura
f6214f97c8 Merge branch 'master' into ignore-case 2025-02-22 20:33:44 +09:00
Kodai Nakamura
64cdcf949a fix: correct link resolution in alias tests 2025-02-22 20:32:43 +09:00
Kodai Nakamura
7c1ddbf5c1 feat: add ignoreCase setting for link matching and enhance tests 2025-02-22 20:19:25 +09:00
Kodai Nakamura
b448b80d27
Merge pull request #3 from kdnk/smart-case 2025-02-22 16:38:31 +09:00
Kodai Nakamura
6fba11af68 refactor: update test helpers to use settings object 2025-02-22 16:36:42 +09:00
Kodai Nakamura
71464f5a8f 1.3.3 2025-02-20 22:07:13 +09:00
Kodai Nakamura
ccf4f64b12 fix: type annotation for replaceLinks function 2025-02-20 22:06:57 +09:00
Kodai Nakamura
311252e129 1.3.2 2025-02-20 22:04:48 +09:00
Kodai Nakamura
7a8dff14c6 fix: standardize setting names to sentence case for consistency 2025-02-20 21:59:34 +09:00
Kodai Nakamura
a01fd88f13 refactor: simplify command IDs in Automatic Linker Plugin 2025-02-20 21:53:19 +09:00
Kodai Nakamura
d4920640ba fix: use this.app.vault.process 2025-02-20 21:48:40 +09:00
Kodai Nakamura
32fea61b4e chore: update minimum app version to 1.8.7 in manifest 2025-02-20 21:40:46 +09:00
Kodai Nakamura
ddf1cc457e feat: add debug logging option to Automatic Linker Plugin 2025-02-20 21:40:07 +09:00
Kodai Nakamura
6c7a01092d chore: update description in manifest for clarity 2025-02-20 21:35:28 +09:00
Kodai Nakamura
952c605755 chore: update minimum app version to 1.8.0 in manifest and versions files 2025-02-20 21:34:46 +09:00
Kodai Nakamura
79e7fee56b 1.3.1 2025-02-18 09:39:54 +09:00
Kodai Nakamura
5f29a33c8c chore: add command to rebuild all files 2025-02-18 09:25:07 +09:00
Kodai Nakamura
83b52cc071 1.3.0 2025-02-18 01:20:24 +09:00
Kodai Nakamura
a37805a9b0 1.2.2 2025-02-18 01:20:19 +09:00
Kodai Nakamura
2ef7f6373c test: update CJK link replacement test with simplified display text
- Modify test case to use shorter display text for namespaced link
- Ensure concise and clear link representation in test scenario
2025-02-18 01:20:01 +09:00
Kodai Nakamura
b8d43918fb feat: enhance link replacement with dynamic alias generation
- Implement dynamic alias generation for links with namespaced paths
- Add support for explicit aliases when present
- Use last segment as display text for namespaced links
- Refactor link replacement logic to handle various link formatting scenarios
2025-02-18 01:11:19 +09:00
Kodai Nakamura
43185fc077 test: refactor alias handling test for link replacement
- Remove redundant test case for namespaced path alias
- Simplify test case for exact match preference
- Maintain clear and focused test coverage for link replacement behavior
2025-02-18 01:11:03 +09:00
Kodai Nakamura
b512d39bbf test: simplify alias handling test case for link replacement
- Update test expectation to remove redundant alias
- Ensure minimal and clear test case for link replacement behavior
2025-02-18 00:56:28 +09:00
Kodai Nakamura
afcf2fa1e8 test: update link replacement test cases for base directory and display text
- Modify test case for multiple links to remove base directory settings
- Update CJK link replacement test to use last segment as display text
- Ensure consistent link replacement behavior across different scenarios
2025-02-18 00:54:43 +09:00
Kodai Nakamura
9bc1b7e433 test: enhance alias handling for link replacement
- Add test case for using last part as alias for namespaced paths
- Update test to prefer exact match over alias when no namespace
- Modify test expectations for namespaced link aliases
- Remove redundant test cases for non-namespaced path replacements
2025-02-18 00:34:03 +09:00
Kodai Nakamura
9aa212bfff test: update CJK link replacement test case with display text 2025-02-18 00:33:18 +09:00
Kodai Nakamura
9ce0fbdb57 test: add test cases for non-namespaced and namespaced link replacement
- Add test for non-aliased namespaced path link replacement
- Add test for non-namespaced path link replacement without alias
- Expand test coverage for link replacement scenarios
2025-02-18 00:19:34 +09:00
Kodai Nakamura
af511449d2 feat: update link replacement to include display text
- Modify test cases to expect links with display text (e.g., `[[namespace/tag1|tag1]]`)
- Update link replacement logic to automatically add display text based on the last segment of the link
- Ensure consistent link formatting across different test scenarios including namespaces and CJK text
2025-02-18 00:14:51 +09:00
Kodai Nakamura
4a8e7493ef 1.2.1 2025-02-16 17:42:52 +09:00
Kodai Nakamura
1733301d00 chore: add test for replacing links with space 2025-02-16 17:42:38 +09:00
Kodai Nakamura
1979d8e4ed chore: update buildCandidateTrie signature 2025-02-16 17:42:31 +09:00
Kodai Nakamura
16207925a8 chore: remove console.log 2025-02-16 16:42:27 +09:00
Kodai Nakamura
18c21d0b3b chore: move getEffectiveNamespace to trie.ts 2025-02-16 16:41:40 +09:00
Kodai Nakamura
11ab90355c chore: add settings to tests 2025-02-16 16:32:03 +09:00
Kodai Nakamura
44dc828135 1.2.0 2025-02-16 15:20:03 +09:00
Kodai Nakamura
7647f56630 feat: improve CJK link resolution and candidate handling
- Add support for registering CJK text segments in candidate trie
- Enhance link replacement for CJK words with namespace and alias support
- Implement more robust CJK text matching in link resolution
- Add test cases for CJK link conversion with namespaces and multiple occurrences
2025-02-16 15:19:43 +09:00
Kodai Nakamura
ebcd5471a5 feat: add GitHub and Jira URL formatting settings to README
- Update README with new features for GitHub and Jira URL formatting
- Add configuration options for GitHub Enterprise and Jira domain URLs
- Enhance documentation to reflect recent plugin enhancements
2025-02-16 14:16:18 +09:00
Kodai Nakamura
5201e0ecdd 1.1.0 2025-02-16 14:14:17 +09:00
Kodai Nakamura
6852b93b42 feat: add JIRA URL formatting settings to plugin configuration
- Introduce toggle for formatting JIRA URLs on save
- Add text area for configuring multiple JIRA domain URLs
- Enable users to customize JIRA URL formatting behavior
2025-02-16 14:13:54 +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
Kodai Nakamura
4c0f95e0de feat: add GitHub URL formatting with enterprise support
- Implement GitHub URL formatting feature in main plugin logic
- Create new `replace-urls` module with comprehensive URL parsing and formatting
- Add settings for GitHub URL formatting and enterprise URL configuration
- Include comprehensive test suite for GitHub URL formatting scenarios
- Support both standard GitHub and GitHub Enterprise URL transformations
2025-02-16 13:52:53 +09:00
Kodai Nakamura
89df0c36ee refactor: simplify test helpers and update file structure for replace-links tests 2025-02-16 13:13:02 +09:00
Kodai Nakamura
4e36070da3 1.0.0 2025-02-16 12:58:58 +09:00
Kodai Nakamura
df44dd79ce
Merge pull request #2 from kdnk/refactor-tests
refactor: restructure replace-links module and improve namespace reso…
2025-02-16 12:58:27 +09:00
Kodai Nakamura
feefacdc7d refactor: enhance link resolution logic and improve alias handling in replaceLinks 2025-02-16 12:53:27 +09:00