Skip to content

feat(editor): add productivity keyboard shortcuts - #238

Merged
ThisIs-Developer merged 2 commits into
mainfrom
agent/markdown-format-shortcuts
Aug 9, 2026
Merged

feat(editor): add productivity keyboard shortcuts#238
ThisIs-Developer merged 2 commits into
mainfrom
agent/markdown-format-shortcuts

Conversation

@ThisIs-Developer

@ThisIs-Developer ThisIs-Developer commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What changed

  • Add Typora-style Markdown editing shortcuts for bold, italic, strikethrough, inline code, links, clear formatting, paragraph/headings, code blocks, blockquotes, and ordered/unordered lists.
  • Add Obsidian-style productivity navigation for Quick Open, Edit/Preview, Explorer, import, settings, Markdown copy, fullscreen, new/close/switch document, and find-result navigation.
  • Support both the primary editor and the secondary two-document editor while respecting read-only documents.
  • Make toolbar strikethrough and inline-code actions true toggles.
  • Fix Shift+Tab outdent and prevent Ctrl/Cmd+Shift+S from also triggering Markdown export.
  • Expose shortcuts in tooltips, aria-keyshortcuts, Help, Features, and the Usage Guide.
  • Keep browser-reserved tab and heading shortcuts desktop-only where appropriate.

Why

Issue #237 requested keyboard-first Markdown formatting. This expands that fix into a consistent shortcut system based on familiar Typora and Obsidian conventions, while mapping only commands that have a real equivalent in Markdown Viewer.

User impact

The app now documents 35 shortcut categories covering 41 individual editing and application actions. Users can format selections, navigate documents, open app surfaces, and control the editor without leaving the keyboard.

Validation

  • node --check script.js
  • npm.cmd run build — passed
  • Targeted Playwright shortcut tests — 3 passed
  • Full editor regression file — 9 passed; 1 known local tab-count fixture failure because an extra stored/release tab is present at startup

Closes #237

@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview Aug 9, 2026 4:46pm

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 40889c7
Status: ✅  Deploy successful!
Preview URL: https://23dabbe7.markdownviewer.pages.dev
Branch Preview URL: https://agent-markdown-format-shortc.markdownviewer.pages.dev

View logs

@ThisIs-Developer ThisIs-Developer changed the title feat(editor): add bold and italic keyboard shortcuts feat(editor): add productivity keyboard shortcuts Aug 9, 2026
@ThisIs-Developer
ThisIs-Developer marked this pull request as ready for review August 9, 2026 16:51
@ThisIs-Developer
ThisIs-Developer merged commit c8de9b4 into main Aug 9, 2026
5 checks passed
@ThisIs-Developer
ThisIs-Developer deleted the agent/markdown-format-shortcuts branch August 9, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Keyboard Shortcuts for Markdown Formatting

1 participant