Implement some modal editing mode #390
-
Hi, I think bubble with bubbletea can make a TUI app that I imagine. I hope someone guides me. I was thinking of simply switch a pane into a textinput (or area) component and views component. I'd like to ask if this is the proper way? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @soomtong, this is a great idea! I believe the way to implement this is through our key component bubble https://github.com/charmbracelet/bubbles/blob/master/key/key.go I believe you would define the key bindings and actions for normal mode and insert mode and then define a key (escape / i) to switch between the two key bindings. |
Beta Was this translation helpful? Give feedback.
Hey @soomtong, this is a great idea! I believe the way to implement this is through our key component bubble https://github.com/charmbracelet/bubbles/blob/master/key/key.go
I believe you would define the key bindings and actions for normal mode and insert mode and then define a key (escape / i) to switch between the two key bindings.