Skip to content

feat(editor): add line-start slash command menu - #261

Merged
ThisIs-Developer merged 2 commits into
ThisIs-Developer:mainfrom
Kechos23:codex/slash-command-menu
Sep 29, 2026
Merged

ThisIs-Developer merged 2 commits into
ThisIs-Developer:mainfrom
Kechos23:codex/slash-command-menu

Conversation

@Kechos23

@Kechos23 Kechos23 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a keyboard-driven slash command menu for Markdown editing. Typing / at the start of a line opens searchable insert commands; typing it after text, indentation, or inside a URL leaves normal editing unchanged.

The menu reuses the existing editor actions and choosers for alerts (all five types), tables, diagrams, and images/media, alongside headings, lists, quotes, code, math, links, and other common blocks. It supports arrow-key selection, Enter, and Escape. The toolbar remains available.

This PR is limited to the editor UI and applies to both the web app and the Neutralino desktop app.

Demo

markdown-viewer-win_x64_6m92zKQnVC

GIF recorded in the Windows desktop app; the sidebar's custom “Workspace (Vault)” label belongs to a separate local prototype and is not part of this PR. The same slash-menu code is included in both web and desktop resource files.

Validation

  • playwright test tests/e2e/slash-command-menu.spec.js --project=chromium — 13 passed
  • Covers line-start activation, filtering/icons, keyboard and mouse selection, chooser handoff, and non-activation mid-line or after indentation.
  • Follow-up regression coverage: IME composition, document switching, Find focus, ARIA listbox wiring, and RTL placement.
  • playwright test tests/e2e/editor.spec.js tests/e2e/tab-split-sidebar-update.spec.js --project=chromium — 25 passed.
  • Firefox/WebKit were not run: their Playwright browser binaries are not installed on this machine.

@vercel

vercel Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Kechos23 is attempting to deploy a commit to the BS Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
markdown-viwer Ready Ready Preview Sep 29, 2026 1:26pm UTC

This comment was marked as outdated.

@Kechos23

Copy link
Copy Markdown
Contributor Author

Please review again, updates have been done based on copilot review

@ThisIs-Developer

Copy link
Copy Markdown
Owner

@Kechos23 I reviewed and tested everything...it's just amazing man!!!!! Really a great idea.

Thanks a lot for contributing such a valuable feature to Markdown Viewer. Really appreciate your effort and contribution!

@ThisIs-Developer
ThisIs-Developer merged commit 4cef15f into ThisIs-Developer:main Sep 29, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7ebb35a5 Deployed Sep 29, 2026 by vercel[bot]
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.

3 participants