diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-05 17:20:32 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-05 17:20:32 +0200 |
| commit | bb105cb16fe81ae29df5a5a5570e55c3e3ce0873 (patch) | |
| tree | 011538d2e0bb119b90801f36cf376a3482793935 /internal/client/ui/core | |
| parent | 8087907b4b942c7d8c9296c3fd0e1f08d5d88694 (diff) | |
Basic vim movement and text input
Diffstat (limited to 'internal/client/ui/core')
| -rw-r--r-- | internal/client/ui/core/chat/chat.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index 04eedb7..a93272f 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -23,7 +23,7 @@ func New() Model { return lineNumber + " ┃ " } - vi.SetLines(viminput.Line("test"), viminput.Line("best")) + vi.SetLines([]rune("test"), []rune("best")) // ta.Cursor.SetChar() // vi.CharLimit = 280 @@ -54,8 +54,10 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { func (m *Model) Focus() { m.focus = true + m.vi.Focus() } func (m *Model) Blur() { m.focus = false + m.vi.Blur() } |
