feat(editor): convert text to table, table sorting, formula, and cell spacing - #29
Conversation
|
Hi @rixzkiye — of the whole series, this is the PR we're most interested in. Convert-text-to-table (complementing our existing convert-to-text), table sort, table formulas, and cell spacing are all real gaps in What keeps us from merging as-is (all fixable):
None of these are architectural — they're all inside the command layer we'd merge into. Fix these on top of current |
5ce804b to
26cec9a
Compare
|
Hi @DemoMacro, Following up on your review feedback, I've rebased this PR cleanly on latest
All tests and typechecks pass. |
Summary
This pull request implements the remaining Word-grade power tools for tables in Docen, completing the table layout and data capabilities:
Convert Text to Table (
convert-text-to-table):convert-to-text.\t,,,;,|).tableHeader: true).ribbon.ts).Table Sorting (
sort-tableand enhancedsort):tableHeader: true) from being sorted.1, 2, 10) and locale comparison in both ascending and descending order.sortcommand seamlessly delegates tosort-table.Table Formula (
table-formula):=SUM(ABOVE),=SUM(LEFT),=AVERAGE(...),=COUNT(...),=MIN(...),=MAX(...),=PRODUCT(...).A1:B3,A1+B1).,500.50,25%,(50)).mathFormulaicon.Table Cell Spacing (
table-cell-spacingandTablePropertiesPatch.cellSpacing):w:tblCellSpacingtwips or universal measure strings ("10pt","0.1cm") on the table node.0ornull.Ribbon UI & i18n:
mathFormulainRIBBON_ICONS.Test Coverage
commands.spec.tscoveringconvert-text-to-table,sort-table,table-formula, andtable-cell-spacing.vp check --fix).