Skip to content

Add slash command palette#9

Open
jondkinney wants to merge 2 commits intomainfrom
slash-command-palette
Open

Add slash command palette#9
jondkinney wants to merge 2 commits intomainfrom
slash-command-palette

Conversation

@jondkinney
Copy link
Copy Markdown
Member

Summary

  • Type / at start of line to trigger command palette
  • Two sections: "Basic blocks" (insert below) and "Turn into" (convert)
  • Fuzzy search via fuzzysort for quick filtering
  • Notion-style design with keyboard navigation
  • Markdown shortcuts: --- for HR, | and " for blockquote
  • Viewport-aware positioning with flip-above and scroll anchoring

Test plan

  • Type / at start of empty line — palette appears
  • Type to filter — fuzzy matching works
  • Arrow keys + Enter to select command
  • "Basic blocks" insert below current block
  • "Turn into" converts current block
  • Menu flips above cursor near viewport bottom
  • Type --- to insert horizontal rule

🤖 Generated with Claude Code

@jondkinney jondkinney force-pushed the slash-command-palette branch 3 times, most recently from 015f15e to eb74b88 Compare March 27, 2026 20:49
- Type / at start of line to open command palette
- Sections: "Basic blocks" (insert below) and "Turn into" (convert)
- Fuzzy search via fuzzysort dependency
- Markdown shortcuts: --- for HR, | and " for blockquote
- Viewport-aware positioning with flip-above and scroll anchoring
- Add browser globals to eslint config

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jondkinney jondkinney force-pushed the slash-command-palette branch from eb74b88 to 5fbb408 Compare March 27, 2026 21:08
WebKit/Safari does not support requestIdleCallback. Optional chaining
(requestIdleCallback?.()) does not prevent the ReferenceError because
it only guards property access on objects, not undeclared variables.
Use typeof check instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant