For a second I thought "isn't that already in bash!?" And then I realized what it does... Gosh, that's actually really useful (I wish I knew this earlier, now I need to do it in zsh).
I'm not 100% sure if it's in the default configuration or if it's something I turned on, but my zsh has the same 'search up/down based on the beginning of the line' style behavior.