Link created with WikiLinkAdd using fzf-lua not working
Follow up for #419
To test with the issue, I have this minimal config:
```lua
vim.g.wiki_root = "~/Notes"
vim.g.wiki_select_method = {
links = require("wiki.fzf_lua").links,
}
```
And the structure of the wiki:
```
Notes
├── index.md
├── Journal
│ └── today.md
└── Documents
├── index.md
└── doc.md
```
If I add link for `Journal/today.md` on `Documents/doc.md` with `:WikiLinkAdd`, it will create the link `[~/Notes/Journal/today.md](~/Notes/Journal/today.md)`.
And if I enter the link, it will create a new file with the path `~/Notes/Documents/~/Notes/Journal/today.md` instead of linking to the existing file.
关闭于 2026-01-10 21 条评论