Skip to content

pr-499/zoliszabo/git-gui/open-current-file-v3

...in the default associated app (e.g. in a text editor / IDE).

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 [zoli.szabo@gmail.com]

Zoli Szabó (1):
  git-gui: allow opening currently selected file in default app

 git-gui.sh | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

base-commit: 23cbe427c44645a3ab0449919e55bade5eb264bc

Submitted-As:  Message-ID: pull.499.v3.git.1577721419.gitgitgadget@gmail.com
In-Reply-To:  Message-ID: pull.499.git.1577386915.gitgitgadget@gmail.com
In-Reply-To:  Message-ID: pull.499.v2.git.1577647930.gitgitgadget@gmail.com
Assets 2