Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
renanbrayner opened this issue Oct 16, 2020 · 3 comments

Comments

@renanbrayner
Copy link

renanbrayner commented Oct 16, 2020

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

@liuchengxu
Copy link
Owner

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

@renanbrayner
Copy link
Author

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
Copy link
Author

renanbrayner commented Nov 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants