-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming page with <leader>wr fails to update links in existing pages #1377
Comments
I've done a little debugging and I've determined that links in the form name are correctly renamed. Is this intended functionality (i.e. is renaming of [[ ]] links unsupported), or is this a bug? |
Markdown does not support the double "[[" links for now. This is a pending tasks, sorry for the inconvenience. Meanwhile, you can perform custom changes in the file vars.vim to imitate the default (wiki) syntax. Have a look at #892 (Pressing enter to create a [[double bracket]]). There is another issue to support double square bracket in markdown but I lost track. I leave this ticket open as this is a desired feature (the future change should support renaming as well). Note that it is hard to support both type of links, which is why I have been procrastinating this feature for 2 years now |
Wanted to open an issue, but found out @foldedstar already pointed this out... I guess it makes much sense: either to stick with vimwiki syntax, or stick with |
I don't believe this is related to the type of link used. I have noticed that, in general, I have tested this on a clean vimwiki directory with a minimal vimrc. A minimal example follows: Relevant part of vimrc:
When I call
Expected behavior is that both links would be updated, so
A similar set of steps confirms that this happens with markdown syntax and markdown-style This becomes an issue when I link to a top-level file from a diary file, which requires an absolute path - if I later rename that file, the link in the diary entry breaks. My
|
.vimrc
neovim: vimwiki.lua
Include the syntax you are using (default / Markdown / MediaWiki)
Markdown
Provide a detailed description of the problem including steps to reproduce the issue.
Create and open a new page via a link
Save that page
wr -> rename = [y]es -> enter a new filename
No errors are shown. Messages correctly show 'Vimwiki: updating links in /.../.../eachPage.md'
However when you navigate to the page from which the renamed file was originally linked, the link is unchanged.
The output of
:VimwikiShowVersion
:│Version: 2022.12.02 │
│Os: Mac │
│Vim: 801 │
│Branch: HEAD │
│Revision: be45bd6 │
│Date: 2023-04-04 20:13:34 -0600
The text was updated successfully, but these errors were encountered: