Allow complete customization of setting link target
The problem I would like to solve is to create the link using the relative path instead of absolute path from `WikiLinkAdd`. It's on a markdown file and using md format. The file in the buffer and the link to add are in the same wiki root.
When I use `WikiLinkAdd` and select a file, the link target is always an absolute path from the wiki root, despite I try to customize it in vimrc file.
In this change, the customized function will always be called to transform the link target, if the customized function exists. Then it'll fall back to the existing logic of using the absolute path.
合并状态:未合并 关闭于 2025-12-28 8 条评论