diff options
Diffstat (limited to 'internal/switcher/switcher.go')
-rw-r--r-- | internal/switcher/switcher.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/switcher/switcher.go b/internal/switcher/switcher.go index eee92df..b534e54 100644 --- a/internal/switcher/switcher.go +++ b/internal/switcher/switcher.go @@ -2,6 +2,7 @@ package switcher import ( "fmt" + "log/slog" "github.com/ChausseBenjamin/termpicker/internal/colors" "github.com/ChausseBenjamin/termpicker/internal/picker" @@ -64,6 +65,7 @@ func (m Model) View() string { func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { keys := newKeybinds() cmds := []tea.Cmd{} + slog.Info("Received tea.Msg", "tea_msg", msg, "type", fmt.Sprintf("%T", msg)) switch msg := msg.(type) { case tea.KeyMsg: switch { @@ -102,6 +104,8 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, tea.Batch(cmds...) } + default: + // fmt.Printf("\nmsg: %T\n", msg) } for i, p := range m.pickers { newActive, cmd := p.Update(msg) |