Merge pull request #11746 from Billy4195/add_wildmenu_key

[RFC] Wildmenu support C-E and C-Y as popupmenu
This commit is contained in:
Matthieu Coudron
2020-03-28 14:25:54 +01:00
committed by GitHub
4 changed files with 61 additions and 1 deletions

View File

@@ -16,6 +16,44 @@ describe("'wildmenu'", function()
screen:attach()
end)
it('C-E to cancel wildmenu completion restore original input', function()
feed(':sign <tab>')
screen:expect([[
|
~ |
~ |
define jump list > |
:sign define^ |
]])
feed('<C-E>')
screen:expect([[
|
~ |
~ |
~ |
:sign ^ |
]])
end)
it('C-Y to apply selection and end wildmenu completion', function()
feed(':sign <tab>')
screen:expect([[
|
~ |
~ |
define jump list > |
:sign define^ |
]])
feed('<tab><C-Y>')
screen:expect([[
|
~ |
~ |
~ |
:sign jump^ |
]])
end)
it(':sign <tab> shows wildmenu completions', function()
command('set wildmenu wildmode=full')
feed(':sign <tab>')