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.

github.com/robert-figura/req

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.

@RefurioAnachro I would never think you're nuts.

I can't stand competition.

Sign in to participate in the conversation
mastodon.cloud

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