From ff1f02f47062d8f71e84f09c3189573f4a4cc931 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Thu, 7 Jul 2022 22:39:42 -0400 Subject: [PATCH] fix(write): Placeholder color fix --- go.mod | 2 +- go.sum | 2 ++ write/options.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 59ce57f..8b8fa06 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.13 require ( github.com/alecthomas/kong v0.6.1 - github.com/charmbracelet/bubbles v0.13.0 + github.com/charmbracelet/bubbles v0.13.1-0.20220708023448-746ec595c3d1 github.com/charmbracelet/bubbletea v0.22.0 github.com/charmbracelet/lipgloss v0.5.0 github.com/mattn/go-runewidth v0.0.13 diff --git a/go.sum b/go.sum index f8cfe9d..cf64799 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/charmbracelet/bubbles v0.13.0 h1:zP/ROH3wJEBqZWKIsD50ZKKlx3ydLInq3LdD/Nrlb8w= github.com/charmbracelet/bubbles v0.13.0/go.mod h1:bbeTiXwPww4M031aGi8UK2HT9RDWoiNibae+1yCMtcc= +github.com/charmbracelet/bubbles v0.13.1-0.20220708023448-746ec595c3d1 h1:2iHkYbnXv+7i5pp/dIJa/IhM+hE6EckujhOQWLzGMP4= +github.com/charmbracelet/bubbles v0.13.1-0.20220708023448-746ec595c3d1/go.mod h1:bbeTiXwPww4M031aGi8UK2HT9RDWoiNibae+1yCMtcc= github.com/charmbracelet/bubbletea v0.21.0/go.mod h1:GgmJMec61d08zXsOhqRC/AiOx4K4pmz+VIcRIm1FKr4= github.com/charmbracelet/bubbletea v0.22.0 h1:E1BTNSE3iIrq0G0X6TjGAmrQ32cGCbFDPcIuImikrUc= github.com/charmbracelet/bubbletea v0.22.0/go.mod h1:aoVIwlNlr5wbCB26KhxfrqAn0bMp4YpJcoOelbxApjs= diff --git a/write/options.go b/write/options.go index 9ab4699..0ae90cf 100644 --- a/write/options.go +++ b/write/options.go @@ -2,11 +2,11 @@ package write // Options are the customization options for the textarea. type Options struct { - CursorColor string `help:"Color for cursor" default:"212"` + CursorColor string `help:"Cursor color" default:"212"` Height int `help:"Text area height" default:"5"` Placeholder string `help:"Placeholder value" default:"Write something..."` Prompt string `help:"Prompt to display" default:"┃ "` - PromptColor string `help:"Color for prompt" default:"238"` + PromptColor string `help:"Prompt color" default:"238"` ShowCursorLine bool `help:"Show cursor line" default:"false"` ShowLineNumbers bool `help:"Show line numbers" default:"false"` Width int `help:"Text area width" default:"50"`