From: Ismael Luceno <redacted>
- 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.
In both cases Tk already implements the functionality bound to other key
combination, so we use that.
Graphical examples:
Deleting to the left:
v------ pointer
X_WORD____X
^-----^------ selection
Deleting to the right:
v--------- pointer
X_WORD_X
^--^------ selection
Signed-off-by: Ismael Luceno <redacted>
---
I'm re-submitting the patch after >1 year.
CC: Junio C Hamano <redacted>
CC: "brian m. carlson" <redacted>
CC: Pat Thoyts <redacted>
CC: Johannes Schindelin <redacted>
Notes:
Changes since v2:
- Reimplemented via existing events, which correctly delete spaces.
- Further improved commit message.
Changes since v1:
- Improved commit message.
git-gui/git-gui.sh | 2 ++
1 file changed, 2 insertions(+)
Hi Ismael,
On 12/05/20 12:28PM, Ismael Luceno wrote:
quoted hunk
From: Ismael Luceno <redacted>
- 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.
In both cases Tk already implements the functionality bound to other key
combination, so we use that.
Graphical examples:
Deleting to the left:
v------ pointer
X_WORD____X
^-----^------ selection
Deleting to the right:
v--------- pointer
X_WORD_X
^--^------ selection
Signed-off-by: Ismael Luceno <redacted>
---
I'm re-submitting the patch after >1 year.
CC: Junio C Hamano <redacted>
CC: "brian m. carlson" <redacted>
CC: Pat Thoyts <redacted>
CC: Johannes Schindelin <redacted>
Notes:
Changes since v2:
- Reimplemented via existing events, which correctly delete spaces.
- Further improved commit message.
Changes since v1:
- Improved commit message.
git-gui/git-gui.sh | 2 ++
1 file changed, 2 insertions(+)
You based the patch on top of the Git tree. Since Git Gui is maintained
separate from Git, patches are expected to be based on top of the Git
Gui tree [0]. I fixed it up and applied the patch on my tree.
Don't use "Control" directly to maintain compatibility with MacOS. Use
$M1B like the surrounding code does. I fixed it up locally, so no need
to send in a new version. You can find the fixed up version here [1].
Test it if you'd like.
Will merge it in. Thanks.
[0] https://github.com/prati0100/git-gui/
[1] https://github.com/prati0100/git-gui/tree/il/ctrl-bs-del
--
Regards,
Pratyush Yadav
Hi Ismael,
On 12/05/20 12:28PM, Ismael Luceno wrote:
quoted
From: Ismael Luceno <redacted>
- 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.
In both cases Tk already implements the functionality bound to other key
combination, so we use that.
Graphical examples:
Deleting to the left:
v------ pointer
X_WORD____X
^-----^------ selection
Deleting to the right:
v--------- pointer
X_WORD_X
^--^------ selection
Signed-off-by: Ismael Luceno <redacted>
---
I'm re-submitting the patch after >1 year.
CC: Junio C Hamano <redacted>
CC: "brian m. carlson" <redacted>
CC: Pat Thoyts <redacted>
CC: Johannes Schindelin <redacted>
Notes:
Changes since v2:
- Reimplemented via existing events, which correctly delete spaces.
- Further improved commit message.
Changes since v1:
- Improved commit message.
git-gui/git-gui.sh | 2 ++
1 file changed, 2 insertions(+)
You based the patch on top of the Git tree. Since Git Gui is maintained
separate from Git, patches are expected to be based on top of the Git
Gui tree [0]. I fixed it up and applied the patch on my tree.
Don't use "Control" directly to maintain compatibility with MacOS. Use
$M1B like the surrounding code does. I fixed it up locally, so no need
to send in a new version. You can find the fixed up version here [1].
Test it if you'd like.
Will merge it in. Thanks.
From: Ismael Luceno <redacted>
- 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.
In both cases Tk already implements the functionality bound to other key
combination, so we use that.
Graphical examples:
Deleting to the left:
v------ pointer
X_WORD____X
^-----^------ selection
Deleting to the right:
v--------- pointer
X_WORD_X
^--^------ selection
Signed-off-by: Ismael Luceno <redacted>
Merged to git-gui/master.
--
Regards,
Pratyush Yadav