-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP editor_engine.rs and editor_buffer.rs
Caret - Add TWCommand to show & set caret (GlobalCursor) - Add support for LocalPaintedEffect caret TWCommandQueue - add macro to make it easy to join and drop other queues into one Position - add methods to check for bounds when adding rows and cols Unicode - Vec<GraphemeClusterSegment> to / from String Debug - Add GetSize derive macro for various structs Testing - Add tests for editor buffer & engine - No such thing as visible for testing in integration tests Ergonomics - Add better macro for debug: call_if_debug_true! Documentation - Better code examples for macros Here's the design doc for this feature: #23
- Loading branch information
1 parent
39f741f
commit 64bee88
Showing
19 changed files
with
653 additions
and
105 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ Cargo.lock | |
**/target | ||
docs/*.bkp | ||
docs/*.dtmp | ||
.idea |
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,34 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"path": "src/tui/crossterm_helpers/tw_command.rs", | ||
"bookmarks": [ | ||
{ | ||
"line": 316, | ||
"column": 4, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 323, | ||
"column": 4, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 483, | ||
"column": 8, | ||
"label": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "src/tui/terminal_window/main_event_loop.rs", | ||
"bookmarks": [ | ||
{ | ||
"line": 234, | ||
"column": 6, | ||
"label": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"keyb", | ||
"keyevent", | ||
"Keypress", | ||
"keypresses", | ||
"lazyfield", | ||
"lazymemovalues", | ||
"litint", | ||
|
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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ | ||
│ r3bl_rs_utils │ | ||
╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ | ||
editor engine: | ||
✔ wire up the engine into framework @done(22-08-31 13:56) | ||
✔ fancy debug impl for editor buffer @done(22-08-31 13:57) | ||
✔ type characters & store in buffer @done(22-09-01 11:46) | ||
✔ add tests for editor buffer @done(22-09-01 11:46) | ||
✔ paint caret: @done(22-09-02 09:43) | ||
✔ use cursor show / hide @done(22-09-02 08:19) | ||
✔ use reverse / invert colors to paint the caret (so there can be many) @done(22-09-02 09:42) | ||
✔ bounds check max rows when painting content @done(22-09-02 11:29) | ||
☐ prevent painting rows past max rows | ||
☐ bounds check max cols when painting content (textwrap) | ||
☐ left/right arrow key move in buffer | ||
☐ delete/backspace edit buffer line | ||
☐ handle new lines | ||
☐ up/down arrow key move in buffer | ||
☐ delete/backspace lines | ||
☐ keyboard shortcut to save/load buffer to/from file | ||
☐ highlight and selection: | ||
☐ add support for text selection highlighting | ||
☐ selection, copy, paste | ||
☐ multiple carets: | ||
☐ add support for multiple carets & network service providers to move them |
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
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
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
Oops, something went wrong.