michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
555 stars 72 forks source link

Link does not show the title #147

Open arturo-salinas opened 5 months ago

arturo-salinas commented 5 months ago

Hi there, according to the README file: "links always show titles, regardless of the actual filename". It does not seem to work for me. Any idea?

With best regards, Arturo

michal-h21 commented 5 months ago

Hi Arturo, what does it show for you? Can you give us some examples? Do you use Markdown or Vimwiki syntax?

arturo-salinas commented 5 months ago

Hi Michal, maybe I do not understand this feature. If I had a note like: 20240101-2100.md and then I created a link [[20240101-2100]]. I was expected that neovim will show me the title of the note 20240101-2100.md; for instance: "My title". But it is just showing the filename of the note.

michal-h21 commented 5 months ago

Ah, no, you need to use vim-zettel's features to insert links. For example, if by default you write [[ in the insert mode, a search window should open, where you can select a note that you want to insert a link for.

klarkc commented 4 weeks ago

@michal-h21 Does it support links for headings in the file name? I would like to go to a specific topic in a file, instead of having a link for the file.

Eg: https://github.com/michal-h21/vim-zettel#using-vim-plug

michal-h21 commented 3 weeks ago

@klarkc There is no function for it, but Vimwiki supports links to anchors, most notably sections. So something like [[filename#My section title|My section title]] in Vimwiki syntax, or [My Section title](filename.md#My section title) in Markdown should work. But you need to create such links manually.