Remix.run Logo
Show HN: Drag-and-Drop in the Terminal(github.com)
2 points by re-marked 8 hours ago

I built drag-and-drop in the terminal.

You can grab an element with a mouse, drag it, drop it on a target, and drag-select text inside it across wrapped rows.

It's built in Yokai, my Ink fork: a React TUI renderer with pure-TS Yoga layout, diff-based rendering, ScrollBox, alt buffer, mouse events, and draggable/resizable components.

I built Yokai because I kept hitting Ink's limits and needed things Ink couldn't offer for my TUI-based project.

Try it:

pnpm demo:scratchpad # draggable editor window (an opaque sticky note you can drag across the screen and edit)

pnpm demo:drag # drag rectangles into a drop zone (the one in the readme banner)