Man I love the Julia community. I feel like I have a magic lamp. And also the Genie has a time machine because what I wish for usually already has been made and is even in the registry!
I wonder though, might this belong in InteractiveUtils.jl? I can also think of a lot of enhancements that could really help with REPL productivity. Mostly some of the creature comforts I recall from IPython.
Somewhat related: I just realized that OhMyREPL has enhanced history search which is pretty sweet, though it doesn’t AFAICT have a way to narrow to just the current session. I opened a feature request issue for that: https://github.com/KristofferC/OhMyREPL.jl/issues/238
In Windows with the *.jl file extension registered for opening with VS Code, adding the following to startup.jl will open the REPL history in a VS Code tab, that updates automatically as more commands are typed: