diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 19:20:18 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 19:20:18 +0200 |
| commit | bab716a6a5931c211fad2f17ee2f67e8d182a7fc (patch) | |
| tree | 89b16ed3bf85198dd63751d2e1e54537c9340a1b /internal/tui/probes/model.go | |
| parent | 96225fb6159212a8851043a08d781aba721b4e78 (diff) | |
feat(tui): migrate Bubble Tea stack to charm.land v2
Diffstat (limited to 'internal/tui/probes/model.go')
| -rw-r--r-- | internal/tui/probes/model.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/tui/probes/model.go b/internal/tui/probes/model.go index 5cec2c7..c50c696 100644 --- a/internal/tui/probes/model.go +++ b/internal/tui/probes/model.go @@ -6,9 +6,9 @@ import ( "strings" "unicode/utf8" - "github.com/charmbracelet/bubbles/textinput" - tea "github.com/charmbracelet/bubbletea" - "github.com/charmbracelet/lipgloss" + "charm.land/bubbles/v2/textinput" + tea "charm.land/bubbletea/v2" + "charm.land/lipgloss/v2" ) // Manager defines the probe operations used by the modal. @@ -45,7 +45,7 @@ func NewModel(manager Manager) Model { ti := textinput.New() ti.Prompt = "/ " ti.CharLimit = 0 - ti.Width = 28 + ti.SetWidth(28) return Model{ manager: manager, textInput: ti, @@ -110,7 +110,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { m.textInput.CursorEnd() m.textInput.Focus() return m, nil - case " ", "enter": + case " ", "space", "enter": selected := m.selectedSyscall() if selected == "" { return m, nil |
