diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-16 18:27:46 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-16 18:27:46 +0200 |
| commit | 6b05b468a5a609ea2e86ba829de2680a507e01c1 (patch) | |
| tree | 4e6b58a72dd3b6fa8c0af8306ea3908cb0e08c67 /internal/client/ui/core/chat/chat.go | |
| parent | 2b0812ae7e2b2bd57b2c0d2d873f728da7a78437 (diff) | |
Added ctrl+d/ctrl+u which move vertically half the height of viminput
Diffstat (limited to 'internal/client/ui/core/chat/chat.go')
| -rw-r--r-- | internal/client/ui/core/chat/chat.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index 89471d8..38b02a5 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -4,6 +4,7 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" + "github.com/kyren223/eko/internal/client/ui" "github.com/kyren223/eko/internal/client/ui/colors" "github.com/kyren223/eko/internal/client/ui/viminput" ) @@ -15,7 +16,7 @@ type Model struct { } func New() Model { - vi := viminput.New(90, 3) + vi := viminput.New(90, ui.Height) vi.Placeholder = "Send a message..." vi.PlaceholderStyle = lipgloss.NewStyle().Foreground(colors.Gray) vi.LineDecoration = func(lnum int, m viminput.Model) string { |
