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

Re: [PATCH v2] git-gui: Add shortcut keys for Show More/Less Context

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 2, 2008, 05:34 UTC
Message-ID
<20080402053423.GW10274@spearce.org>
In-Reply-To
<57518fd10804010659t42569632u906f994519d527c6@mail.gmail.com>
Jonathan del Strother <maillist@steelskies.com> wrote:
> On Tue, Apr 1, 2008 at 11:54 AM, Jonathan del Strother
> <maillist@steelskies.com> wrote:
> > Bound to Ctrl/Cmd + left & right square brackets, depending on your platform.
Thanks.
 
> ... I've just noticed that the shortcut keys don't apply while the
> diff view has keyboard focus.  Shall I replace "bind $ui_comm ... "
> with "bind all ..."  ?
No, "bind .".  I squashed this into your patch:
@@ -2758,6 +2760,8 @@ bind .   <$M1B-Key-t> do_add_selection
 bind .   <$M1B-Key-T> do_add_selection
 bind .   <$M1B-Key-i> do_add_all
 bind .   <$M1B-Key-I> do_add_all
+bind .   <$M1B-Key-\[> {show_less_context;break}
+bind .   <$M1B-Key-\]> {show_more_context;break}
 bind .   <$M1B-Key-Return> do_commit
 foreach i [list $ui_index $ui_workdir] {
        bind $i <Button-1>       "toggle_or_diff         $i %x %y; break"
-- 
Shawn.
Previous: Jonathan del Strother
Message 3 of 3 in “git-gui: Add shortcut keys for Show More/Less Context”
  1. git-gui: Add shortcut keys for Show More/Less ContextJonathan del Strother, Apr 1, 2008
  2. Jonathan del StrotherApr 1, 2008
  3. Shawn O. PearceApr 2, 2008

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.