Replace the input() calls in sandwiches that take input with neovim floating windows? · Issue #120 · machakann/vim-sandwich · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMO using small floating windows anchored to the cursor is a better input method as we do not need to move our eyes to the bottom of the screen. I would like to change the builtin bun functions with one that uses such a floating window based interface. It is easy to program such an interface, but I am not sure how to use the same interface as input(). I do something similar here in my vim config for making a better interface for vim.lsp.buf.rename(). In this when i hit <CR> in the floating window it calls vim.lsp.buf.rename(<input>). So basically it works well when I can just call a function at the end of the input process to do the action. input() however is essentially a blocking call to vim to get some input, I don't know if some of the neovim async stuff could be used here to turn my callback based interface into a blocking style interface.
Is there anyone knowledgable in neovim who could help implement some floating window based input method for vim-sandwich or could guide me to making it?
The text was updated successfully, but these errors were encountered:
IMO using small floating windows anchored to the cursor is a better input method as we do not need to move our eyes to the bottom of the screen. I would like to change the builtin bun functions with one that uses such a floating window based interface. It is easy to program such an interface, but I am not sure how to use the same interface as
input()
. I do something similar here in my vim config for making a better interface forvim.lsp.buf.rename()
. In this when i hit<CR>
in the floating window it callsvim.lsp.buf.rename(<input>)
. So basically it works well when I can just call a function at the end of the input process to do the action.input()
however is essentially a blocking call to vim to get some input, I don't know if some of the neovim async stuff could be used here to turn my callback based interface into a blocking style interface.Is there anyone knowledgable in neovim who could help implement some floating window based input method for vim-sandwich or could guide me to making it?
The text was updated successfully, but these errors were encountered: