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

feat:add quit keymap for popup

Open Mr-LLLLL opened this issue 2 years ago • 3 comments

add shortcut q to close the popup in preview

Mr-LLLLL avatar May 26 '23 02:05 Mr-LLLLL

I don't really want to go with this.

Can't you just move the cursor instead?

lewis6991 avatar May 26 '23 07:05 lewis6991

if key git hunk preview twice, will enter preview window, q quit is useful; move the cursor is use for not enter the preview window will close preview window

Mr-LLLLL avatar May 26 '23 07:05 Mr-LLLLL

I wondered for this kind of option too. Many popups already support close with q or esc. It would be nice to provide a configurable way to set it in on_attach and let the user decide for himself - let it be q or esc or even both.

yavorski avatar Jun 01 '23 20:06 yavorski