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

Re: [REGRESSION] git-gui

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 4, 2008, 01:27 UTC
Message-ID
<20080404012723.GL10274@spearce.org>
In-Reply-To
<57518fd10804031615m5c299df6hf31de3c689e16521@mail.gmail.com>
Jonathan del Strother <maillist@steelskies.com> wrote:
Show 11 quoted lines
> On Thu, Apr 3, 2008 at 10:04 PM, Michele Ballabio
> <barra_cuda@katamail.com> wrote:
> > On Thursday 03 April 2008, Jonathan del Strother wrote:
> >  > On Thu, Apr 3, 2008 at 2:43 PM, André Goddard Rosa <andre_rosa@lge.com> wrote:
> >  > >
> >  > >  # git gui
> >  > >  Error in startup script: bad event type or keysym "["
> >  > >     while executing
> >  > >  "bind $ui_comm <$M1B-Key-\[> {show_less_context;break}"
> >  >
> >  > Doh, I broke git :(

You and me both Jonathan. I tested it on both Mac OS X and Win32, and on Tcl/Tk 8.4.1, 8.4.10, 8.4.15, and 8.5.0. Never ran into this failure. So the original poster must be running 8.4.0, and 8.4.0 must not support this binding. Added in 8.4.1? *sigh*

Show 10 quoted lines
> >  These changes should help (haven't tried):
> >         \[ -> bracketleft
> >         \] -> bracketright
> >  but some European keyboards do not have easy access to brackets, so
> >  other keys would be preferable (comma and period, for example, or 1 and 2).
> 
> Anyone else got any opinions on an appropriate shortcut?  How about
> '=' and '-' (+ and - without the shift), or are those not necessarily
> together either?  (Are there really layouts where '[' and ']' aren't
> next to each other?)

I don't know, [ and ] seem reasonable to me. Git is mostly a source code control system. A lot of languages use [ and ] as part of their syntax. If you are typing on a keyboard that is difficult to access these keys on, you are probably already used to contorting your fingers. :-|

I wrote up a patch today based on Michele's suggested change. It works everywhere I can test, but I don't have an 8.4.0 installation like the original poster.

Unless someone posts a patch to change the keys away from [ and ] I say leave them as-is. But I'm willing to entertain a change if someone who cares writes a patch for it.

-- 
Shawn.
Previous: Jonathan del StrotherNext: Shawn O. Pearce
Message 6 of 14 in “[REGRESSION] git-gui”
  1. André Goddard RosaApr 3, 2008
  2. Jonathan del StrotherApr 3, 2008
  3. RES: [REGRESSION] git-guiAndré Goddard Rosa, Apr 3, 2008
  4. Michele BallabioApr 3, 2008
  5. Jonathan del StrotherApr 3, 2008
  6. Shawn O. PearceApr 4, 2008
  7. Shawn O. PearceApr 4, 2008
  8. Marco RoelandApr 4, 2008
  9. RES: [REGRESSION] git-guiAndré Goddard Rosa, Apr 4, 2008
  10. Michele BallabioApr 4, 2008
  11. Shawn O. PearceApr 5, 2008
  12. David KågedalApr 7, 2008
  13. Teemu LikonenApr 7, 2008
  14. Shawn O. PearceApr 8, 2008

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.