Factor out the repl-eval and repl-stop event dispatching code into replEval() and replStop() helper functions that are shared between Vim and Helix keybindings. This refactoring: - Reduces code duplication between Vim :w/:q and Helix :w/:q commands - Makes the keybinding handlers more maintainable - Properly implements Helix commands using the commands.of() API - Ensures consistent behavior across both keybinding modes The Helix keybindings now properly integrate with the REPL using the same event dispatch mechanism as Vim, dispatching custom repl-evaluate and repl-stop events with fallbacks to keyboard events. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| themes | ||
| autocomplete.mjs | ||
| basicSetup.mjs | ||
| codemirror.mjs | ||
| flash.mjs | ||
| highlight.mjs | ||
| html.mjs | ||
| index.mjs | ||
| keybindings.mjs | ||
| package.json | ||
| README.md | ||
| slider.mjs | ||
| themes.mjs | ||
| tooltip.mjs | ||
| vite.config.js | ||
| widget.mjs | ||
@strudel/codemirror
This package contains helpers and extensions to use codemirror6. See vite-vanilla-repl-cm6 as an example of using it.