Here is your cool #emacs trick of the day.
You are probably using #avy, right? https://github.com/abo-abo/avy
You've bound one of the avy-goto- functions, right?
You've probably read this article, right? https://karthinks.com/software/avy-can-do-anything/
Try this. Open a Terminal in Emacs, and type a command that outputs some data other than a filename. Say `uuidgen`.
Now type: `echo ` and then launch your avy-goto function of choice, and select the first letter or two of your UUID (in this example). Now type `y` and then the latter(s) in front of the UUID.
Amazing. No need to use the mouse to select the text. No need to move the cursor around. THAT is the most compelling reason for running your terminals _inside_ your Emacs.