vim-which-key icon indicating copy to clipboard operation
vim-which-key copied to clipboard

A way to map <Up> <Right> <Down> <Left> with dictionaries or exclude then in it

Open renanbrayner opened this issue 5 years ago • 3 comments

I don't want my resizing split key maps showing in the dictionary but i cant exclude then and i cant map then in it. It would be great if i could target the <Up> ... <Left> keys like any other key

renanbrayner avatar Oct 16 '20 00:10 renanbrayner

Hmm, I don't understand what the request is.

liuchengxu avatar Oct 28 '20 14:10 liuchengxu

Hmm, I don't understand what the request is.

sorry for not being clear enough, i will provide more details later today or tomorrow when i have the time.

renanbrayner avatar Oct 28 '20 15:10 renanbrayner

Sorry for taking 6 days to reply, when i first opened this issue i had the problem that this bindings bellow didn't appeared on the which-key popup but it seems to be gone and now i have another problem related to arrow keys

let g:which_key_map.w = {
	\ 'name' : '+window'    ,
	\ '<Left>' : ['<C-W>h'  , 'window-left']  ,
	\ '<Down>' : ['<C-W>j'  , 'window-below'] ,
	\ '<Right>' : ['<C-W>l' , 'window-right'] ,
	\ '<Up>' : ['<C-W>k'    , 'window-up']    ,
	\}

I was expecting to be able to press <Left> and go to left split, but instead i need to wait the which-key popup to show up to be able to use the binding properly, if i press <Left> faster than the popup i get this error:

[which-key] <space> w  is undefined

(the extra space after w is not a typo). This happens to 🠉, 🠋 and 🠊 too.

Idk if i should close this and open another or just eddit the title so i will leave it up to you.

renanbrayner avatar Nov 03 '20 20:11 renanbrayner