Editor: bash
Just mark the command with the mouse, then press Ctrl+Shift+C, then Ctrl+G and you have it in memory.
Editor: tmux
Not sure whether I understand it right. I do not see a problem, and you give the answer yourself. That is how it seems, at least, when taking tmux as the editor. (not tested, but I guess that Alacritty can do that as well)
Copy
Go into Ctrl+B+[ mode to be free to roam around in any field of the console. Press Space as the starting marker of the "recursive search text". Press Enter at the end marker. If you set mouse on in your config, you can also use the mouse to Shift+mark and Copy with Ctrl+Shift+C, or you can just mark with the mouse and by this, copy to the tmux clipboard.
Cancel without losing console text
Then go back to any console text that you had at the start with Ctrl+g as you write it as well: anything you had written in the console is still there.
Paste
And you now can paste the text of the recursive search on top of that, check middle mouse click, Ctrl+Shift+V, or look up other ways.