Somebody please extend my shell's (zsh right now) tab completion so that it searches the following and expands as appropriate:
Strings visible in any visible terminals
Host/path names for any visible terminals
I can't count the number of times I've wanted to copy a file from the current directory in one terminal to the current directory in another terminal, mostly on remote machines.
I'd love to be able to type: 'scp myfile.py remotehost:<tab>' and have whatever directories I have active terminals on included in the list of possibilities that I can cycle through.
No idea how one would go about doing this...The shell needs to communicate with the terminal emulator, so maybe an extension of the terminal-title-setting mechanism would work?