mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-15 14:53:47 -05:00
Add exclude-current action
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646063208
This commit is contained in:
@@ -585,6 +585,7 @@ const (
|
||||
actHideHeader
|
||||
actBell
|
||||
actExclude
|
||||
actExcludeCurrent
|
||||
)
|
||||
|
||||
func (a actionType) Name() string {
|
||||
@@ -4926,6 +4927,12 @@ func (t *Terminal) Loop() error {
|
||||
}
|
||||
}
|
||||
changed = true
|
||||
case actExcludeCurrent:
|
||||
if item := t.currentItem(); item != nil {
|
||||
denylist = append(denylist, item.Index())
|
||||
t.deselectItem(item)
|
||||
changed = true
|
||||
}
|
||||
case actExecute, actExecuteSilent:
|
||||
t.executeCommand(a.a, false, a.t == actExecuteSilent, false, false, "")
|
||||
case actExecuteMulti:
|
||||
|
||||
Reference in New Issue
Block a user