Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-02-05 Thread Jacob Keller
On Sun, Feb 5, 2017 at 2:39 AM, Duy Nguyen wrote: > On Sat, Jan 21, 2017 at 2:16 AM, Jacob Keller wrote: >> I would be interested in the code for this.. I'm curious if I can >> adapt it to my use of tmux. > > I stumbled upon this which does mention about git SHA-1. Maybe you'll > find it useful.

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-02-05 Thread Duy Nguyen
On Sat, Jan 21, 2017 at 2:16 AM, Jacob Keller wrote: > I would be interested in the code for this.. I'm curious if I can > adapt it to my use of tmux. I stumbled upon this which does mention about git SHA-1. Maybe you'll find it useful. Haven't tried it out though. https://github.com/morantron/t

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-21 Thread Jeff King
On Sat, Jan 21, 2017 at 07:44:05PM +0700, Duy Nguyen wrote: > You just gave me a reason to rebuild urxvt with perl support. It > solves my problem with SHA-1 nicely (and fixes another problem with > very large counter in my approach, when you scroll git-log further > down, because I can't know wha

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-21 Thread Duy Nguyen
On Sat, Jan 21, 2017 at 2:25 AM, Jeff King wrote: > On Fri, Jan 20, 2017 at 11:16:15AM -0800, Jacob Keller wrote: > >> > I recently taught urxvt to recognize sha1s and grab them via keyboard >> > hints, and I'm finding it quite useful. Here's what it looks like if >> > you're interested: >> > >> >

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Jeff King
On Fri, Jan 20, 2017 at 11:16:15AM -0800, Jacob Keller wrote: > > I recently taught urxvt to recognize sha1s and grab them via keyboard > > hints, and I'm finding it quite useful. Here's what it looks like if > > you're interested: > > > > http://peff.net/git-hints.gif > > > > The hints techniqu

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Jacob Keller
On Fri, Jan 20, 2017 at 8:09 AM, Jeff King wrote: > On Fri, Jan 20, 2017 at 05:22:49PM +0700, Nguyễn Thái Ngọc Duy wrote: > >> OK This patch is horrible. Though the idea is cool and I've found it >> very useful. So here it is. Perhaps the idea may be revised a bit >> that's more suitable for more

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Junio C Hamano
Jeff King writes: > Not really a comment on your patch itself, but I think a lot of people > solve this at a higher level, either in their terminal or via a tool > like tmux. > > I recently taught urxvt to recognize sha1s and grab them via keyboard > hints, and I'm finding it quite useful. Here's

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Jeff King
On Fri, Jan 20, 2017 at 05:22:49PM +0700, Nguyễn Thái Ngọc Duy wrote: > OK This patch is horrible. Though the idea is cool and I've found it > very useful. So here it is. Perhaps the idea may be revised a bit > that's more suitable for more than one user. > > The problem is old, SHA-1 name is not

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Johannes Schindelin
Hi Duy, On Fri, 20 Jan 2017, Duy Nguyen wrote: > On Fri, Jan 20, 2017 at 5:46 PM, Johannes Schindelin > wrote: > > Why not introduce a flag to "git log" that shows a keyboard-friendly name > > similar to what `git name-rev` would have said, except that the name would > > be generated using the n

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Duy Nguyen
On Fri, Jan 20, 2017 at 5:46 PM, Johannes Schindelin wrote: > Why not introduce a flag to "git log" that shows a keyboard-friendly name > similar to what `git name-rev` would have said, except that the name would > be generated using the name(s) specified on the command-line? > > Example: > >

Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard

2017-01-20 Thread Johannes Schindelin
Hi Duy, On Fri, 20 Jan 2017, Nguyễn Thái Ngọc Duy wrote: > OK This patch is horrible. Yeah ;-) > Though the idea is cool and I've found it very useful. So here it is. > Perhaps the idea may be revised a bit that's more suitable for more than > one user. Why not introduce a flag to "git log" th