fix(write): Placeholder color fix

This commit is contained in:
Maas Lalani 2022-07-07 22:39:42 -04:00
parent d8ac24bcc6
commit ff1f02f470
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000
3 changed files with 5 additions and 3 deletions

2
go.mod
View file

@ -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

2
go.sum
View file

@ -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=

View file

@ -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"`