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

Re: [PATCH] checkout: add a space between the commit and "..."

From
Brandon Casey <drafnel@gmail.com>
Date
Sep 29, 2010, 13:13 UTC
Message-ID
<AANLkTimRhvsozBJ+8Jup75nRgzoHAmCQ3_96qLPU_b0B@mail.gmail.com>
In-Reply-To
<4CA2E8C7.4040100@viscovery.net>
On Wed, Sep 29, 2010 at 2:20 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 17 quoted lines
> Am 9/29/2010 0:40, schrieb Brandon Casey:
>> On 09/28/2010 05:23 PM, Aaron Plattner wrote:
>>> Switching to a detached head prints something like
>>>
>>>   HEAD is now at 9d14017... dir.c: squelch false uninitialized memory warning
>>>
>>> These dots get selected when you double-click on the abbreviated
>>> commit hash, which makes it annoying to copy and paste.
>>
>> This must be another gnome-terminal/konsole "innovation".
>>
>> xterm still does the "right thing"(tm) _and_ it doesn't eat my
>> alt keystrokes like alt-b to move the cursor back a word. /rant
>
> You must be running an xterm with settings from the stone ages. I had the
> impression that modern installations have the selection configured such
> that a file path can be selected with a mere double-click,
Fedora 11 (and hopefully later versions), default settings.
   $ appres XTerm | grep charClass; echo nada
   nada
It's probably an ubuntu thing.
> without dragging.

Just right-click to extend the selection. It's a lot easier than reducing an over-aggressive selection (read: impossible). Try using right-click to adjust a double-click selection with and without the charClass setting that you mention below.

Show 5 quoted lines
> For this, the dot must be in the same class as letters and
> digits. Just for reference (I don't know how to read this):
>
> $ appres XTerm | grep charClass
> *charClass:     33:48,37:48,43:48,45-47:48,64:48,126:48,95:48
Thanks, now I know what to disable when I use ubuntu.
   $ echo charClass | xrdb -remove
   # Then start a new xterm
-Brandon
Previous: Johannes SixtNext: Andreas Schwab
Message 7 of 9 in “checkout: add a space between the commit and "..."”
  1. checkout: add a space between the commit and "..."Aaron Plattner, Sep 28, 2010
  2. Brandon CaseySep 28, 2010
  3. Kevin BallardSep 28, 2010
  4. Aaron PlattnerSep 28, 2010
  5. Brandon CaseySep 29, 2010
  6. Johannes SixtSep 29, 2010
  7. Brandon CaseySep 29, 2010
  8. Andreas SchwabSep 29, 2010
  9. Santi BéjarSep 29, 2010

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.