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

No good way to add <nowait> to mappings #116

Open
arp242 opened this issue Jul 13, 2021 · 0 comments
Open

No good way to add <nowait> to mappings #116

arp242 opened this issue Jul 13, 2021 · 0 comments
Labels

Comments

@arp242
Copy link
Contributor

arp242 commented Jul 13, 2021

I'd like to add <nowait> to the mundo mappings, so e.g. q doesn't wait on the timeout and is immediate.

Adding this by default can be surprising, so that's probably not a good idea. Right now the only way is remapping everything with:

let g:mundo_mappings = {
    \ '<nowait> q': 'quit',
    [..]
\}

Which isn't ideal, and the only reason it works now is probably an (unexpected) implementation detail as it does:

exec 'nnoremap <script> <silent> <buffer> ' . a:mapping .' '. a:action

But this can change in the future.

Maybe add a g:mundo_mappings_nowait setting? Or maybe something else? Usually I'm not a huge fan of adding settings, but I don't really see a good alternative.

Anyway, let me know and I can write a patch.

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

No branches or pull requests

2 participants