Imagine you issued a find command and now you want to use one line of the resulting output as an argument.$ find ..fileAfileB$ vi <CURSOR>   # now do what to achive:$ vi fileB      Current workaround:Double click on fileB (selection is extended automatically) and press middle mouse button (paste on X). Works but uses the mouse.Possible solutions:Tab completion  Works in most shells but only for files.Hook the shell  Like scm_breeze; This is pretty much what I seek, but it's limited to git.Use screen  Pretty close, but still many key strokes. And it needs screen....store output in bash variable (GMaster)  That would only work if the find command outputs one line. How do I access the second line like in the example?pipe command to editor (jasonwryan)  Works but executes the command twice. That may be time consuming or not even possible.use emacs Dynamic Abbrev Expansion (Arkadiusz Drabczyk, Michael Vehrs)  Thats what I am looking for but I would not like to start with emacs.Solution for me:Dynamic Abbrev Expansion. Now I have the name of this feature I was looking for. I will start a new question about how to get his dabbrev-expand in other software's:https://unix.stackexchange.com/questions/281298/list-of-sofwares-inspired-by-emacs-dabbrev-expand.  Vision of the best solution for me:Something like the hint mode from vimperator or easymotion in Vim, to yank text from the output of the current terminal.
How can I use the output of a command without using the mouse?
shell;terminal;zsh;gnu screen