Code Monkey home page Code Monkey logo

Comments (5)

eric-hansen avatar eric-hansen commented on August 24, 2024 1

Not sure what the intention is with using Floatterm here. But try doing it as :ZkNew { title = vim.fn.input('Title: ')}<cr>

from zk-nvim.

zeljkomarinkovic avatar zeljkomarinkovic commented on August 24, 2024 1

@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

from zk-nvim.

zeljkomarinkovic avatar zeljkomarinkovic commented on August 24, 2024

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

from zk-nvim.

eric-hansen avatar eric-hansen commented on August 24, 2024

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.

from zk-nvim.

mickael-menu avatar mickael-menu commented on August 24, 2024

There's no out-of-the-box solution for this.

I think it would be possible to do basically this:

https://github.com/mickael-menu/zk-nvim/blob/614ec31800174e0f6dc1aeaa528eafb9de1193a5/lua/zk.lua#L65-L75

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.).

from zk-nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.