Live data from Hacker News

Show HN: Zsweep – Play Minesweeper using only Vim motions

zsweep.com

31–34 of 34 posts

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#32
post #18

It is common in traditional roguelikes to support vi keys as an alternative to arrow keys. I use that all the time when playing Brogue. Have a great vi keys muscle memory now thanks to that, but I use Emacs and only rarely vi, so it's not doing me much good.

Use EViL mode

Exactly!

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#33

It is common in traditional roguelikes to support vi keys as an alternative to arrow keys. I use that all the time when playing Brogue. Have a great vi keys muscle memory now thanks to that, but I use Emacs and only rarely vi, so it's not doing me much good.

I will also try to implement emacs key bindings for zsweep.

There will a button to toggle between vi or emacs motions inside the setting

Re: Show HN: Zsweep – Play Minesweeper using only Vim motions

#34

For reference, here are the supported motions: case '0': return { type: 'ZERO' }; case '_': return { type: 'START_ROW' }; // --- SEARCH --- case '/': return { type: 'START_SEARCH' }; case 'n': return { type: 'NEXT_MATCH' }; case 'N': return { type: 'PREV_MATCH' }; // --- MOVEMENT (WASD Removed) --- case 'h': case 'ArrowLeft': return { type: 'MOVE_CURSOR', dx: -1, dy: 0 }; case 'j': case 'ArrowDown': return { type: 'M…

H/L/M - would be helpful (High/Low/Medium) Escape as finish a game is pretty annoying (that's what you press after 'i') f1/2/3.. would be nice to - go to the next number in the row open all unflagged around current cell would be useful
Post reply on HN