refactor(keymap): improve fallback and key handling #2266
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Things I want to test/fix:
Issue: keymap ['<C-x><C-o>'] = { 'show' } does not work #453
{ ['jk'] = { 'hide', 'fallback' }, ['<C-x><C-o>'] = { 'show', 'fallback' }, ['<Leader>cc'] = { 'show', 'fallback' }, }Issue: Extended Keys (<C-i>, <C-m>) for keymaps #2119
{ ['<C-n>'] = { 'select_next' }, ['<Tab>'] = { function() return '' end, -- would fallback function() return '<C-n>' end, -- would call `select_next` }, },<SNR>,<SID>,<Plug>Issue: Keymap fallback doesn't handle
scriptmappings #714Issue: bug(snippets): jump not triggered unless user have entered insert mode before #2164
Issue: Keymap not work with plugin vim-visual-multi #406
keymapmodule as simply as possibleexpr,vim.schedulein all commands and return boolean value from the function itself:Issue: Documentation bug: keymap commands function examples missing return #2182