emad-elsaid / hydra

π“†š C implementation of the famous Emacs Hydra package to be used in terminal. Groups commands and assign each command a key binding
https://hydra.emadelsaid.com/
GNU General Public License v3.0
20 stars 3 forks source link
cli linux shell

π“†š Hydra

a C implementation of Emacs Hydra package to be used in terminal.

asciicast

What is π“†š Hydra?

Spacemacs for example is an emacs configuration centered around π“†š Hydra commands, with all user commands grouped as trees bound in a mnemonic way. for example:

Binding π“†š Hydra to space key in your terminal means pressing space will make your terminal behave similar to spacemacs if you executed the output with eval. this repo has a bash script hydra-completion.bash which achieve this binding.

Other usages

Install

π“†š Hydra file

a simple example can be as follow

g,Git,
gs,Status,git status

Running

Tests

To run tests execute

make run-test