serenevoid / kiwi.nvim

A stripped down VimWiki for Neovim
https://serenevoid.github.io/blog/my-note-taking-plugin
GNU General Public License v3.0
178 stars 9 forks source link

Keybinding <Enter> from readme behaves differently #15

Closed mcjvanschaik closed 6 months ago

mcjvanschaik commented 6 months ago

In the readme file the following key bindings are mentioned.

<Enter> -- Follow/Create wiki link.
<Tab> -- Find next wiki link.
T -- Toggle TODO list

Enter does not create a wiki link in Normal mode, this only works in Visual mode.

serenevoid commented 6 months ago

This was intentional. There is a slight change in kiwi.nvim compared to Vimwiki. On pressing , Vimwiki creates a link first and then you have to press again to open the new wiki file. In kiwi.nvim, pressing over a highlighted section creates a link and opens the new wiki file. By allowing Enter key to work in normal mode would give rise to accidental wiki doc creations. So I had to make it work only in visual mode. This might be a personal preference. So if more people feel that its natural to have it the Vimwiki way, I'll consider having this.

mcjvanschaik commented 6 months ago

I think that the readme should be slightly changed in that case.

mcjvanschaik commented 6 months ago

I have created my very first pull request, I have made a helpfile and changed the README slightly to show the difference.