Skip to content
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

Rename placeholder on note creation #1344

Merged
merged 5 commits into from
Mar 17, 2024

Conversation

riccardoferretti
Copy link
Collaborator

This PR fixes #1327

Passing to the create-note command a source link, in which case it will check whether, once the note has been created (possibly using a template that changed the name of the original placeholder), the name of the new note matches the originating link - and if not updates it.

I made a conscious decision here to only update the source link, and not all placeholders that match the source link.
Happy to have a conversation about that, for now it felt better this way.

Oh yeah, and I was playing with some logging stuff (minor)

@riccardoferretti riccardoferretti merged commit b892c78 into master Mar 17, 2024
3 checks passed
@riccardoferretti riccardoferretti deleted the fix/1327-rename-placeholder-on-note-creation branch March 17, 2024 19:49
@ashtuchkin
Copy link

The editor is super slow after this change for me (specifically v0.25.9), looks like it's recalculating the orphans and other stuff after every change, see this video:
https://github.com/foambubble/foam/assets/627997/0f30182f-65c4-4d47-9811-ae665fc4a93f

I've checked that this doesn't happen in 0.25.8.

@ais ais mentioned this pull request Mar 18, 2024
@riccardoferretti
Copy link
Collaborator Author

Thanks for reporting this, it's related to one of the side changes, pushing a fix now :)

@riccardoferretti
Copy link
Collaborator Author

v0.25.10 should fix this

@ashtuchkin
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a note from a template via wikilink doesn't work if the template has a custom filepath
2 participants