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

Hiding a keybinding? #42

Open
Tehnix opened this issue Aug 24, 2017 · 2 comments
Open

Hiding a keybinding? #42

Tehnix opened this issue Aug 24, 2017 · 2 comments

Comments

@Tehnix
Copy link

Tehnix commented Aug 24, 2017

Heya,

Is it possible to hide a keybinding added to vim-leader-guide?

As an example, I want to emulate the Spacemacs behaviour of having commands for <Space> 1 going to <Space> 9 for switching to windows. Currently, plainly adding them adds a lot of noise with 1, 2, 3 etc, cluttering the UI. I'm aiming at hiding their keybinding and simply showing a [0-9] instead.

To make it a bit clearer, this is my current view in vim,

screenshot 2017-08-24 16 03 44

@spinks
Copy link

spinks commented Sep 5, 2018

Hi!
If you're still looking for this functionality I have a fork where I've implemented this.
The commit is here spinks/vim-leader-guide@40af6b7

Personally I have the same window number mappings as you are aiming to have and it works well.
The mapping below would be hidden from the menu.

nnoremap <leader>1 :1wincmd w<CR>
let g:lmap.1 = [ 1.'wincmd w', 'leader_ignore']

@Tehnix
Copy link
Author

Tehnix commented Sep 6, 2018

@spinks awesome! :) That'll allow me to greatly clean up my overview. I'll keep this open, until your fork (if ever) gets merged though, for visibility.

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

No branches or pull requests

2 participants