liuchengxu/vim-which-key

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

renanbrayner opened this issue ยท 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

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

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.

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