-
Notifications
You must be signed in to change notification settings - Fork 111
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 and moving notes #200
Comments
Here's a spec, feel free to review and comment. We're talking about two separate features using the same renaming process under the hood:
In both cases, the path of the note, its title and all the inbound or outbound links might need to be updated in a single atomic operation. The actual FS changes will be handled by POSIX New commandsWe'll need one new
|
@mickael-menu Look like some logic missing in moving process logic. The links inside the moved file should be updated too. For example, file |
Discussed in https://github.com/mickael-menu/zk/discussions/199
Originally posted by srid April 27, 2022
Would this be in scope for
zk
? Basically:will rename
Foo.md
toBar Qux.md
while taking care of references. By which I mean it will replace all occurrences of[[Foo]]
with[[Bar Qux]]
in the notebook. As well as[[Foo|...]]
with[[Bar Qux|..]]
. This is exactly what the vscode-memo extension does.The replacement can be delegated to
sd
.EDIT: It should probably take directory and relative wiki links too into consideration? eg:
[[Parent/Foo]]
->[[Parent/Bar Qux]]
. Might have to disambiguate multipleFoo.md
as well (in different parents).The text was updated successfully, but these errors were encountered: