💄 selection count

This commit is contained in:
2026-05-22 22:07:17 +10:00
parent c56cc15207
commit 6b9eb388ba
4 changed files with 32 additions and 2 deletions

View File

@@ -79,7 +79,8 @@ export function AnalysisToolbar(): JSX.Element {
outlineOpen,
toggleOutline,
revisionPanelOpen,
toggleRevisionPanel
toggleRevisionPanel,
selectionWordCount
} = useEditorStore()
const [analyzeOpen, setAnalyzeOpen] = useState(false)
@@ -381,6 +382,11 @@ export function AnalysisToolbar(): JSX.Element {
A+
</button>
</div>
{selectionWordCount !== null && (
<span className="toolbar-selection-wordcount" title={`${selectionWordCount} words selected`}>
{formatWordCount(selectionWordCount)} sel
</span>
)}
{activeFilePath && (
<span
className="toolbar-wordcount"