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

Links inserted with ZkNewFromTitleSelection are missing the filetype #80

Closed dbatten5 closed 2 years ago

dbatten5 commented 2 years ago

If I create a new note from a selection with ZkNewFromTitleSelection, it creates a new note and replaces the selection with the link but the link is missing the filetype:

A test sentence # running the command on "sentence"
--> A test [sentence](202210191900)

This works fine for clicking through links with zk-nvim by pressing enter, but when serving up the notes with emanote (as recommended in https://github.com/mickael-menu/zk docs), the links are broken because they are missing the filetype. Is there or a setting in zk-nvim to insert the filetype in a link? Or should I be configuring something on the emanote side?

dbatten5 commented 2 years ago

Found it, there's a config option link-drop-extension in the [format.markdown] in config.toml, just need to set this to false