TL;DR: an upgraded ctrl-r where history results make sense for what you’re working on right now.

Source: cantino/mcfly: Fly through your shell history. Great Scott!

Looks interesting, but possibly a bit more tedious than it should be to set up, especially in an automated way.