git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: call external editor from git-gui?

From
JHJan Hudec <bulb@ucw.cz>
Date
Aug 15, 2007, 18:22 UTC
Message-ID
<20070815182228.GA3419@efreet.light.src>
In-Reply-To
<20070814070000.GA12052@diana.vm.bytemark.co.uk>
On Tue, Aug 14, 2007 at 09:00:00 +0200, Karl Hasselström wrote:
Show 7 quoted lines
> On 2007-08-14 00:55:11 -0400, Shawn O. Pearce wrote:
> > Spawning the user's preferred editor would be a nice way to get some
> > of that.
> 
> Mmm. I wouldn't call it a _nice_ way: popping up an external program
> just to get the right text editing behavior. More like the _only_ way,
> if the user is picky enough.

It might actually have a rather serious twist. Often the editor for git-commit would use the terminal git-commit runs on. But for git-gui you may not have any terminal (running git-gui from context menu of some file manager) and even if you do, the user does not expect it to be used. So the user may -- and quite often will -- want different editors for running from git-gui and git-commit.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Karl HasselströmNext: Uwe Kleine-König
Message 4 of 7 in “call external editor from git-gui?”
  1. Karl HasselströmAug 10, 2007
  2. Shawn O. PearceAug 14, 2007
  3. Karl HasselströmAug 14, 2007
  4. Jan HudecAug 15, 2007
  5. Uwe Kleine-KönigAug 15, 2007
  6. David KastrupAug 15, 2007
  7. Mike RalphsonAug 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.