oficina / slides Public

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>
Paul Campbell pushed by paul@keymail.dev 7b435349db8fa8e2bce327bb4ff4bfebb6d2bd75 parent d535d0b
11 files changed, +172 −22
  • fixtures/editor-entry.js +3 −1
  • fixtures/format-bar.mjs +74 −0
  • fixtures/stage.mjs +2 −2
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +3 −2
  • internal/slides/icons/icons.go +5 −0
  • internal/slides/locales/en.toml +8 −0
  • internal/slides/static/{editor.7a9018aeca5c28ef.js => editor.644742c773936cd3.js} +15 −15
  • internal/slides/static/editor.css +46 −0
  • internal/slides/templates/editor.html +14 −0
  • internal/slidestest/browser_test.go +1 −1
fixtures/editor-entry.js

Loading diff…

fixtures/format-bar.mjs

Loading diff…

fixtures/stage.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/icons/icons.go

Loading diff…

internal/slides/locales/en.toml

Loading diff…

internal/slides/static/{editor.7a9018aeca5c28ef.js => editor.644742c773936cd3.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_test.go

Loading diff…