req is a text snippet router: given a string, say from your X11 cut buffer, it will classify and extract information contents, and merge that with context information. You write rule files ("ports") in awk to match against this data and to generate a menu of available shell commands.

For @dredmorbius . Feel free to bug me about anything.


Lots of use cases, @dredmorbius! I've replaced xdg-open with it, bound it to hotkeys to run it on the cut buffer, and pipe all 'open-with' functions through it, have it as mimetype handler, and in $EDITOR and friends.

It suggests programs to open files or urls, evaluate math expressions, runs a calendar, opens search services, runs port scanners or looks up domains, ...

Any single argument you'd give to a command and bothered to write a rule for. It's so versatile, I fear you think I'm nuts.

Sign in to participate in the conversation

Everyone is welcome as long as you follow our code of conduct! Thank you. is maintained by Sujitech, LLC.