mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
examples/README.md GIFs (#470)
* docs(examples): Add `examples/README.md` Adds `examples/README.md` with GIFs of examples * docs(examples): Individual READMEs * docs(examples): add short description to each example
This commit is contained in:
3
examples/split-editors/README.md
Normal file
3
examples/split-editors/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Split Editors
|
||||
|
||||
<img width="800" src="https://stuff.charm.sh/bubbletea-examples/split-editors.gif" />
|
||||
@@ -28,6 +28,9 @@ var (
|
||||
placeholderStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("238"))
|
||||
|
||||
endOfBufferStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("235"))
|
||||
|
||||
focusedPlaceholderStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("99"))
|
||||
|
||||
@@ -54,6 +57,8 @@ func newTextarea() textarea.Model {
|
||||
t.FocusedStyle.CursorLine = cursorLineStyle
|
||||
t.FocusedStyle.Base = focusedBorderStyle
|
||||
t.BlurredStyle.Base = blurredBorderStyle
|
||||
t.FocusedStyle.EndOfBuffer = endOfBufferStyle
|
||||
t.BlurredStyle.EndOfBuffer = endOfBufferStyle
|
||||
t.KeyMap.DeleteWordBackward.SetEnabled(false)
|
||||
t.KeyMap.LineNext = key.NewBinding(key.WithKeys("down"))
|
||||
t.KeyMap.LinePrevious = key.NewBinding(key.WithKeys("up"))
|
||||
|
||||
Reference in New Issue
Block a user