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, 00:45 UTC
Message-ID
<AANLkTikXEfBdd6sDS9iJ0ULN-jihha+U4JZxRFG+SRFG@mail.gmail.com>
In-Reply-To
<20100928233832.GA20224@soprano.nvidia.com>
On Tue, Sep 28, 2010 at 6:38 PM, Aaron Plattner <aplattner@nvidia.com> wrote:
Show 16 quoted lines
> On Tue, Sep 28, 2010 at 03:40:11PM -0700, Brandon Casey wrote:
>> 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
>
> How is your xterm configured?  On my stock Ubuntu 9.10 system, it doesn't
> do the "right thing"... the dots are selected.  Gvim gets it right.

Nothing special, and nothing that would affect the double-click selection functionality as far as I know. Though I don't know what controls that.

   $ cat ~/.Xresources
   XTerm*geometry: 80x33
   XTerm*faceName: Liberation Mono
   XTerm*faceSize: 9
   XTerm*foreground: green
   XTerm*background: black
Centos5.X and Fedora11.

I hesitate to ask, since you /seem/ to understand that xterm, gnome-terminal, and konsole are three different programs, but I can also imagine there are people who may use the word "xterm" in a generic way to refer to all X11-based terminal programs. So, no offense, but are you sure you're running the program called "xterm"? If the answer is yes, then please ignore the rest of this paragraph. If you are just clicking on the terminal icon to pop-up a terminal, then try typing "xterm" into that terminal. The xterm program may not even be installed by default on Ubuntu anymore (I don't know). But I'm thinking it probably is, and that gvim may merely be vim run inside an xterm, and that's why the selection is working properly.

> Also, Alt-B appears to work fine in gnome-terminal.  I don't have Konsole
> to try.

Ok, they recently got rid of the Tab(with an underlined 'b') menu item. Try alt-f to go forward by a word then. That's still intercepted by gnome.

-Brandon
Previous: Aaron PlattnerNext: Johannes Sixt
Message 5 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.