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

Re: [PATCH] rev-parse: Allow @{U} as a synonym for @{u}

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 18, 2011, 08:54 UTC
Message-ID
<CACsJy8Dr5q=h-9MhNV0gKtVEn13+DxWwcNn2Prem6-+DyrDmHA@mail.gmail.com>
In-Reply-To
<4E4CBC29.7080703@drmicha.warpmail.net>

On Thu, Aug 18, 2011 at 2:15 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

Show 13 quoted lines
> For a german keyboard layout, you get @{u} from
>
> hold AltGr (Meta)
> press q
> press 7
> release AltGr
> press u
> hold AltGr
> press 0
>
> For me, an improvement would be to have the alias
>
> @{↓}

While it's convenient to type, the output now looks strange. If you do a screencast, or someone is watching you, they may not understand what that syntax is.

Also..
> As a simpler case, a user could tailor to her keyboard layout with
>
> git config revalias.↓ u

We may also have encoding issue here. What if config file is in utf-8, but the console is not?

So I don't we should go this way. There may be a better way to deal with different keyboard layouts.

> Well, this patch is actually specific to a particular keyboard layout!
> It improves things only for a layout where you get @ and { using a shift
> key.

Fully agreed. While it does not help non en-US keyboards, it does not cause any harm (jealousy is not classified as harm to me, rather motivation ;).

-- 
Duy
Previous: Michael J GruberNext: Michael J Gruber
Message 6 of 8 in “can we have @{U} as an alias for @{u}”
  1. Sitaram ChamartyAug 13, 2011
  2. rev-parse: Allow @{U} as a synonym for @{u}Conrad Irwin, Aug 14, 2011
  3. Junio C HamanoAug 17, 2011
  4. Nguyen Thai Ngoc DuyAug 18, 2011
  5. Michael J GruberAug 18, 2011
  6. Nguyen Thai Ngoc DuyAug 18, 2011
  7. Michael J GruberAug 18, 2011
  8. Conrad IrwinAug 19, 2011

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.