documents and editor: a writing view - measure, font, scale, focus fading, typewriter centering
CI / platforms (windows-latest) (push) Failing after 9s
CI / site (push) Successful in 22s
CI / crate (push) Failing after 12m26s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-12 08:25:45 -04:00
1 parent e89fb32f43
commit 508fee9d15
13 files changed
+299 -12

No files matched your search

+10
View File
@@ -2,6 +2,7 @@ mod attach;
mod edit;
mod finding;
mod lists;
mod look;
mod parse;
mod place;
mod tables;
@@ -19,6 +20,7 @@ use gpui::{
};
pub use attach::Attachment;
pub use look::DocumentLook;
pub use parse::DocumentHeading;
use parse::{Parsed, alike, parsed};
pub use tables::{TableEdit, TableRefusal};
@@ -83,6 +85,11 @@ pub struct MarkdownDocument {
writes: usize,
/// A match asked before its text was read; its version.
showing: Option<(Range<usize>, u64)>,
look: DocumentLook,
/// Typing in the open block, counted.
typed: u64,
/// The block, text, typing and height last centered.
centered: Option<(usize, u64, u64, u64)>,
focus: FocusHandle,
on_link: Option<OnLink>,
_subscriptions: Vec<Subscription>,
@@ -136,6 +143,9 @@ impl MarkdownDocument {
asks: 0,
writes: 0,
showing: None,
look: DocumentLook::default(),
typed: 0,
centered: None,
focus,
on_link: None,
_subscriptions: subscriptions,