Skip to content

fix: expose synthesis button in plugin + tappable hint buttons#4

Merged
Dev-020 merged 2 commits into
mainfrom
feat/synthesis-document-plan
May 11, 2026
Merged

fix: expose synthesis button in plugin + tappable hint buttons#4
Dev-020 merged 2 commits into
mainfrom
feat/synthesis-document-plan

Conversation

@Dev-020
Copy link
Copy Markdown
Owner

@Dev-020 Dev-020 commented May 11, 2026

Summary

Two small fixes that didn't make it into PR #3:

  • Plugin synthesis button: pluginOnly: false was hiding the Synthesis Document action from the plugin's Ctrl+K command palette. Flipped to pluginOnly: true so it shows in both web-app and plugin.
  • Tappable Undo / Commands hints: The bottom-right keyboard shortcut indicators were decorative divs — no click handler, no use on touch screens. Converted to buttons so tablet users can tap to undo or open the command palette without needing a keyboard.

Files changed

File Change
components/vim-input.tsx pluginOnly fix + convert hint divs to tappable buttons with onUndo? prop
app/page.tsx Pass onUndo={undo} to VimInput

🤖 Generated with Claude Code

Dev-020 and others added 2 commits May 11, 2026 23:16
pluginOnly: false hid the action from the plugin's Ctrl+K palette.
Now that the plugin port is complete, flip to pluginOnly: true so it
appears in both the web-app and plugin command palettes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The bottom-right keyboard shortcut hints were purely decorative divs.
On tablets and touch screens there are no keyboard shortcuts, so they
were the only discoverable entry point but had no action.

- Undo button: calls onUndo() prop (wired to the existing undo()
  callback in page.tsx) — same behaviour as Cmd/Ctrl+Z
- Commands button: calls setIsCommandKOpen(true) — opens the command
  palette exactly as Cmd/Ctrl+K would
- Both get a subtle hover/active style to signal they are interactive
- onUndo? is optional so the plugin and any other consumer of VimInput
  that doesn't pass it just renders a no-op tap

Co-Authored-By: Claude Sonnet 4.6 <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