zk-org / zk-nvim

Neovim extension for zk
https://github.com/zk-org/zk
GNU General Public License v3.0
530 stars 42 forks source link

ZkNewFrom*Selection unexpected behavior #47

Closed VolkovIlia closed 2 years ago

VolkovIlia commented 2 years ago

Hello, trying to use zk-nvim, but have some trouble with ZkNewFrom*Selection function.

I visual the word reference than run command that you can see on pics, zk create new .md file, but the name of ref is empty. How to fix it?(

pic-window-220505-1736-58

pic-window-220505-1737-33

pic-window-220505-1737-47

kabouzeid commented 2 years ago

Your new note is untitled. Your template needs a place for the note's title.

For example a # or a yaml header. The default zk template does that for you.

VolkovIlia commented 2 years ago

Did not find any template example file in both zk and zk-nvim docs. Config only. Also I expect creating note with selected name, and set title of note (or choose the note file by title or tag).

Can you share config or template?

https://user-images.githubusercontent.com/43730119/166982604-d9b8b568-d8e8-463e-948f-63e5bf7f684c.mp4

kabouzeid commented 2 years ago

Template is in .zk/templates/ in your notebook folder.

The default zk config with the default zk template should work.

Could you try creating a new notebook in another location and see if it works there? If not then something else is going on.

VolkovIlia commented 2 years ago

Thanks, find the solution. I've just create root folder by mkdir .zk. Now use zk init in root and all works fine.