forked from charmbracelet/bubbles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(textinput): store and recover history
This adds the history functionality to the textinput model. Specific actions can push a new value into the history and they can be switched back to via key presses. This is done in relation to nobe4/gh-not#190 I was considering implementing that in my project, and realized that it could just be part of bubbles instead. Looking forward to getting some feedback on this. Especially the comments below.
- Loading branch information
Showing
1 changed file
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters