]> git.mdlowis.com Git - projs/tide.git/commitdiff
added shortcut for selecting the current line
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 19 May 2017 01:29:56 +0000 (21:29 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 19 May 2017 01:29:56 +0000 (21:29 -0400)
docs/xedit.1
docs/xedit.1.md
xedit.c

index d70d41624e151d0e5c61599291cf51c7ee800f42..bd2d0f640dae19dd4981c98236d8f067d505a25e 100644 (file)
@@ -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\.
 .
index 7472123e6bd841258f2037744a14621cd4af3e1f..1ef369f1861f945ec9e688c151c6bd06157e9a30 100644 (file)
@@ -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 0809f49e7712ec8cd7be27e8dcb602d82a959449..fb395649b1df27725c99b233382915357322d4af 100644 (file)
--- 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 },