m/fzf
1
0
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:
Junegunn Choi
2025-02-09 13:52:20 +09:00
parent 1be1991299
commit a2420026ab
5 changed files with 15 additions and 13 deletions

View File

@@ -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)