Skip to content

Commit

Permalink
Feat: Peritext-like rich text support (#123)
Browse files Browse the repository at this point in the history
* feat: richtext wip

* feat: add insert to style range map wip

* feat: richtext state

* fix: fix style state inserting and style map

* fix: tiny vec merge err

* fix: comment err

* refactor: use new generic-btree & refine impl

* feat: fugue tracker

* feat: tracker

* feat: tracker

* fix: fix a few err in impl

* feat: init richtext content state

* feat: refactor arena

* feat: extract anchor_type info out of style flag

* refactor: state apply op more efficiently
we can now reuse the repr in state and op

* fix: new clippy errors

* refactor: use state chunk as delta item

* refactor: use two op to insert style start and style end

* feat: diff calc

* feat: handler

* fix: tracker checkout err

* fix: pass basic richtext handler tests

* fix: pass handler basic marking tests

* fix: pass all peritext criteria

* feat: snapshot encoding for richtext init

* refactor: replace Text with Richtext

* refacotr: rm text code

* fix: richtext checkout err

* refactor: diff of text and map

* refactor: del span

* refactor: event

* fix: fuzz err

* fix: pass all tests

* fix: fuzz err

* fix: list child cache err

* chore: rm debug code

* fix: encode enhanced err

* fix: encode enchanced

* fix: fix several richtext issue

* fix: richtext anchor err

* chore: rm debug code

* fix: richtext fuzz err

* feat: speedup text snapshot decode

* perf: optimize snapshot encoding

* perf: speed up decode & insert

* fix: fugue span merge err

* perf: speedup delete & id cursor map

* fix: fugue merge err

* chore: update utils

* perf: speedup text insert / del

* fix: cursor cache

* perf: reduce conversion by introducing InsertText

* perf: speed up by refined cursor cache

* chore: update gbtree dep

* refactor(wasm): use quill delta format

* chore: fix warnings
  • Loading branch information
zxch3n authored Oct 29, 2023
1 parent fa1286a commit d942e3d
Show file tree
Hide file tree
Showing 87 changed files with 10,864 additions and 1,984 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ target
dhat-heap.json
.DS_Store
node_modules/
.idea
.idea/
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
"RUSTFLAGS",
"smstring",
"thiserror",
"tinyvec",
"txns",
"unbold",
"yspan"
],
"rust-analyzer.runnableEnv": {
"RUST_BACKTRACE": "full",
"RUST_BACKTRACE": "1",
"DEBUG": "*"
},
"rust-analyzer.cargo.features": ["test_utils"],
Expand All @@ -43,5 +45,8 @@
},
"excalidraw.theme": "dark",
"deno.enable": true,
"cortex-debug.variableUseNaturalFormat": true
"cortex-debug.variableUseNaturalFormat": true,
"[markdown]": {
"editor.defaultFormatter": "darkriszty.markdown-table-prettify"
}
}
Loading

0 comments on commit d942e3d

Please sign in to comment.