I would find it very convenient if it would be possible to auto-complete using words from what I just seen on screen in terminal with TAB. Preferably in zsh. Is there any way to manage it?e.g.$ git log...$ <prefix> <TAB> // now cycle through whatever from git log output matches my prefix
Autocomplete in shell using last N bytes of stdout
terminal;zsh;autocomplete
If you are willing to use iTerm2 instead of whatever terminal you are currently using, it includes this feature.  It requires macOS to run the terminal on, and for you to enable iTerm2 shell integration on the hosts(s) where you want this. (This basically adds some hooks for your shell to communicate with iTerm2.)https://www.iterm2.com/features.html#autocomplete has a screen shot which shows the output of tail being presented as the top completion candidate for Command-;The iTerm2 project is open source so I imagine the guts of this feature could be ripped out and included or reimplemented in other environments.