かなり複雑なロジックになってしまったが、実用レベルには至ったと思う... テスト書きたい。。
## テストケース
- `_Privates/folderA/duplicated note title`
- `_Privates/folderB/duplicated note title`
- `🦉My Products/🦉Another Quick Switcher`
## 対応前の期待値
### useWikiLink: true, shortest path when possible
- `[[_Privates/folderA/duplicated note title]]`
- `[[_Privates/folderB/duplicated note title]]`
- `[[🦉Another Quick Switcher]]`
### useWikiLink: false, shortest path when possible
区別がついていない
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[🦉Another Quick Switcher](🦉Another%20Quick%20Switcher.md)`
### useWikiLink: true, relative path to file
- `[[../_Privates/folderA/duplicated note title]]`
- `[[../_Privates/folderB/duplicated note title]]`
- `[[../🦉My Products/🦉Another Quick SwSwitcher`
### useWikiLink: false, relative path to file
区別がついていない
そもそも相対パスになっていない
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[🦉Another Quick Switcher](🦉Another%20Quick%20Switcher.md)` `NG`
### useWikiLink: true, absolute path
- `[[_Privates/folderA/duplicated note title]]`
- `[[_Privates/folderB/duplicated note title]]`
- `[[🦉My Products/🦉Another Quick Switcher]]`
### useWikiLink: false, absolute path
区別がついていない
そもそも絶対パスになっていない
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[duplicated note title](duplicated%20note%20title.md)` `NG`
- `[🦉Another Quick Switcher](🦉Another%20Quick%20Switcher.md)` `NG`
## 対応後
### useWikiLink: true, shortest path when possible
- [o] `[[_Privates/folderA/duplicated note title|duplicated note title]]`
- [o] `[[_Privates/folderB/duplicated note title|duplicated note title]]`
- [o] `[[🦉Another Quick Switcher]]`
### useWikiLink: false, shortest path when possible
- [o] `[duplicated note title](_Privates/folderA/duplicated%20note%20title.md)`
- [o] `[duplicated note title](_Privates/folderB/duplicated%20note%20title.md)`
- [o] `[🦉Another Quick Switcher](🦉Another%20Quick%20Switcher.md)`
### useWikiLink: true, relative path to file
- [o] `[[../_Privates/folderA/duplicated note title]]`
- [o] `[[../_Privates/folderB/duplicated note title]]`
- [o] `[[../🦉My Products/🦉Another Quick Switcher]]`
### useWikiLink: false, relative path to file
見た目が相対パスじゃないのは以前から。
- [o] `[duplicated note title](../_Privates/folderA/duplicated%20note%20title.md)`
- [o] `[duplicated note title](../_Privates/folderB/duplicated%20note%20title.md)`
- [o] `[🦉Another Quick Switcher](../🦉My%20Products/🦉Another%20Quick%20Switcher.md)`
### useWikiLink: true, absolute path
- [o] `[[_Privates/folderA/duplicated note title]]`
- [o] `[[_Privates/folderB/duplicated note title]]`
- [o] `[[🦉My Products/🦉Another Quick Switcher]]`
### useWikiLink: false, absolute path
- [o] `[duplicated note title](_Privates/folderA/duplicated%20note%20title.md)`
- [o] `[duplicated note title](_Privates/folderB/duplicated%20note%20title.md)`
- [o] `[🦉Another Quick Switcher](🦉My%20Products/🦉Another%20Quick%20Switcher.md)`