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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 20, 2017, 18:27 UTC
Message-ID
<xmqqh94ty4b5.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170120160942.srqf4y5w5r6feidw@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> 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 what it looks like if
> you're interested:
>
>   http://peff.net/git-hints.gif

Nice. I would have called the "give me the string that is already on the screen" solution solving at a lower level, not higher, but I think I agree with the general direction. I always work in "screen" and grab a string I see displayed by going into its "copy" mode, which lets me jump to where the string appears by searching, and I think that is a solution in the same class.

>   2. It doesn't take any screen space until you're ready to select.

Yup, personally I find this quite important (as I am often on a box with a smaller screen).

I dream an integration with the command line completion we have. I do not offhand see what the mecanism to tell what object names were shown on the display recently to the completion mechanism should be, but if we can solve that small detail, the result would be wonderful ;-)

Previous: Jeff KingNext: Jacob Keller
Message 6 of 12 in “Shortcuts to quickly refer to a commit name with keyboard”
  1. Shortcuts to quickly refer to a commit name with keyboardNguyễn Thái Ngọc Duy, Jan 20, 2017
  2. Johannes SchindelinJan 20, 2017
  3. Duy NguyenJan 20, 2017
  4. Johannes SchindelinJan 20, 2017
  5. Jeff KingJan 20, 2017
  6. Junio C HamanoJan 20, 2017
  7. Jacob KellerJan 20, 2017
  8. Jeff KingJan 20, 2017
  9. Duy NguyenJan 21, 2017
  10. Jeff KingJan 21, 2017
  11. Duy NguyenFeb 5, 2017
  12. Jacob KellerFeb 5, 2017

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.