Error when using ZkNew
from within a zk-buffer.
#192
Labels
can't reproduce
The reported issue is not reproducible. Clarification is needed from the OP.
Check if applicable
Describe the bug
When executing
ZKNew
commands from inside an zk-buffer in Neovim I'll get an error.E488: Trailing characters:
The command works fine from any other buffer or a fresh neovim session without any file open.
How to reproduce?
:ZkNew
with some args.No matter if I try to create a new Note using a keymap like that from your Readme:
map("n", "<leader>zn", "<Cmd>ZkNew { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts)
or doing things by hand like
:ZkNew { dir = "journal", date = "today" }
.I'll get the error:
E488: Trailing characters: { dir = "journal", date = "today" }
The same commands and or keymaps work when using them from an non-zk buffer.
zk configuration
Neovim configuration
Environment
The text was updated successfully, but these errors were encountered: