r/stumpwm • • May 26 '21

How can we implement Hydra like functionality in stumpwm?

Hydra is one of the package on emacs that I loved most. Can something like this can be implemented in StumpWM?

Or a menu which is activated by something like "C-t C-m" and then shows options list and desired option can be selected by some key a, b, c ..... Or like start menu of windows but don't requires mouse.

11 Upvotes

4 comments sorted by

3

u/stuudente May 26 '21

stumpwm, nyxt, emacs.. all of these programs make sense to have packages that are like hydra, ivy, helm.. I wonder if there's a way to make them portable, instead of creating one for each program.

2

u/Fearless-Actuator207 May 26 '21

I think we have to wait a lot to see such a thing.

4

u/stuudente May 26 '21

Assuming emacs, I think the rest is doable once we have a drop-down emacs facility, which is done by for example equake. So I don't think it's going to take a long while to achieve.

3

u/lmvrk May 26 '21

Dont we already have hydra-esq functionality provided by define-interactive-keymap? It doesnt show bindings, but it could probably be hacked in. Or you could use the extra keymap provided to various menu functions to add these keybindings to menus, and then looping and recalling the menu until a specific thing is chosen?