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

Re: [PATCH] git-gui: Handle Ctrl+BS & Ctrl+Del in the commit msg

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 12, 2019, 00:29 UTC
Message-ID
<20190212002932.GC684736@genre.crustytoothpaste.net>
In-Reply-To
<20190211214203.32444-1-ismael@iodev.co.uk>
On Mon, Feb 11, 2019 at 10:42:03PM +0100, Ismael Luceno wrote:
Show 15 quoted lines
> Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
> ---
>  git-gui.sh | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/git-gui.sh b/git-gui.sh
> index 5bc21b878d41..e00d9a345294 100755
> --- a/git-gui.sh
> +++ b/git-gui.sh
> @@ -3788,6 +3788,8 @@ bind $ui_comm <$M1B-Key-KP_Subtract> {show_less_context;break}
>  bind $ui_comm <$M1B-Key-equal> {show_more_context;break}
>  bind $ui_comm <$M1B-Key-plus> {show_more_context;break}
>  bind $ui_comm <$M1B-Key-KP_Add> {show_more_context;break}
> +bind $ui_comm <Control-Key-BackSpace> {%W delete {insert -1 chars wordstart} insert;break}
> +bind $ui_comm <Control-Key-Delete> {%W delete insert {insert wordend};break}

I don't use git-gui and I don't understand TCL, but I was interested to learn more about these key bindings in case other programs use them and they might be useful in my day-to-day life.

However, your commit message doesn't include a body, so it isn't clear to me what this change does and why these are useful keys for git-gui to understand. Are they common among many programs? What do they do? Why did we pick these keys instead of others?

Perhaps you could send a v2 with a more comprehensive commit message that provides some of these answers.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Ismael LucenoNext: brian m. carlson
Message 2 of 3 in “git-gui: Handle Ctrl+BS & Ctrl+Del in the commit msg”
  1. git-gui: Handle Ctrl+BS & Ctrl+Del in the commit msgIsmael Luceno, Feb 11, 2019
  2. brian m. carlsonFeb 12, 2019
  3. brian m. carlsonFeb 13, 2019

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.