GNOME Bugzilla – Bug 761699
Opening a file from gitg in other applications is very inconvenient.
Last modified: 2016-08-19 08:56:09 UTC
Short: There should be a way to directly open a file from gitg in other programs. The user currently either has to open a file-browser and navigate to the file the long way or (like with gedit) open the file using the file-open-dialog and also have to navigate to the file, even if it is already open in gitg. This should be easier! There are two functions i would like to see implemented in gitg: - There should be a way to open a file from gitg directly in gedit (Or whichever editor the user uses). - It should be possible to get the (absolute and/or relative to workspace) file-path of a file from the git history to be used in other applications (like bash, ghex or gimp).
In the commit view, you can already open a file in an editor by activating "Edit" from the context menu of the file. This does not really work in general for the history view, since commits don't necessarily reflect the workspace. I suppose we can still offer the action even if the file might does not exist (different branch, different checkout, etc.). I agree that copying the file path can be quite useful.
Added open file, open containing folder and copy file path as context menu items for files in the diff view