Closed zeljkomarinkovic closed 2 years ago
Not sure what the intention is with using Floatterm here. But try doing it as :ZkNew { title = vim.fn.input('Title: ')}<cr>
i know that that works, but i would like to have floating window where i can write down a thought, note, todo, whatever and hide it or close it and continue to work on project
Not really sure this is going to work the way you want, but I could be wrong.
You're passing what is essentially a shell command to Floatterm, but ZkNew is not a shell command it's a Neovim command.
You could look at doing what I suggested and then opening up the file in a split buffer. But you're trying to fit a round peg in a square hole atm.
There's no out-of-the-box solution for this.
I think it would be possible to do basically this:
but replacing vim.cmd("edit " .. res.path)
with the creation of an nvim floating window buffer.
Overall, it would be interesting to have more customization on how a note is opened (current window, split window, floating window, etc.).
@eric-hansen I have also figured that out little bit too late
@mickael-menu I will give it a go, if i come with some solution will make PR, thanks
Is it possible to chain commands in some manner so i get asked for title and open new note in floaterm?
What i tried is:
but this gets me this error