From: Michael D. Lowis Date: Fri, 19 May 2017 01:29:56 +0000 (-0400) Subject: added shortcut for selecting the current line X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=876e569a1ff086ee1307cf5128ba9072e3eb04d1;p=projs%2Ftide.git added shortcut for selecting the current line --- diff --git a/docs/xedit.1 b/docs/xedit.1 index d70d416..bd2d0f6 100644 --- a/docs/xedit.1 +++ b/docs/xedit.1 @@ -185,6 +185,10 @@ Paste the contents of the X11 CLIPBOARD selection to the active region\. Join the current line and the next line\. . .TP +\fBCtrl+l\fR +Select the current line\. +. +.TP \fBDelete\fR Delete the character to the right\. . diff --git a/docs/xedit.1.md b/docs/xedit.1.md index 7472123..1ef369f 100644 --- a/docs/xedit.1.md +++ b/docs/xedit.1.md @@ -221,6 +221,9 @@ position. * `Ctrl+j`: Join the current line and the next line. +* `Ctrl+l`: + Select the current line. + * `Delete`: Delete the character to the right. diff --git a/xedit.c b/xedit.c index 0809f49..fb39564 100644 --- a/xedit.c +++ b/xedit.c @@ -365,13 +365,14 @@ static KeyBinding Bindings[] = { { ModCtrl, 'e', cursor_eol }, /* Standard Text Editing Shortcuts */ - { ModCtrl, 's', save }, - { ModCtrl, 'z', undo }, - { ModCtrl, 'y', redo }, - { ModCtrl, 'x', cut }, - { ModCtrl, 'c', copy }, - { ModCtrl, 'v', paste }, - { ModCtrl, 'j', join_lines }, + { ModCtrl, 's', save }, + { ModCtrl, 'z', undo }, + { ModCtrl, 'y', redo }, + { ModCtrl, 'x', cut }, + { ModCtrl, 'c', copy }, + { ModCtrl, 'v', paste }, + { ModCtrl, 'j', join_lines }, + { ModCtrl, 'l', select_line }, /* Block Indent */ { ModCtrl, '[', del_indent },