mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-13 22:03:47 -05:00
Rename actions: exclude and exclude-multi
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646067669
This commit is contained in:
@@ -585,7 +585,7 @@ const (
|
||||
actHideHeader
|
||||
actBell
|
||||
actExclude
|
||||
actExcludeCurrent
|
||||
actExcludeMulti
|
||||
)
|
||||
|
||||
func (a actionType) Name() string {
|
||||
@@ -4912,7 +4912,7 @@ func (t *Terminal) Loop() error {
|
||||
}
|
||||
case actBell:
|
||||
t.tui.Bell()
|
||||
case actExclude:
|
||||
case actExcludeMulti:
|
||||
if len(t.selected) > 0 {
|
||||
for _, item := range t.sortSelected() {
|
||||
denylist = append(denylist, item.item.Index())
|
||||
@@ -4927,7 +4927,7 @@ func (t *Terminal) Loop() error {
|
||||
}
|
||||
}
|
||||
changed = true
|
||||
case actExcludeCurrent:
|
||||
case actExclude:
|
||||
if item := t.currentItem(); item != nil {
|
||||
denylist = append(denylist, item.Index())
|
||||
t.deselectItem(item)
|
||||
|
||||
Reference in New Issue
Block a user