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

Re: [PATCH] git-gui: bind CTRL/CMD+numpad ENTER to do_commit

From
Birger Skogeng Pedersen <birgersp@gmail.com>
Date
Mar 2, 2018, 09:56 UTC
Message-ID
<CAGr--=JqXhwEtOrs0K3cscVa=LV75ejz=TYKtV7mgrd_96Jk6w@mail.gmail.com>
In-Reply-To
<CAPig+cRt+u4yEnFLM3kUB_J54Xvt6V9ceb6rwqfHC3kb=fttGg@mail.gmail.com>
Sorry about that. Version 2 coming right up.
On Thu, Mar 1, 2018 at 7:31 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 32 quoted lines
> On Thu, Mar 1, 2018 at 9:39 AM, Birger Skogeng Pedersen
> <birgersp@gmail.com> wrote:
>> ---
>
> Please sign-off on your patch. See Documentation/SubmittingPatches.
>
> Also, it would be helpful to write at least a short commit message
> justifying the change. The reason you gave in your lead-in email[1]
> might be sufficient:
>
>     In git-gui, we can hit CTRL/CMD+ENTER to create a commit. However,
>     using the numpad ENTER does not invoke the same command.
>
> (assuming people don't argue that numpad ENTER should be saved for
> some other function).
>
> Thanks.
>
> [1]: https://public-inbox.org/git/CAGr--=LxMtz5RRP4742u3VsrADRsWARE2SitCSOWATySOn2LcQ@mail.gmail.com/
>
>> diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
>> index 91c00e648..6de74ce63 100755
>> --- a/git-gui/git-gui.sh
>> +++ b/git-gui/git-gui.sh
>> @@ -3867,6 +3867,7 @@ bind .   <$M1B-Key-equal> {show_more_context;break}
>>  bind .   <$M1B-Key-plus> {show_more_context;break}
>>  bind .   <$M1B-Key-KP_Add> {show_more_context;break}
>>  bind .   <$M1B-Key-Return> do_commit
>> +bind .   <$M1B-Key-KP_Enter> do_commit
>>  foreach i [list $ui_index $ui_workdir] {
>>         bind $i <Button-1>       { toggle_or_diff click %W %x %y; break }
>>         bind $i <$M1B-Button-1>  { add_one_to_selection %W %x %y; break }
Previous: Eric SunshineNext: Birger Skogeng Pedersen
Message 4 of 5 in “git-gui: CTRL/CMD + numpad ENTER does not invoke same command as "regular" ENTER”
  1. Birger Skogeng PedersenMar 1, 2018
  2. git-gui: bind CTRL/CMD+numpad ENTER to do_commitBirger Skogeng Pedersen, Mar 1, 2018
  3. Eric SunshineMar 1, 2018
  4. Birger Skogeng PedersenMar 2, 2018
  5. git-gui: bind CTRL/CMD+numpad ENTER to do_commitBirger Skogeng Pedersen, Mar 2, 2018

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.