# opening an editor from git-gui on a file

3 messages from 2015-11-16 to 2015-11-16. Participants: Adam GROSZER, stefan.naewe@atlas-elektronik.com.
Thread: https://gitlist.dev/t/40805

## Adam GROSZER, 2015-11-16 07:58

Subject: opening an editor from git-gui on a file
Message-ID: <56498CBB.4070709@gmail.com>
URL: https://gitlist.dev/e/56498CBB.4070709%40gmail.com

```
Hi there,

Hopefully sending the question/idea to the right list...

I'm missing the feature to open a (configurable) editor with the 
currently selected file in git gui.

E.g. Looking at

https://cdn.tutsplus.com/net/uploads/legacy/2081_gitwin/git-gui-stage.jpg

I'd like to open my editor with the "request.php".

Any chance to have that? Or do I miss something?

-- 
Best regards,
  Adam GROSZER
--
Quote of the day:
As of next week, passwords will be entered in Morse code.

```

## stefan.naewe@atlas-elektronik.com, 2015-11-16 10:38

Subject: Re: opening an editor from git-gui on a file
Message-ID: <5649B212.30206@atlas-elektronik.com>
URL: https://gitlist.dev/e/5649B212.30206%40atlas-elektronik.com
In-Reply-To: <56498CBB.4070709@gmail.com>

```
Am 16.11.2015 um 08:58 schrieb Adam GROSZER:
> Hi there,
> 
> Hopefully sending the question/idea to the right list...
> 
> I'm missing the feature to open a (configurable) editor with the
> currently selected file in git gui.
> 
> E.g. Looking at
> 
> https://cdn.tutsplus.com/net/uploads/legacy/2081_gitwin/git-gui-stage.jpg
> 
> I'd like to open my editor with the "request.php".
> 
> Any chance to have that? Or do I miss something?

I have this in my .gitconfig:

[guitool "Edit/with GVim"]
        cmd = gvim --remote-tab-silent $FILENAME
        noconsole = yes
        needsfile = yes

Works for me.

HTH,
  Stefan
-- 
----------------------------------------------------------------
/dev/random says: Why did Kamakazie pilots wear helmets???
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF

```

## Adam GROSZER, 2015-11-16 11:10

Subject: Re: opening an editor from git-gui on a file
Message-ID: <5649B9B1.7090203@gmail.com>
URL: https://gitlist.dev/e/5649B9B1.7090203%40gmail.com
In-Reply-To: <5649B212.30206@atlas-elektronik.com>

```
Thank you!

Works fine. Tho I don't find any docs/references for a hotkey...

On 11/16/2015 11:38 AM, stefan.naewe@atlas-elektronik.com wrote:
> Am 16.11.2015 um 08:58 schrieb Adam GROSZER:
>> Hi there,
>>
>> Hopefully sending the question/idea to the right list...
>>
>> I'm missing the feature to open a (configurable) editor with the
>> currently selected file in git gui.
>>
>> E.g. Looking at
>>
>> https://cdn.tutsplus.com/net/uploads/legacy/2081_gitwin/git-gui-stage.jpg
>>
>> I'd like to open my editor with the "request.php".
>>
>> Any chance to have that? Or do I miss something?
>
> I have this in my .gitconfig:
>
> [guitool "Edit/with GVim"]
>          cmd = gvim --remote-tab-silent $FILENAME
>          noconsole = yes
>          needsfile = yes
>
> Works for me.
>
> HTH,
>    Stefan
>

-- 
Best regards,
  Adam GROSZER
--
Quote of the day:
Rudin's Law: In a crisis that forces a choice to be made among 
alternative courses of action, most people will choose the worst one 
possible.

```
