Skip to content

Commit

Permalink
WIP editor_engine.rs and editor_buffer.rs
Browse files Browse the repository at this point in the history
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
nazmulidris committed Sep 3, 2022
1 parent 39f741f commit dd77b90
Show file tree
Hide file tree
Showing 21 changed files with 992 additions and 170 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ Cargo.lock
**/target
docs/*.bkp
docs/*.dtmp
.idea
34 changes: 34 additions & 0 deletions .vscode/bookmarks.json
@@ -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": 231,
"column": 6,
"label": ""
}
]
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Expand Up @@ -15,7 +15,11 @@
"dialup",
"dimens",
"drawio",
"editorbuffer",
"editorcomponent",
"editorengine",
"enumflags",
"globalcursor",
"idents",
"InputEvent",
"insertanchor",
Expand All @@ -24,9 +28,11 @@
"keyb",
"keyevent",
"Keypress",
"keypresses",
"lazyfield",
"lazymemovalues",
"litint",
"localpaintedeffect",
"middlewares",
"neovim",
"notcurses",
Expand Down

0 comments on commit dd77b90

Please sign in to comment.