feat(ui): more intuitive :substitute confirm prompt #31787

Problem:  Unknown key mappings listed in substitute confirm message.
Solution: Include hints as to what the key mappings do.
This commit is contained in:
luukvbaal
2025-01-02 15:40:39 +01:00
committed by GitHub
parent 48e2a73610
commit 43d552c566
36 changed files with 79 additions and 75 deletions

View File

@@ -1485,10 +1485,10 @@ describe('cmdheight=0', function()
it('when substitute text', function()
command('set cmdheight=0 noruler laststatus=3')
feed('ifoo<ESC>')
screen:try_resize(screen._width, 6)
screen:try_resize(screen._width, 7)
screen:expect([[
fo^o |
{1:~ }|*4
{1:~ }|*5
{3:[No Name] [+] }|
]])
@@ -1497,14 +1497,15 @@ describe('cmdheight=0', function()
{2:foo} |
{3: }|
|*2
{6:replace with bar (y/n/a/q}|
{6:/l/^E/^Y)?}^ |
{6:replace with bar? (y)es/(}|
{6:n)o/(a)ll/(q)uit/(l)ast/s}|
{6:croll up(^E)/down(^Y)}^ |
]])
feed('y')
screen:expect([[
^bar |
{1:~ }|*4
{1:~ }|*5
{3:[No Name] [+] }|
]])