emacs hydra

Created: Aug 29, 2021Published: Dec 05, 2022Last modified: Apr 05, 2023
No tags
Word count: 40Backlinks: 4

Hydra (an emacs library) provides an interface for performant chains of keybindings.

Comparable to transient. Sort of comparable to which-key

compared to which-key

Both hydras and transients can be used as simple command dispatchers. Used like this they are similar to regular prefix commands and prefix keys, except that the available commands are shown in the popup buffer.

(Another package that does this is which-key. It does so automatically for any incomplete key sequence. The advantage of that approach is that no additional work is necessary; the disadvantage is that the available commands are not organized semantically.)

hydras/transients let you organize the next-key popup (semantically or otherwise)


Backlinks

A babashka tasks porcelain inside emacs

Game UI, Game Menus.

I want to reduce the time spent on menu screens, and focus more on letting the player be in control at all times.

I think building emacs-like chord-y, hydra -like menus could allow for natural, more flow -based game UI interactions.

If it's too much for the players, it might still be worth it to include as part of the level-design or level editor uis.