mirror of
https://github.com/charmbracelet/gum
synced 2024-06-08 08:42:16 +02:00
fix(write): Placeholder color fix
This commit is contained in:
parent
d8ac24bcc6
commit
ff1f02f470
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/alecthomas/kong v0.6.1
|
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/bubbletea v0.22.0
|
||||||
github.com/charmbracelet/lipgloss v0.5.0
|
github.com/charmbracelet/lipgloss v0.5.0
|
||||||
github.com/mattn/go-runewidth v0.0.13
|
github.com/mattn/go-runewidth v0.0.13
|
||||||
|
|
2
go.sum
2
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/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 h1:zP/ROH3wJEBqZWKIsD50ZKKlx3ydLInq3LdD/Nrlb8w=
|
||||||
github.com/charmbracelet/bubbles v0.13.0/go.mod h1:bbeTiXwPww4M031aGi8UK2HT9RDWoiNibae+1yCMtcc=
|
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.21.0/go.mod h1:GgmJMec61d08zXsOhqRC/AiOx4K4pmz+VIcRIm1FKr4=
|
||||||
github.com/charmbracelet/bubbletea v0.22.0 h1:E1BTNSE3iIrq0G0X6TjGAmrQ32cGCbFDPcIuImikrUc=
|
github.com/charmbracelet/bubbletea v0.22.0 h1:E1BTNSE3iIrq0G0X6TjGAmrQ32cGCbFDPcIuImikrUc=
|
||||||
github.com/charmbracelet/bubbletea v0.22.0/go.mod h1:aoVIwlNlr5wbCB26KhxfrqAn0bMp4YpJcoOelbxApjs=
|
github.com/charmbracelet/bubbletea v0.22.0/go.mod h1:aoVIwlNlr5wbCB26KhxfrqAn0bMp4YpJcoOelbxApjs=
|
||||||
|
|
|
@ -2,11 +2,11 @@ package write
|
||||||
|
|
||||||
// Options are the customization options for the textarea.
|
// Options are the customization options for the textarea.
|
||||||
type Options struct {
|
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"`
|
Height int `help:"Text area height" default:"5"`
|
||||||
Placeholder string `help:"Placeholder value" default:"Write something..."`
|
Placeholder string `help:"Placeholder value" default:"Write something..."`
|
||||||
Prompt string `help:"Prompt to display" default:"┃ "`
|
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"`
|
ShowCursorLine bool `help:"Show cursor line" default:"false"`
|
||||||
ShowLineNumbers bool `help:"Show line numbers" default:"false"`
|
ShowLineNumbers bool `help:"Show line numbers" default:"false"`
|
||||||
Width int `help:"Text area width" default:"50"`
|
Width int `help:"Text area width" default:"50"`
|
||||||
|
|
Loading…
Reference in a new issue