git-gui: allow opening currently selected file in default app
commit786f4d24057b13184aaff8a5fa2d82a9c0180783
authorZoli Szabó <zoli.szabo@gmail.com>
Mon, 30 Dec 2019 15:56:59 +0000 (30 15:56 +0000)
committerPratyush Yadav <me@yadavpratyush.com>
Mon, 30 Dec 2019 19:37:53 +0000 (31 01:07 +0530)
treec6d55a57b692d88df3a51a4b95940fdce829337b
parent23cbe427c44645a3ab0449919e55bade5eb264bc
git-gui: allow opening currently selected file in default app

Many times there's the need to quickly open a source file (the one you're
looking at in Git GUI) in the predefined text editor / IDE. Of course,
the file can be searched for in your preferred file manager or directly
in the text editor, but having the option to directly open the current
file from Git GUI would be just faster. This change enables just that by:
 - clicking the diff header path (which is now highlighted as a hyperlink)
 - or diff header path context menu -> Open

Note: executable files will be run and not opened for editing.

Signed-off-by: Zoli Szabó <zoli.szabo@gmail.com>
Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
git-gui.sh