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

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

From
Ismael Luceno <ismael@iodev.co.uk>
Date
Mar 4, 2019, 14:09 UTC
Message-ID
<20190304140947.GA2449@kiki>
In-Reply-To
<xmqqa7iouavw.fsf@gitster-ct.c.googlers.com>
On 21/Feb/2019 12:47, Junio C Hamano wrote:
Show 12 quoted lines
> Ismael Luceno <ismael@iodev.co.uk> writes:
> 
> >> ....  I am not sure if going
> >> back by one character from where the current insertion cursor is and
> >> further go back to the wordstart would give the beginning of the
> >> word to the left of the cursor, though.
> >
> > ...
> > Current implementation doesn't behave correctly when there's multiple
> > spaces:
> 
> In short, I wondered if it is correct, and you say it is not correct.
It's better than nothing, and the behavior isn't harmful.
Show 6 quoted lines
> I would be surprised if git-gui were the only program that
> implemented an editor-like feature using tcl/tk, and none of the
> other editor implementations using tcl/tk had such an industry
> standard "delete previous word".  Perhaps you can see if there
> is already a correct implementation of the feature this patch can
> borrow from?

I couldn't find such implementation yet. I'll come up with an improved version if there's nothing else, but in the meanwhile it's worth to have this one merged.

Previous: Junio C Hamano
Message 5 of 5 in “git-gui: Handle Ctrl + BS/Del in the commit msg”
  1. git-gui: Handle Ctrl + BS/Del in the commit msgIsmael Luceno, Feb 16, 2019
  2. Junio C HamanoFeb 20, 2019
  3. Ismael LucenoFeb 21, 2019
  4. Junio C HamanoFeb 21, 2019
  5. Ismael LucenoMar 4, 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.