feat: words typed once are offered back

LibreOffice's Word Completion, its defaults included: words from eight
letters up are collected as they are finished, and the first three
letters offer the rest. The offer is a widget decoration after the caret,
so it is outside the document until Enter takes it — nothing to undo when
it is not taken.

Only while typing: a bare caret move drops the offer, or an Enter meant to
split the paragraph would complete a word instead. The settings share the
AutoCorrect dialog, as they share LibreOffice's.
This commit is contained in:
Steffen Becker committed 2026-08-15 10:27:18 +02:00
1 parent 2f087bc880
commit ee801967f6
13 files changed
+404 -2

No files matched your search

+7
View File
@@ -184,6 +184,13 @@
background: rgba(255, 145, 0, 0.8);
}
/* The word being offered (wordCompletion.ts): after the caret, in the text's own
font, greyed — it is not in the document until Enter takes it. */
.paper .tiptap .word-completion {
opacity: 0.45;
user-select: none;
}
/* Generated table of contents (tableOfContents.ts). A non-editable block listing
headings with dot leaders to their live page number; entries are clickable. */
.paper .tiptap .toc {