Skip to content

Implement some modal editing mode #390

Answered by maaslalani
soomtong asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@soomtong
Comment options

Answer selected by soomtong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants