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

[GIT GUI PATCH 0/2] teach git gui to open the configured editor

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Mar 23, 2012, 17:30 UTC
Message-ID
<cover.1332523097.git.hvoigt@hvoigt.net>

This patch series adds a new right click menuitem which allows the user to open the configured editor with the currently viewed file. For some popular editors it is also able to move the cursor close to the watched line.

Please have a look at the parsing of the configured editor commandline. I tested it for most situations. Maybe someone has an idea for a more elegant way to split up between arguments and command.

Currently I substitute all ' with " and then abuse the lindex command for trimming and splitting.

Cheers Heiko
Heiko Voigt (2):
  git-gui: teach _which procedure to work with absolute paths
  git-gui: add "open in editor" diff context menu entry
 git-gui/git-gui.sh |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
-- 
1.7.10.rc1.29.gf035d
Next: Heiko Voigt
Message 1 of 8 in “teach git gui to open the configured editor”
  1. 0/2 teach git gui to open the configured editorHeiko Voigt, Mar 23, 2012
  2. 1/2 git-gui: teach _which procedure to work with absolute pathsHeiko Voigt, Mar 23, 2012
  3. Junio C HamanoMar 23, 2012
  4. Heiko VoigtMar 25, 2012
  5. 2/2 git-gui: add "open in editor" diff context menu entryHeiko Voigt, Mar 23, 2012
  6. Bert WesargMar 23, 2012
  7. Heiko VoigtMar 25, 2012
  8. Bert WesargMar 25, 2012

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.