Skip to content

git-gui: allow opening currently selected file

Zoli Szabó via GitGitGadget git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 2 repliesIn review
  2. v21 patch 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1git-gui: allow opening currently selected file in default appgit-gui.sh+24 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/1] git-gui: allow opening currently selected file

...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.

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
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-499%2Fzoliszabo%2Fgit-gui%2Fopen-current-file-v3
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-499/zoliszabo/git-gui/open-current-file-v3
Pull-Request: https://github.com/gitgitgadget/git/pull/499

Range-diff vs v2:

1: a6fde256f8 ! 1: 1b2363be72 git-gui: allow opening currently selected file
@@ -1,8 +1,6 @@
Author: Zoli Szabó <[email protected]>

- git-gui: allow opening currently selected file
-
- ...in the default associated app (e.g. in a text editor / IDE).
+ 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,

Signature · 1 line
gitgitgadget