Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Basic Chat Application with Multi-line Input #328

Closed
wants to merge 5 commits into from

Conversation

maaslalani
Copy link
Member

Requires charmbracelet/bubbles#164

To test:

  1. Checkout this branch (multiline-input) on bubbles and bubbletea
  2. Add the following to bubbletea/examples/go.mod:
replace github.com/charmbracelet/bubbles => ../../bubbles
  1. Run cd bubbletea/examples/{chat,multiline-textinput} && go run main.go

Example One: Chat Application with multi-line input

Screen.Recording.2022-06-03.at.5.51.23.PM.mov

Example Two: Multi-line input

Screen.Recording.2022-06-03.at.1.45.47.PM.mov

@@ -15,3 +15,4 @@ require (
)

replace github.com/charmbracelet/bubbletea => ../
replace github.com/charmbracelet/bubbles => ../../bubbles
Copy link
Member

@muesli muesli Jun 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see why you needed this change, but it will obviously fail on the CI and for most users (who don't have bubbles checked out manually). You could bump the required bubbles to a specific commit id, which contains the textarea changes, with:

go get github.com/charmbracelet/bubbles@abcdef

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that! Remnants of development 😅

@maaslalani
Copy link
Member Author

Superseded by #341

@maaslalani maaslalani closed this Jun 9, 2022
@maaslalani maaslalani deleted the multiline-input branch June 28, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants