chiefnoah / neuron-v2.vim

📝 Manage your Zettelkasten in {n}vim.
MIT License
29 stars 4 forks source link

Hide IDs in brackets #7

Open yamiteru opened 3 years ago

yamiteru commented 3 years ago

Is it possible to show [[Link title]] instead of [[ce134357]] Link title? As a writer I don't care about the ID.

srid commented 3 years ago

Why not name your zettels using title, eg: Link title.md?

yamiteru commented 3 years ago

Because I might have several zettels with the same title

chiefnoah commented 3 years ago

I've looked into the vim api to figure out how to do this, but I haven't been able to find something to do it easily. If anyone more familiar with vim has an idea on how to accomplish this, please let me know.

chiefnoah commented 3 years ago

Ok, I dug into this again and it isn't really possible yet. There's some active work being done on it currently, but it looks like this exact feature isn't quite ready without a bunch of annoying hacks. Instead, I've implemented a floating window that displays on hover of the zettel link (and disappears when the cursor is moved away). I think this is a reasonable stopgap until "overlay" mode for virtual text is fully implemented in neovim.

yamiteru commented 3 years ago

Hey there is a lib that can do this https://github.com/pyrho/nerveux.nvim. Would it be possible to implement it also into this lib?

chiefnoah commented 3 years ago

If someone wants to make a PR, sure. But IMO you should just use oberblastmeister/neuron.nvim instead. It's a better re-implementation of this.