-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split off the textbox file into its own library. Tests TBD.
- Loading branch information
Showing
7 changed files
with
49 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
capytui | ||
capytui_catpuccin | ||
capytui_scroller | ||
capytui_textbox | ||
mangadex_api | ||
bonsai.extra) | ||
(preprocess | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Capytui Textbox | ||
|
||
This is a primitive text box component. It is currently a single line | ||
and has very limited functionality and poor performance. | ||
|
||
If you would like to edit something more complex/non-ephemeral, consider | ||
instead programmatically opening a proper text editor / some other alternative. | ||
|
||
## TODO. | ||
|
||
- Consider supporting a multi-line text box | ||
- Consider being able to move the cursor around (currently you can only type at the end.) | ||
- Consider making character insertions more performant by using something like a rope. | ||
- Consider supporting more complex editor functionality like an undo stack... | ||
- Consider physically moving the terminal cursor around as you type. (this is | ||
a minor thing - technically the current cursor is not the real cursor so if | ||
you ctrl+b + [ in tmux, the cursor won't be wherever your fake capytui "cursor" | ||
currently is.) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name capytui_textbox) | ||
(libraries core bonsai capytui) | ||
(preprocess | ||
(pps ppx_jane bonsai.ppx_bonsai))) |