venn.nvim icon indicating copy to clipboard operation
venn.nvim copied to clipboard

Clarify proper usage with `cmdheight=0`

Open prescientmoon opened this issue 2 years ago • 5 comments

It looks like the hydra suggested keybinds print :VBox to the cmd line even when silent = true, which make the statusline flicker when cmdheight=0. I cannot figure out how to use :silent with a visual mode command, so it would be nice if the readme suggested a way to fix issues like these. It would be nice if there was a documented way to call VBox directly from lua, for example, without going through the cmdline mechanism.

prescientmoon avatar Dec 20 '23 17:12 prescientmoon

This is more related to how hydra handles keybindings. Although I know that the maintenainer is currently not very active so it would be hard to get answers there. How about setting the keybinding manually?

vim.keymap.set('v', '<leader>g', ':VBox<cr>', {silent = true})

or using vimscript

vnoremap <silent> <leader>g :VBox<CR>

Also make sure to have the latest nightly version for these features as they are in active development.

jbyuki avatar Dec 24 '23 12:12 jbyuki

@jbyuki You are right, setting the keymap using vim.keymap.set does not make the cmdline flicker, although I would expect setting silent = true to have the same effect in hydra (it does not).

prescientmoon avatar Dec 26 '23 11:12 prescientmoon

I've seen a new hydra.nvim fork scrolling in my feed: https://github.com/nvimtools/hydra.nvim . Maybe they could help you there on that subject as I don't use hydra myself.

jbyuki avatar Dec 26 '23 15:12 jbyuki

Never mind, the issue still occurs with the vim keybind: neovim-statusline-flicker

(I hope the gif loads properly)

@jbyuki

prescientmoon avatar Dec 27 '23 17:12 prescientmoon

Related to the status line plugin? It doesn't flicker for me.

On Wed, Dec 27, 2023, 6:18 PM Adriel @.***> wrote:

Never mind, the issue still occurs with the vim keybind: neovim-statusline-flicker.gif (view on web) https://github.com/jbyuki/venn.nvim/assets/39400800/41743995-09f3-4803-abdf-aa833f5f69e6

@jbyuki https://github.com/jbyuki

— Reply to this email directly, view it on GitHub https://github.com/jbyuki/venn.nvim/issues/28#issuecomment-1870488833, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJBOFPG6BFH27DQU2RPS7TYLRJ4DAVCNFSM6AAAAABA5GBGRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQGQ4DQOBTGM . You are receiving this because you were mentioned.Message ID: <jbyuki/venn .@.***>

jbyuki avatar Dec 27 '23 19:12 jbyuki