-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LSP: Deprecate title matching for wiki links (#218)
- Loading branch information
1 parent
dbd791f
commit 1a05a04
Showing
2 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1a05a04
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.
Does this mean that one has to create notes with explicit names from this point forward? Is there a way to force the note file name via
zk new
andask edit —interactive
or corresponding zk-nvim commands? Thanks!1a05a04
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.
Hmm … I think I’m confused. If one uses markdown links and not wiki style links, does that mean this change has no impact?
1a05a04
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.
@pkazmier This change has no impact on
[Markdown](links)
, only[[Wiki links]]
.Basically before
[[Wiki links]]
were able to contain either a part of a note's filename or a part of the title (as in YAML frontmatter / Markdown first heading). This was quite fragile and didn't fare well with the index database.Instead now a
[[Wiki link]]
must be any unique portion of a note's filename.You're probably fine, but I'll answer your other questions:
No, you can still use a random ID, e.g.
i3br.md
and then reference it as[[i3br]]
or[A note](i3br)
.If you add the note title in the filename as well, e.g
i3br A note.md
, you can use:Not directly, but you can use a
{{title}}
template for the filename in the config, then runzk new
withzk new --title "My title"
.1a05a04
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.
Thank you for the detailed explanation.