Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

TextKit 2 - Basic Integration #421

Merged
merged 18 commits into from
Mar 2, 2023
Merged

TextKit 2 - Basic Integration #421

merged 18 commits into from
Mar 2, 2023

Conversation

bfollington
Copy link
Collaborator

@bfollington bfollington commented Feb 28, 2023

The goal of this PR is to integrate the TextKit 2 research I've been doing into the main Subconscious app. For this first step (what I'm calling "Basic Integration") I'm aiming for drop-in replacement of the existing editor with one important difference: per-layout-fragment rendering / formatting.

This should, theoretically, improve the experience of working on large documents quite a bit!

Lays the foundation for #214

Lift and shift seemed to "just work" here, but there are plenty of rough edges
We don't need these yet, but we will soon
Not needed until we actually use the transclude block embeds, but I see no harm in including it
TextContentStorageDelegate and TextContentManagerDelegate take its place. Given the comment attached to this method I expected something to break, but unicode and emojis seem to be behaving just fine.
@bfollington bfollington force-pushed the 2023-02-28-textkit-2-mvp branch from 1f1062e to c03bd13 Compare February 28, 2023 01:40
@bfollington bfollington marked this pull request as ready for review February 28, 2023 01:42
Copy link
Collaborator

@gordonbrander gordonbrander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remarkable progress! I'm also surprised by how little we actually had to replace/rewrite.

Added a few minor change requests. Mostly let's get rid of all ! and replace with if let, or guard on failure. Instead of panicking via ! we should no-op, and log warnings where appropriate.

We will re-introduce these when we actually need them, this first batch of work is purely moving TK1 -> TK2
We'll add it back later
@bfollington bfollington merged commit 9742464 into main Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants