From 2e0ad98a4a0a7168e22776552cd5584e9197cb51 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Fri, 29 May 2026 22:26:09 +0200 Subject: [PATCH] remove useless icons Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- internal/ui/intercept/keymap.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/internal/ui/intercept/keymap.go b/internal/ui/intercept/keymap.go index d291a74..395506b 100644 --- a/internal/ui/intercept/keymap.go +++ b/internal/ui/intercept/keymap.go @@ -2,24 +2,17 @@ package intercept import ( "charm.land/bubbles/v2/key" - "github.com/anotherhadi/spilltea/internal/icons" "github.com/anotherhadi/spilltea/internal/keys" ) type interceptKeyMap struct{ width int } -func iconBinding(b key.Binding, icon string) key.Binding { - h := b.Help() - return key.NewBinding(key.WithKeys(b.Keys()...), key.WithHelp(h.Key, icon+h.Desc)) -} - func (interceptKeyMap) ShortHelp() []key.Binding { ic := keys.Keys.Intercept - i := icons.I return []key.Binding{ - iconBinding(ic.Forward, i.Forward), - iconBinding(ic.Drop, i.Drop), - iconBinding(ic.Edit, i.Edit), + ic.Forward, + ic.Drop, + ic.Edit, keys.Keys.Global.Help, } }