feat(app-core): table cells support the same inline formatting shortcuts as the editor - #603
Open
junereycasuga wants to merge 1 commit into
Open
feat(app-core): table cells support the same inline formatting shortcuts as the editor#603junereycasuga wants to merge 1 commit into
junereycasuga wants to merge 1 commit into
Conversation
…uts as the editor
junereycasuga
force-pushed
the
feat/table-inline-format
branch
from
August 18, 2026 13:51
eecbb69 to
e0a6e26
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Table cells now support the same inline formatting shortcuts as the main editor:
Mod+B→ bold**Mod+I→ italic*Mod+E→ code`Mod+K→ link[...](...)Shift+Mod+S→ strikethrough~~Shift+Mod+H→ highlight==Shift+Mod+M→ math$The shortcuts work in both normal contenteditable cells and Vim visual-mode cells.
How it works
cm-format.tsnow exposes pure-text helperstoggleWrapEditandwrapLinkEdit, which compute the same wrap/unwrap logic used by the editor.cm-table.tsapplies those helpers directly to the cell source and updates the cell caret.VimNavnow returns early when focus is inside a.cm-table-widget, so the global editor-level formatting chords don’t steal the shortcut from the cell.Tests
Added coverage for all seven shortcuts in table cells, plus a Vim visual-selection +
Mod+Bcase.Verification
npx vitest run src/lib/cm-format.test.ts src/lib/cm-table.test.ts— 78/78 tests passnpx tsc --noEmit -p tsconfig.json— clean