Slides editor: a format bar — Bold, Italic, Code, Highlight, Link as buttons
Formatting was keyboard-only: nothing on screen said a word could be made bold. The bar beside the switcher runs the keymap's own commands (text-keys.mjs) on the text the cursor is in, a slide block or the notes, and each button is pressed while the selection carries its mark (fixtures/format-bar.mjs: a plugin on every view the stage binds tells it about focus and state). Buttons take no focus on press, so the selection they act on is the one made. The notes views now take plugins of their own (stage.mjs notesPlugins), without the font gate's. Also: the shortcuts dialog lists Code and Highlight; the delete-to-empty browser test presses the inspector's Delete slide (the Slide menu's is first in the page now).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 files changed,
+172
−22
fixtures/editor-entry.js+3 −1fixtures/format-bar.mjs+74 −0fixtures/stage.mjs+2 −2internal/slides/credits/assets.json+1 −1internal/slides/editor.go+3 −2internal/slides/icons/icons.go+5 −0internal/slides/locales/en.toml+8 −0internal/slides/static/{editor.7a9018aeca5c28ef.js => editor.644742c773936cd3.js}+15 −15internal/slides/static/editor.css+46 −0internal/slides/templates/editor.html+14 −0internal/slidestest/browser_test.go+1 −1
Intent
fixtures/editor-entry.jsLoading diff…
fixtures/format-bar.mjsLoading diff…
fixtures/stage.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/icons/icons.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/static/{editor.7a9018aeca5c28ef.js => editor.644742c773936cd3.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_test.goLoading diff…