-
-
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 - #30
- Loading branch information
1 parent
39f741f
commit cf1b1d7
Showing
21 changed files
with
918 additions
and
122 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": 319, | ||
"column": 4, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 326, | ||
"column": 4, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 486, | ||
"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
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,41 @@ | ||
╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮ | ||
│ r3bl_rs_utils │ | ||
╯ ╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ | ||
editor engine (https://github.com/r3bl-org/r3bl_rs_utils/issues/23): | ||
✔ wire up the engine into framework @done(22-08-31 13:56) | ||
✔ fancy debug impl for editor buffer @done(22-08-31 13:57) | ||
✔ insert content: @done(22-09-01 11:46) | ||
✔ 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) | ||
✔ implement render clipping: @done(22-09-02 13:10) | ||
✔ figure out how to incorporate row & col bounds checking to implement clipping @done(22-09-02 13:10) | ||
☐ insert content: | ||
☐ handle new lines | ||
☐ move cursor: | ||
☐ left/right arrow key move in buffer | ||
☐ up/down arrow key move in buffer | ||
☐ delete content: | ||
☐ delete/backspace edit buffer line | ||
☐ delete/backspace lines | ||
☐ scrolling | ||
☐ left/right | ||
☐ up/down | ||
☐ 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 | ||
|
||
framework: | ||
☐ https://github.com/r3bl-org/r3bl_rs_utils/issues/28 | ||
☐ https://github.com/r3bl-org/r3bl_rs_utils/issues/27 | ||
☐ https://github.com/r3bl-org/r3bl_rs_utils/issues/24 | ||
☐ https://github.com/r3bl-org/r3bl_rs_utils/issues/26 | ||
|
||
writing: | ||
☐ https://github.com/r3bl-org/r3bl_rs_utils/issues/19 |
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.