From 218931d6ba6f33f023aa9dc921d0aa0aca5a9f12 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Nov 2024 13:04:11 -0500 Subject: feat: add help at the bottom (#5) * Attemp at using goreleaser * Fix syntax error in .goreleaser.yml * fix: Check roadmap feature for clipboard (README) * feat: add help menu at the bottom (#4) * MVP for a help menu * fix: commented code is evil --- internal/preview/preview.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'internal/preview') diff --git a/internal/preview/preview.go b/internal/preview/preview.go index ef4c9f0..eb7d344 100644 --- a/internal/preview/preview.go +++ b/internal/preview/preview.go @@ -14,9 +14,7 @@ type Model struct { hex string } -func (m *Model) Color(hex string) { - m.hex = hex -} +func (m *Model) Color(hex string) { m.hex = hex } func New(hex string) *Model { return &Model{ @@ -25,13 +23,9 @@ func New(hex string) *Model { } } -func (m Model) Init() tea.Cmd { - return nil -} +func (m Model) Init() tea.Cmd { return nil } -func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { - return m, nil -} +func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil } func (m Model) View() string { style := lipgloss.NewStyle().Foreground(lipgloss.Color(m.hex)) -- cgit v1.2.3