sveltejs / svelte.dev

The Svelte omnisite
https://svelte.dev
111 stars 70 forks source link

Vim mode #570

Closed uglyreptile closed 7 hours ago

uglyreptile commented 1 month ago

Any plans to restore vim mode?

Rich-Harris commented 1 month ago

yes, just a matter of getting round to it — PRs welcome in the meantime! here's the commented out code dragged over from a much earlier incarnation of the editor — it may be possible to basically just uncomment it (and change extensions to default_extensions, and also wrap it in an if (browser) block), though I'm not certain if the top level await will cause issues with bundling

https://github.com/sveltejs/svelte.dev/blob/f88b6979a24930c10bc828ab95f4849f0d2090f9/packages/editor/src/lib/Workspace.svelte.ts#L61-L75