checkout: add a space between the commit and "..."
PATCH 1/1 checkout: add a space between the commit and "..."
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.
Add a space between the abbreviated commit and the dots, to improve copy and pasteability.
--- builtin/checkout.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
builtin/checkout.c +1 -1
@@ -303,7 +303,7 @@ static void describe_detached_head(char *msg, struct commit *commit)struct pretty_print_context ctx = {0 };parse_commit (commit);pretty_print_commit (CMIT_FMT_ONELINE , commit, &sb, &ctx); -fprintf (stderr,"%s %s... %s\n" , msg, +fprintf (stderr,"%s %s ... %s\n" , msg,find_unique_abbrev (commit->object.sha1,DEFAULT_ABBREV ), sb.buf);strbuf_release (&sb); }
Signature · 1 line
1.7.0.4
Quoted 6 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warningThese 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
-Brandon
Quoted 5 lines · Brandon Casey
Quoted 4 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warning
Quoted 7 lines
Quoted 2 lines
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.
Also, Alt-B appears to work fine in gnome-terminal. I don't have Konsole to try.
-- Aaron
Quoted 9 lines · Aaron Plattner
Quoted 8 lines · Brandon Casey
Quoted 6 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warningThese dots get selected when you double-click on the abbreviated commit hash, which makes it annoying to copy and paste.
Quoted 7 lines
Quoted 4 lines
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.
Quoted 2 lines
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
Quoted 5 lines · Brandon Casey
Quoted 4 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warning
Quoted 7 lines
Quoted 2 lines
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
FWIW, Terminal.app on OS X also does the "right thing".
-Kevin Ballard
Am 9/29/2010 0:40, schrieb Brandon Casey:
Quoted 5 lines · Aaron Plattner
Quoted 4 lines
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warning
Quoted 7 lines
Quoted 2 lines
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, without dragging. 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
That said, I welcome this change, though I'd just have dropped ... or replaced with a colon (preference for the second).
-- Hannes
Quoted 9 lines · Johannes Sixt
Am 9/29/2010 0:40, schrieb Brandon Casey:
Quoted 8 lines · Aaron Plattner
Quoted 6 lines
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warningThese dots get selected when you double-click on the abbreviated commit hash, which makes it annoying to copy and paste.
Quoted 8 lines
Quoted 4 lines
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.
Quoted 1 line
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.
Quoted 5 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
Quoted 9 lines · Brandon Casey
Quoted 6 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warningThese 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".
It's configurable in konsole at least (and not the default).
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 3 lines · Aaron Plattner
Switching to a detached head prints something like
HEAD is now at 9d14017...
dir.c: squelch false uninitialized memory warning
You should also change the message when going from one detached HEAD to another:
$ git co HEAD^ Previous HEAD position was 7bba3dd... Merge branch 'master' into next HEAD is now at df51bf2... Merge branch 'dm/mergetool-vimdiff' into next
Quoted 6 lines
These dots get selected when you double-click on the abbreviated commit hash, which makes it annoying to copy and paste.
Add a space between the abbreviated commit and the dots, to improve copy and pasteability.
I would change it to mimic the output of "git commit", something like:
$ git co HEAD^ [HEAD was at 7bba3dd] Merge branch 'master' into next [HEAD is now at df51bf2] Merge branch 'dm/mergetool-vimdiff' into next
HTH,
Santi