mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-07 15:42:08 -07:00
Add "last" action to move the cursor to the last match
This is the opposite of "first" (previously known as "top").
This commit is contained in:
@@ -265,7 +265,8 @@ const (
|
||||
actExecuteSilent
|
||||
actExecuteMulti // Deprecated
|
||||
actSigStop
|
||||
actTop
|
||||
actFirst
|
||||
actLast
|
||||
actReload
|
||||
)
|
||||
|
||||
@@ -2366,9 +2367,12 @@ func (t *Terminal) Loop() {
|
||||
t.version++
|
||||
req(reqList, reqInfo)
|
||||
}
|
||||
case actTop:
|
||||
case actFirst:
|
||||
t.vset(0)
|
||||
req(reqList)
|
||||
case actLast:
|
||||
t.vset(t.merger.Length() - 1)
|
||||
req(reqList)
|
||||
case actUnixLineDiscard:
|
||||
beof = len(t.input) == 0
|
||||
if t.cx > 0 {
|
||||
|
Reference in New Issue
Block a user