m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 06:13:47 -05:00

Add 'bell' action to ring the terminal bell

This commit is contained in:
Junegunn Choi
2025-01-25 11:22:32 +09:00
parent 02199cd609
commit 04017c25bb
8 changed files with 22 additions and 0 deletions

View File

@@ -567,6 +567,7 @@ const (
actBecome
actShowHeader
actHideHeader
actBell
)
func (a actionType) Name() string {
@@ -4704,6 +4705,8 @@ func (t *Terminal) Loop() error {
t.executor.Become(t.ttyin, t.environ(), command)
}
}
case actBell:
t.tui.Bell()
case actExecute, actExecuteSilent:
t.executeCommand(a.a, false, a.t == actExecuteSilent, false, false, "")
case actExecuteMulti: