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

Feature request: Wiki links by title #251

Open
zmre opened this issue Aug 30, 2022 · 1 comment
Open

Feature request: Wiki links by title #251

zmre opened this issue Aug 30, 2022 · 1 comment
Labels
feature request Something is missing

Comments

@zmre
Copy link

zmre commented Aug 30, 2022

I interchangeably edit my notes with neovim and with NotePlan depending on context and machine. But NotePlan makes wiki links based on a note's title. With zk, I can choose a note by title, but reference only by path and filename, which leads to a bunch of link errors and makes me have to type the title of a link to get to it. In a perfect world, zk would do the same title or filename search on wiki-style links as it does when I use :ZkNote to find a note. And ideally there'd be an option to put in the title instead of the path/filename when choosing a note to link to so I can have [[To Pack]] instead of [[wiki/personal/to-pack]] with virtual text with the title beside it. The title syntax is just a bit easier to scan.

@mickael-menu
Copy link
Member

This used to be possible but I removed it because it was pretty fragile and broke some other features in the notebook index.

I'll consider adding it back with a stricter matching (exact note title).

In the meantime, you can use the 0.10.1 if you really want this feature. To have [[To Pack]] when inserting links, you can use this config option:

[format.markdown]
link-format = "[[{{title}}]]"

@mickael-menu mickael-menu added the feature request Something is missing label Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Something is missing
Projects
None yet
Development

No branches or pull requests

2 participants