summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/chat
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-16 18:27:46 +0200
committerKyren223 <Kyren223@proton.me>2024-12-16 18:27:46 +0200
commit6b05b468a5a609ea2e86ba829de2680a507e01c1 (patch)
tree4e6b58a72dd3b6fa8c0af8306ea3908cb0e08c67 /internal/client/ui/core/chat
parent2b0812ae7e2b2bd57b2c0d2d873f728da7a78437 (diff)
Added ctrl+d/ctrl+u which move vertically half the height of viminput
Diffstat (limited to 'internal/client/ui/core/chat')
-rw-r--r--internal/client/ui/core/chat/chat.go3
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 {