I think there are many bash users here. In bash, a forward search of input histories can be done by Ctrl+r, which let you edit your previous similar input and reuse it. Is there a similar function in Mathematica.
Similarly, in Matlab, there is a history panel to access the history commands, and the command can also be autocompleted by Up and Down.
All these completions are able to search through history sessions, not only the current session.
Following are related questions I find: