Re: [PATCH v2] git-gui: Add shortcut keys for Show More/Less Context
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.
> ... 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.