To install this package, run in Emacs:
M-x package-install RET shellcop RET
shellcop is already uploaded to http://melpa.org. The best way to install is Emacs package manager.
Insert below code into
(add-hook 'shell-mode-hook 'shellcop-start)
Run any command line program in
shell-mode. Move the focus inside the output of the program.
Enter key or
M-x shellcop-goto-location-near-point. The file path and line number information is extracted and you can open corresponding file. The cursor is not required to be on the same line containing file path.
shellcop-sub-window-has-error-functionreturn nil in all sub-windows, run
shellcop-erase-buffer to erase current buffer in
message-buffer-mode. Or else it erases content in message buffer.
M-x shellcop-search-in-shell-buffer-of-other-window. Use current word or selected text to search in shell buffer of the other window.
Report bug at https://github.com/redguardtoo/shellcop.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.