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

Re: [PATCH 2/2] git-gui blame add more common search hotkeys

From
David Fries <david@fries.net>
Date
Jul 20, 2011, 02:56 UTC
Message-ID
<20110720025601.GE26701@spacedout.fries.net>
In-Reply-To
<87sjq2cp8t.fsf@fox.patthoyts.tk>
On Tue, Jul 19, 2011 at 03:35:30PM +0100, Pat Thoyts wrote:
Show 7 quoted lines
> David Fries <david@fries.net> writes:
> 
> That aside, the goto-line feature works fine for me. I don't think the
> n, Shift-n binding is working though. When I have the focus in the blame
> window and enter 'n' it tries to add an 'n' to the text in the search
> box. The use of Enter and Shift-Enter makes sense and works as I
> expect. So I will drop the 'n' and 'Shift-n' bindings I think.

I have some 6000 some line files that I was preparing change sets and was needing to jump to a specific line. That's what prompted me to add the goto feature, I just went ahead and added the search hotkeys while I was in looking at it. I apparently didn't do enough testing on the search, it's <Key-N> not the <Shift-Key-n> that I had in there. The n and N only work when the search bar is dismissed with escape or something. I'm more used to vi's searching where the search field is dismissed with return and there isn't a search field left to add to. I'm fine with dropping the n/N bindings.

Show 8 quoted lines
> The -accelerator field on a menu specifies the text to show. Its more
> usual to show "Ctrl-G" than "Control-Key-G" here so I'll adjust that as
> well. The 'bind' command actually ties up the key binding to the menu
> action.
> 
> With the above changes, I'll apply this to git-gui's master (which lives
> at repo.or.cz/git-gui.git) and it will get merged into git on the next
> merge.
Sounds good, thanks for merging it.
-- 
David Fries <david@fries.net>    PGP pub CB1EE8F0
http://fries.net/~david/
Previous: Pat Thoyts
Message 3 of 3 in “git-gui blame add more common search hotkeys”
  1. 2/2 git-gui blame add more common search hotkeysDavid Fries, Jul 16, 2011
  2. Pat ThoytsJul 19, 2011
  3. David FriesJul 20, 2011

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.