-
Notifications
You must be signed in to change notification settings - Fork 642
Rename link works for all directories #787
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
Conversation
@tinmarino Can you update this PR? I updated everything for the Vint checks so make sure to run that on your changes as well. Thanks. |
75585e2
to
a2f9acf
Compare
…nght of its content Used: Later for VimwikiRenameLink for a recursive parent directory visiting
__Problem__: VimwikiRename link do not rename dir1/toto url in dir2/tata because the dirs (dir2 and .) were well crossed but badly insepcted. __Solution__: `blob(.ext*)` -> `glob(**/*.ext)` + find the relative URL
Fix: Vader console (with nice color) cannot open for futur test VimwikiRenameLink
a2f9acf
to
3743037
Compare
More: To compute old_url regex, use a cache dict because it is the same for files in the same directories
Done. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the specific comments can you also:
- Ensure Vint checks are passing (currently 5 warnings)
- Update the changelog
- Remove trailing whitespace (specifically from new Vader test file but elsewhere if present)
(Very) nice review. I'll work on that. |
Note: list_VimwikiReturn.vader has seom necessary trailing spaces
Note: was used to sort strings by len, in order to get the most nested directory in rename_link. But the new implementation of rename_link with glob(**) in wiki_root do not need it anymore
Note: No more unecessary trailing whitespaces Only necessary in test/list_VimwikiReturn.vader Cmd: `ag ' $'` Returns: test/list_VimwikiReturn.vader 2:# 126: 1. 129: 1. 147: 2. 152: 155: 1. 156: 2. 159: 1. 160: 2. 178: 183: 2. 187: 1. 191: 1. 209: 2. 214: 2. 237: 242: 268: 2. 273: 2. 279: 1.
Your excellent review gave me some pro advises. Thank you for that.
Note: At merging, close #90 (I referred to it in the changelog) |
Thanks for this. Keep up the good work! |
Fix: VimwikiRenameLink doesn't update links in diary #90.
Not an urgent feature
Seems to work, not so bad. But need some check.... (when someone has time).
Meanwhile, I'll be on a better path management