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
Feb 21, 2019, 09:31 UTC
Message-ID
<20190221093059.GA6594@kiki>
In-Reply-To
<xmqqbm36w7hl.fsf@gitster-ct.c.googlers.com>
On 20/Feb/2019 12:05, Junio C Hamano wrote:
Show 23 quoted lines
> Ismael Luceno <ismael@iodev.co.uk> writes:
> 
> > - Control+BackSpace: Delete word to the left of the cursor.
> > - Control+Delete   : Delete word to the right of the cursor.
> >
> > Originally introduced by BRIEF and Turbo Vision between 1985 and 1992,
> > they were adopted by most CUA-Compliant UIs, including those of: OS/2,
> > Windows, Mac OS, Qt, GTK, Open/Libre Office, Gecko, and GNU Emacs.
> >
> > Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
> > ---
> >
> > Notes:
> >     Changes since v1:
> >     - Improved commit message.
> 
> I do not use git-gui, but as a bystander, the intent of the change
> sounds sane.  deleting from the insertion cursor to the end of the
> word where the insertion cursor is looks like the right way to
> delete the word to the right of the cursor.  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.
Graphical explanation:
Deleting to the left:
      v----- pointer
X_WORD_X
  ^--^------ selection
Deleting to the right:
  v--------- pointer
X_WORD_X
  ^--^------ selection

Current implementation doesn't behave correctly when there's multiple spaces:

Deleting to the left:
        v--- pointer
X_WORD____X
       ^---- selection
Deleting to the right:
  v--------- pointer
X____WORD_X
  ^--------- selection
> A larger issue is that we haven't heard from Pat, who has been
> helping git-gui.sh maintenance, for quite a while, so we'd need to
> find a volunteer to act as a replacement maintainer.  If you are
> willing to, that would be great ;-)
Sure.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.