From 0de7ab18f64db7838c8ca06d08188f976cbfdbb4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 30 Dec 2020 01:51:25 +0900 Subject: Add "last" action to move the cursor to the last match This is the opposite of "first" (previously known as "top"). --- src/options_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index a8fc75bd..5cc11c85 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -246,7 +246,7 @@ func TestBind(t *testing.T) { "f1:execute(ls {+})+abort+execute(echo {+})+select-all,f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute;less {};,"+ "alt-a:execute-Multi@echo (,),[,],/,:,;,%,{}@,alt-b:execute;echo (,),[,],/,:,@,%,{};,"+ "x:Execute(foo+bar),X:execute/bar+baz/"+ - ",f1:+top,f1:+top"+ + ",f1:+first,f1:+top"+ ",,:abort,::accept,+:execute:++\nfoobar,Y:execute(baz)+up") check(tui.CtrlA, "", actKillLine) check(tui.CtrlB, "", actToggleSort, actUp, actDown) @@ -254,7 +254,7 @@ func TestBind(t *testing.T) { check(tui.AltZ+',', "", actAbort) check(tui.AltZ+':', "", actAccept) check(tui.AltZ, "", actPageDown) - check(tui.F1, "ls {+}", actExecute, actAbort, actExecute, actSelectAll, actTop, actTop) + check(tui.F1, "ls {+}", actExecute, actAbort, actExecute, actSelectAll, actFirst, actFirst) check(tui.F2, "echo {}, {}, {}", actExecute) check(tui.F3, "echo '({})'", actExecute) check(tui.F4, "less {}", actExecute) -- cgit v1.2.3