Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

feat(open-knowledge): scope editor footer counts to selection (#1608)

Andrew Mikofalvy6dd06bbeba00
diff --git a/.changeset/selection-aware-document-stats.md b/.changeset/selection-aware-document-stats.md
new file mode 100644
index 000000000..8285d1e6b
--- /dev/null
+++ b/.changeset/selection-aware-document-stats.md
@@ -0,0 +1,12 @@
+---
+"@inkeep/open-knowledge-app": patch
+---
+
+feat(open-knowledge): editor footer counts scope to the selection
+
+The footer word / character / token counts now reflect the current text
+selection. When you select a passage in either edit mode, the counts switch to
+that passage and gain a "Selected" indicator; collapsing the selection reverts
+to the whole-document counts. Selection counts use the same visible-text
+semantics as the document counter (markdown syntax stripped), so the same
+passage counts identically whether selected in WYSIWYG or source mode.
diff --git a/packages/app/src/components/EditorArea.tsx b/packages/app/src/components/EditorArea.tsx
index 16942e001..ea7797cf8 100644
--- a/packages/app/src/components/EditorArea.tsx
+++ b/packages/app/src/components/EditorArea.tsx
@@ -30,6 +30,7 @@ import { mountPromiseHasResolved } from '@/editor/mount-promise';
import { syncPromiseHasResolved } from '@/editor/sync-promise';
import { useDocumentStats } from '@/hooks/use-document-stats';
import { useLifecycleStatus } from '@/hooks/use-lifecycle-status';
+import { useSelectionStats } from '@/hooks/use-selection-stats';
import { docNameFromHash, hashFromDocName } from '@/lib/doc-hash';
import { getInitialDocPanelWidth, writeDocPanelWidth } from '@/lib/doc-panel-width-store';
import { matchesKeyboardShortcut } from '@/lib/keyboard-shortcuts';
@@ -111,6 +112,10 @@ function EditorAreaInner({
const { openDocumentTransition } = useDocumentTransition();
const { requestAddProperty } = useProperties();
const stats = useDocumentStats(activeProvider, activeDocName);
+ const selectionStats = useSelectionStats(
+ activeDocName,
+ editorMode === 'source' ? 'source' : 'wysiwyg',
+ );
const syncStatus = useSyncStatus(activeProvider);
const isConnected = syncStatus === 'connected' || syncStatus === 'synced';
const lifecycleStatus = useLifecycleStatus(activeDocName);
@@ -457,7 +462,7 @@ function EditorAreaInner({
/>
)}
</div>
- <EditorFooter stats={stats} showStats={showStats} />
+ <EditorFooter stats={stats} selectionStats={selectionStats} showStats={showStats} />
</div>
);
diff --git a/packages/app/src/components/EditorFooter.tsx b/packages/app/src/components/EditorFooter.tsx
index ce2247b14..0834d042f 100644
--- a/packages/app/src/components/EditorFooter.tsx
+++ b/packages/app/src/components/EditorFooter.tsx
@@ -9,19 +9,31 @@ import type { DocumentStats } from '@/lib/document-stats';
interface EditorFooterProps {
stats: DocumentStats;
+ /** Selection-scoped stats. When non-null, the stats group reflects the
+ * current selection (prefixed "Selected"); when null it shows `stats`
+ * (whole document). */
+ selectionStats?: DocumentStats | null;
/** Stats group renders only when there's a real doc scope. When false and
* identity is also empty, the footer renders nothing. */
showStats?: boolean;
}
-export function EditorFooter({ stats, showStats = true }: EditorFooterProps) {
+export function EditorFooter({ stats, selectionStats, showStats = true }: EditorFooterProps) {
const { t } = useLingui();
const identity = useEditorFooterIdentity();
if (!showStats && identity === null) return null;
- const { words, chars, tokens } = stats;
+ const active = selectionStats ?? stats;
+ const isSelection = selectionStats != null;
+ const { words, chars, tokens } = active;
return (
<section
- aria-label={showStats ? t`Document statistics` : t`Editor status bar`}
+ aria-label={
+ !showStats
+ ? t`Editor status bar`
+ : isSelection
+ ? t`Selection statistics`
+ : t`Document statistics`
+ }
className="relative flex h-6 shrink-0 items-center justify-between gap-3 bg-background px-3 text-2xs text-muted-foreground"
>
<div
@@ -33,17 +45,25 @@ export function EditorFooter({ stats, showStats = true }: EditorFooterProps) {
</span>
{showStats ? (
<span className="flex items-center shrink-0 gap-3">
+ {isSelection ? (
+ <span
+ className="font-medium text-foreground/70"
+ data-testid="editor-footer-selected-label"
+ >
+ {t`Selected`}
+ </span>
+ ) : null}
<span>
- <span className="tabular-nums">{stats.words.toLocaleString()}</span>{' '}
+ <span className="tabular-nums">{active.words.toLocaleString()}</span>{' '}
<Plural value={words} one="word" other="words" />
</span>
<span>
- <span className="tabular-nums">{stats.chars.toLocaleString()}</span>{' '}
+ <span className="tabular-nums">{active.chars.toLocaleString()}</span>{' '}
<Plural value={chars} one="char" other="chars" />
</span>
<span>
- {stats.tokens > 0 ? '~' : ''}
- <span className="tabular-nums">{stats.tokens.toLocaleString()}</span>{' '}
+ {active.tokens > 0 ? '~' : ''}
+ <span className="tabular-nums">{active.tokens.toLocaleString()}</span>{' '}
<Plural value={tokens} one="token" other="tokens" />
</span>
</span>
diff --git a/packages/app/src/editor/SourceEditor.tsx b/packages/app/src/editor/SourceEditor.tsx
index 99aa236e2..fe7bdad88 100644
--- a/packages/app/src/editor/SourceEditor.tsx
+++ b/packages/app/src/editor/SourceEditor.tsx
@@ -23,6 +23,11 @@ import { createSourceClipboardExtension } from './clipboard/index.ts';
import { type CmCacheEntry, mountCmEditor, parkCmEditor } from './editor-cache';
import { getMountId } from './mount-id-registry';
import { markUserTyping } from './observers';
+import {
+ publishSelectionStats,
+ SELECTION_STATS_DEBOUNCE_MS,
+ selectionStatsFromSource,
+} from './selection-stats';
import {
clearPendingSourceNavigation,
consumePendingSourceNavigation,
@@ -137,6 +142,7 @@ export function SourceEditor({
container,
sizeStats,
factory: (el) => {
+ let selectionStatsTimer: ReturnType<typeof setTimeout> | null = null;
const sourceClipboard = createSourceClipboardExtension({
ydoc: provider.document,
ytext,
@@ -156,6 +162,18 @@ export function SourceEditor({
}),
createSourcePolishExtension(),
sourceClipboard,
+ EditorView.updateListener.of((update) => {
+ if (!update.selectionSet && !update.docChanged) return;
+ if (selectionStatsTimer !== null) clearTimeout(selectionStatsTimer);
+ selectionStatsTimer = setTimeout(() => {
+ selectionStatsTimer = null;
+ publishSelectionStats(
+ resolvedDocName,
+ 'source',
+ selectionStatsFromSource(update.view),
+ );
+ }, SELECTION_STATS_DEBOUNCE_MS);
+ }),
EditorView.domEventHandlers({
keydown: (event, view) => {
if (!sourceModeActiveRef.current) return false;
@@ -182,6 +200,7 @@ export function SourceEditor({
],
});
const view = new EditorView({ state, parent: el });
+ publishSelectionStats(resolvedDocName, 'source', selectionStatsFromSource(view));
const dom = view.contentDOM;
dom.addEventListener('keydown', mark);
dom.addEventListener('paste', mark);
diff --git a/packages/app/src/editor/TiptapEditor.tsx b/packages/app/src/editor/TiptapEditor.tsx
index 6050a005f..ae1904c84 100644
--- a/packages/app/src/editor/TiptapEditor.tsx
+++ b/packages/app/src/editor/TiptapEditor.tsx
@@ -44,6 +44,11 @@ import { uploadDecorationPlugin } from './image-upload/index.ts';
import { getMountId } from './mount-id-registry';
import { mountTiptapEditorPromise } from './mount-promise';
import { markUserTyping } from './observers';
+import {
+ publishSelectionStats,
+ SELECTION_STATS_DEBOUNCE_MS,
+ selectionStatsFromWysiwyg,
+} from './selection-stats';
import { TableCellHandles } from './table-controls/TableCellHandles';
import { attachTypingBurstDetector } from './typing-burst-detector';
import { getEditorView } from './utils/get-editor-view';
@@ -332,6 +337,29 @@ const TiptapEditorChrome: FC<TiptapEditorChromeProps> = ({
return () => unregisterEditor(docName, editor);
}, [editor, provider]);
+ useEffect(() => {
+ const docName = provider.configuration.name;
+ if (!docName) return;
+ let timer: ReturnType<typeof setTimeout> | null = null;
+ const publish = () => {
+ timer = null;
+ publishSelectionStats(docName, 'wysiwyg', selectionStatsFromWysiwyg(editor));
+ };
+ const schedule = () => {
+ if (timer) clearTimeout(timer);
+ timer = setTimeout(publish, SELECTION_STATS_DEBOUNCE_MS);
+ };
+ publish();
+ editor.on('selectionUpdate', schedule);
+ editor.on('update', schedule);
+ return () => {
+ if (timer) clearTimeout(timer);
+ editor.off('selectionUpdate', schedule);
+ editor.off('update', schedule);
+ publishSelectionStats(docName, 'wysiwyg', null);
+ };
+ }, [editor, provider]);
+
useEffect(() => {
if (import.meta.env.PROD) return;
if (!editor) return;
diff --git a/packages/app/src/editor/selection-stats.test.ts b/packages/app/src/editor/selection-stats.test.ts
new file mode 100644
index 000000000..8cdfc8aca
--- /dev/null
+++ b/packages/app/src/editor/selection-stats.test.ts
@@ -0,0 +1,141 @@
+import { describe, expect, test } from 'bun:test';
+import type { EditorView } from '@codemirror/view';
+import type { Editor } from '@tiptap/core';
+import {
+ getSelectionStats,
+ publishSelectionStats,
+ selectionStatsFromSource,
+ selectionStatsFromWysiwyg,
+ subscribeSelectionStats,
+} from './selection-stats';
+
+describe('selection-stats store', () => {
+ test('get returns null for an unknown or null docName', () => {
+ expect(getSelectionStats('store-missing', 'wysiwyg')).toBeNull();
+ expect(getSelectionStats(null, 'wysiwyg')).toBeNull();
+ });
+
+ test('publish then get returns the stats; null clears the entry', () => {
+ const doc = 'store-roundtrip';
+ const stats = { words: 2, chars: 11, tokens: 3 };
+ publishSelectionStats(doc, 'wysiwyg', stats);
+ expect(getSelectionStats(doc, 'wysiwyg')).toEqual(stats);
+ publishSelectionStats(doc, 'wysiwyg', null);
+ expect(getSelectionStats(doc, 'wysiwyg')).toBeNull();
+ });
+
+ test('entries are isolated per docName', () => {
+ publishSelectionStats('store-a', 'wysiwyg', { words: 1, chars: 1, tokens: 1 });
+ publishSelectionStats('store-b', 'wysiwyg', { words: 9, chars: 9, tokens: 9 });
+ expect(getSelectionStats('store-a', 'wysiwyg')).toEqual({ words: 1, chars: 1, tokens: 1 });
+ expect(getSelectionStats('store-b', 'wysiwyg')).toEqual({ words: 9, chars: 9, tokens: 9 });
+ publishSelectionStats('store-a', 'wysiwyg', null);
+ publishSelectionStats('store-b', 'wysiwyg', null);
+ });
+
+ test('the two surfaces for one doc do not clobber each other', () => {
+ const doc = 'store-two-surface';
+ publishSelectionStats(doc, 'wysiwyg', { words: 5, chars: 30, tokens: 8 });
+ publishSelectionStats(doc, 'source', null);
+ expect(getSelectionStats(doc, 'wysiwyg')).toEqual({ words: 5, chars: 30, tokens: 8 });
+ expect(getSelectionStats(doc, 'source')).toBeNull();
+ publishSelectionStats(doc, 'source', { words: 2, chars: 4, tokens: 1 });
+ publishSelectionStats(doc, 'wysiwyg', null);
+ expect(getSelectionStats(doc, 'source')).toEqual({ words: 2, chars: 4, tokens: 1 });
+ expect(getSelectionStats(doc, 'wysiwyg')).toBeNull();
+ publishSelectionStats(doc, 'source', null);
+ });
+
+ test('subscribers fire on publish and on clearing an existing entry, not on no-op clears', () => {
+ const doc = 'store-notify';
+ let calls = 0;
+ const unsub = subscribeSelectionStats(() => {
+ calls++;
+ });
+ publishSelectionStats(doc, 'wysiwyg', { words: 1, chars: 1, tokens: 1 }); // set → notify
+ publishSelectionStats(doc, 'wysiwyg', null); // existing entry removed → notify
+ publishSelectionStats(doc, 'wysiwyg', null); // already absent → no notify
+ unsub();
+ publishSelectionStats(doc, 'wysiwyg', { words: 2, chars: 2, tokens: 2 }); // after unsub → no notify
+ expect(calls).toBe(2);
+ publishSelectionStats(doc, 'wysiwyg', null);
+ });
+
+ test('publishing identical values is a no-op (no notify, stable reference)', () => {
+ const doc = 'store-stable-ref';
+ publishSelectionStats(doc, 'wysiwyg', { words: 3, chars: 12, tokens: 3 });
+ const ref1 = getSelectionStats(doc, 'wysiwyg');
+ let calls = 0;
+ const unsub = subscribeSelectionStats(() => {
+ calls++;
+ });
+ publishSelectionStats(doc, 'wysiwyg', { words: 3, chars: 12, tokens: 3 });
+ expect(calls).toBe(0);
+ expect(getSelectionStats(doc, 'wysiwyg')).toBe(ref1); // same reference retained
+ publishSelectionStats(doc, 'wysiwyg', { words: 4, chars: 12, tokens: 3 });
+ expect(calls).toBe(1);
+ unsub();
+ publishSelectionStats(doc, 'wysiwyg', null);
+ });
+});
+
+function fakeWysiwygEditor(text: string, empty: boolean): Editor {
+ return {
+ state: {
+ selection: { from: 0, to: text.length, empty },
+ doc: { textBetween: () => text },
+ },
+ } as unknown as Editor;
+}
+
+describe('selectionStatsFromWysiwyg', () => {
+ test('collapsed selection returns null', () => {
+ expect(selectionStatsFromWysiwyg(fakeWysiwygEditor('hello', true))).toBeNull();
+ });
+
+ test('whitespace-only selection returns null', () => {
+ expect(selectionStatsFromWysiwyg(fakeWysiwygEditor(' ', false))).toBeNull();
+ });
+
+ test('non-empty selection counts visible text directly', () => {
+ expect(selectionStatsFromWysiwyg(fakeWysiwygEditor('hello world', false))).toEqual({
+ words: 2,
+ chars: 11,
+ tokens: 3,
+ });
+ });
+});
+
+function fakeSourceView(ranges: Array<{ from: number; to: number; text: string }>): EditorView {
+ return {
+ state: {
+ selection: {
+ ranges: ranges.map((r) => ({ from: r.from, to: r.to, empty: r.from === r.to })),
+ },
+ sliceDoc: (from: number, to: number) =>
+ ranges.find((r) => r.from === from && r.to === to)?.text ?? '',
+ },
+ } as unknown as EditorView;
+}
+
+describe('selectionStatsFromSource', () => {
+ test('no non-empty ranges returns null', () => {
+ expect(selectionStatsFromSource(fakeSourceView([{ from: 3, to: 3, text: '' }]))).toBeNull();
+ });
+
+ test('raw markdown selection is stripped to visible-text stats', () => {
+ expect(
+ selectionStatsFromSource(fakeSourceView([{ from: 0, to: 8, text: '## Hello' }])),
+ ).toEqual({ words: 1, chars: 5, tokens: 2 });
+ });
+
+ test('multi-range (multi-cursor) selection sums across ranges', () => {
+ const stats = selectionStatsFromSource(
+ fakeSourceView([
+ { from: 0, to: 5, text: 'hello' },
+ { from: 10, to: 15, text: 'world' },
+ ]),
+ );
+ expect(stats?.words).toBe(2);
+ });
+});
diff --git a/packages/app/src/editor/selection-stats.ts b/packages/app/src/editor/selection-stats.ts
new file mode 100644
index 000000000..0d1dd2140
--- /dev/null
+++ b/packages/app/src/editor/selection-stats.ts
@@ -0,0 +1,73 @@
+import type { EditorView } from '@codemirror/view';
+import type { Editor } from '@tiptap/core';
+import { computeSelectionStats, type DocumentStats } from '@/lib/document-stats';
+
+export const SELECTION_STATS_DEBOUNCE_MS = 120;
+
+export type EditorSurface = 'wysiwyg' | 'source';
+
+const statsByDocSurface = new Map<string, DocumentStats>();
+const listeners = new Set<() => void>();
+
+const keyFor = (docName: string, surface: EditorSurface): string => `${surface}:${docName}`;
+
+function notify(): void {
+ for (const listener of listeners) listener();
+}
+
+export function publishSelectionStats(
+ docName: string,
+ surface: EditorSurface,
+ stats: DocumentStats | null,
+): void {
+ const key = keyFor(docName, surface);
+ if (stats === null) {
+ if (statsByDocSurface.delete(key)) notify();
+ return;
+ }
+ const prev = statsByDocSurface.get(key);
+ if (
+ prev &&
+ prev.words === stats.words &&
+ prev.chars === stats.chars &&
+ prev.tokens === stats.tokens
+ ) {
+ return;
+ }
+ statsByDocSurface.set(key, stats);
+ notify();
+}
+
+export function getSelectionStats(
+ docName: string | null,
+ surface: EditorSurface,
+): DocumentStats | null {
+ if (docName === null) return null;
+ return statsByDocSurface.get(keyFor(docName, surface)) ?? null;
+}
+
+export function subscribeSelectionStats(listener: () => void): () => void {
+ listeners.add(listener);
+ return () => {
+ listeners.delete(listener);
+ };
+}
+
+export function selectionStatsFromWysiwyg(editor: Editor): DocumentStats | null {
+ const { from, to, empty } = editor.state.selection;
+ if (empty) return null;
+ const text = editor.state.doc.textBetween(from, to, '\n', ' ');
+ if (!text.trim()) return null;
+ return computeSelectionStats(text, { isMarkdown: false });
+}
+
+export function selectionStatsFromSource(view: EditorView): DocumentStats | null {
+ const parts: string[] = [];
+ for (const range of view.state.selection.ranges) {
+ if (!range.empty) parts.push(view.state.sliceDoc(range.from, range.to));
+ }
+ if (parts.length === 0) return null;
+ const text = parts.join('\n');
+ if (!text.trim()) return null;
+ return computeSelectionStats(text, { isMarkdown: true });
+}
diff --git a/packages/app/src/hooks/use-selection-stats.ts b/packages/app/src/hooks/use-selection-stats.ts
new file mode 100644
index 000000000..269660727
--- /dev/null
+++ b/packages/app/src/hooks/use-selection-stats.ts
@@ -0,0 +1,16 @@
+import { useSyncExternalStore } from 'react';
+import {
+ type EditorSurface,
+ getSelectionStats,
+ subscribeSelectionStats,
+} from '@/editor/selection-stats';
+import type { DocumentStats } from '@/lib/document-stats';
+
+export function useSelectionStats(
+ activeDocName: string | null,
+ surface: EditorSurface,
+): DocumentStats | null {
+ return useSyncExternalStore(subscribeSelectionStats, () =>
+ getSelectionStats(activeDocName, surface),
+ );
+}
diff --git a/packages/app/src/lib/document-stats.test.ts b/packages/app/src/lib/document-stats.test.ts
index 4b65ab519..1755daad4 100644
--- a/packages/app/src/lib/document-stats.test.ts
+++ b/packages/app/src/lib/document-stats.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, test } from 'bun:test';
-import { computeBodyStats } from './document-stats';
+import { computeBodyStats, computeSelectionStats, EMPTY_STATS } from './document-stats';
describe('computeBodyStats', () => {
test('empty string returns zeros', () => {
@@ -151,3 +151,52 @@ describe('computeBodyStats', () => {
expect(stats.chars).toBe('card body text\nnote body'.length);
});
});
+
+describe('computeSelectionStats', () => {
+ test('empty / whitespace selection returns EMPTY_STATS', () => {
+ expect(computeSelectionStats('', { isMarkdown: false })).toEqual(EMPTY_STATS);
+ expect(computeSelectionStats(' \n ', { isMarkdown: false })).toEqual(EMPTY_STATS);
+ expect(computeSelectionStats('', { isMarkdown: true })).toEqual(EMPTY_STATS);
+ });
+
+ test('WYSIWYG selection (isMarkdown:false) counts visible text directly', () => {
+ expect(computeSelectionStats('hello world', { isMarkdown: false })).toEqual({
+ words: 2,
+ chars: 11,
+ tokens: 3,
+ });
+ });
+
+ test('WYSIWYG selection does not strip syntax — PM text is already visible', () => {
+ expect(computeSelectionStats('## Hello', { isMarkdown: false })).toEqual({
+ words: 1,
+ chars: 8,
+ tokens: 2,
+ });
+ });
+
+ test('source selection (isMarkdown:true) strips syntax like the doc counter', () => {
+ expect(computeSelectionStats('## Hello', { isMarkdown: true })).toEqual({
+ words: 1,
+ chars: 5,
+ tokens: 2,
+ });
+ expect(computeSelectionStats('**bold** and *italic*', { isMarkdown: true })).toEqual({
+ words: 3,
+ chars: 15,
+ tokens: 4,
+ });
+ });
+
+ test('same passage counts identically in both modes (visible-text parity)', () => {
+ expect(computeSelectionStats('## Hello', { isMarkdown: true })).toEqual(
+ computeSelectionStats('Hello', { isMarkdown: false }),
+ );
+ });
+
+ test('CJK selection routes to the segmenter', () => {
+ expect(computeSelectionStats('这是一个测试文档', { isMarkdown: false }).words).toBeGreaterThan(
+ 1,
+ );
+ });
+});
diff --git a/packages/app/src/lib/document-stats.ts b/packages/app/src/lib/document-stats.ts
index 5ffe679d3..7da25fe3c 100644
--- a/packages/app/src/lib/document-stats.ts
+++ b/packages/app/src/lib/document-stats.ts
@@ -118,14 +118,26 @@ function estimateTokens(text: string): number {
return Math.ceil(text.length / ratio);
}
-export function computeBodyStats(fullText: string): DocumentStats {
- if (!fullText) return { words: 0, chars: 0, tokens: 0 };
- const { body } = stripFrontmatter(fullText);
- if (!body.trim()) return { words: 0, chars: 0, tokens: 0 };
- const visible = extractVisibleText(body);
+function countStats(visible: string): DocumentStats {
if (!visible) return { words: 0, chars: 0, tokens: 0 };
const words = NON_SPACE_SCRIPT_RE.test(visible)
? countWordsBySegmenter(visible)
: countWordsByWhitespace(visible);
return { words, chars: visible.length, tokens: estimateTokens(visible) };
}
+
+export function computeBodyStats(fullText: string): DocumentStats {
+ if (!fullText) return { words: 0, chars: 0, tokens: 0 };
+ const { body } = stripFrontmatter(fullText);
+ if (!body.trim()) return { words: 0, chars: 0, tokens: 0 };
+ return countStats(extractVisibleText(body));
+}
+
+export function computeSelectionStats(
+ text: string,
+ { isMarkdown }: { isMarkdown: boolean },
+): DocumentStats {
+ const trimmed = text.trim();
+ if (!trimmed) return EMPTY_STATS;
+ return countStats(isMarkdown ? extractVisibleText(text) : trimmed);
+}
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 4612bb1ca..3fdc9aadc 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -431,6 +431,7 @@
"Bdha5y": ["Publishing..."],
"BeWTQy": ["Loading starter packs"],
"BgV29F": ["Visual editor find input focused"],
+ "Bv5a9_": ["Selection statistics"],
"Bx4EXG": ["Actions for ", ["label"]],
"By-7Pn": ["Toggle a bullet list."],
"BymzO4": ["Document outline"],
@@ -1866,6 +1867,7 @@
" (inherited from folder properties; not editable here)"
],
"yjExfe": ["Branch <0>", ["shareBranch"], "</0> is checked out in:"],
+ "ylXj1N": ["Selected"],
"ynIa4S": ["Visual editor list item"],
"ypw6My": ["Showing top ", ["0"], " headings — keep typing to narrow"],
"ysxgu8": ["project"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 14f42f45c..40807d8a4 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -4817,6 +4817,10 @@ msgstr "Select the full source document."
msgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."
msgstr "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."
+#: src/components/EditorFooter.tsx
+msgid "Selected"
+msgstr "Selected"
+
#: src/components/GraphPanel.tsx
msgid "Selected graph item"
msgstr "Selected graph item"
@@ -4829,6 +4833,10 @@ msgstr "Selected in graph"
msgid "Selection must be inside the project"
msgstr "Selection must be inside the project"
+#: src/components/EditorFooter.tsx
+msgid "Selection statistics"
+msgstr "Selection statistics"
+
#: src/editor/slash-command/items.tsx
msgid "Separator"
msgstr "Separator"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index 45a2295c8..f62487df1 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -431,6 +431,7 @@
"Bdha5y": ["Ƥũƀĺĩśĥĩńĝ..."],
"BeWTQy": ["Ĺōàďĩńĝ śţàŕţēŕ ƥàćķś"],
"BgV29F": ["Vĩśũàĺ ēďĩţōŕ ƒĩńď ĩńƥũţ ƒōćũśēď"],
+ "Bv5a9_": ["Śēĺēćţĩōń śţàţĩśţĩćś"],
"Bx4EXG": ["Àćţĩōńś ƒōŕ ", ["label"]],
"By-7Pn": ["Ţōĝĝĺē à ƀũĺĺēţ ĺĩśţ."],
"BymzO4": ["Ďōćũḿēńţ ōũţĺĩńē"],
@@ -1866,6 +1867,7 @@
" (ĩńĥēŕĩţēď ƒŕōḿ ƒōĺďēŕ ƥŕōƥēŕţĩēś; ńōţ ēďĩţàƀĺē ĥēŕē)"
],
"yjExfe": ["ßŕàńćĥ <0>", ["shareBranch"], "</0> ĩś ćĥēćķēď ōũţ ĩń:"],
+ "ylXj1N": ["Śēĺēćţēď"],
"ynIa4S": ["Vĩśũàĺ ēďĩţōŕ ĺĩśţ ĩţēḿ"],
"ypw6My": ["Śĥōŵĩńĝ ţōƥ ", ["0"], " ĥēàďĩńĝś — ķēēƥ ţŷƥĩńĝ ţō ńàŕŕōŵ"],
"ysxgu8": ["ƥŕōĴēćţ"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 29261b074..a00a1f47d 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -4812,6 +4812,10 @@ msgstr ""
msgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."
msgstr ""
+#: src/components/EditorFooter.tsx
+msgid "Selected"
+msgstr ""
+
#: src/components/GraphPanel.tsx
msgid "Selected graph item"
msgstr ""
@@ -4824,6 +4828,10 @@ msgstr ""
msgid "Selection must be inside the project"
msgstr ""
+#: src/components/EditorFooter.tsx
+msgid "Selection statistics"
+msgstr ""
+
#: src/editor/slash-command/items.tsx
msgid "Separator"
msgstr ""