From ea4775ceb5fdddcdcf533d705ee3880da2cd0997 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 28 Sep 2012 15:27:10 -0400 Subject: Added marks for making selection in ncurses. Even though the implementation uses a new `MODIFIED` event, it is left undocumented because it will likely never be a full implementation of SCN_MODIFIED. --- doc/06_AdeptEditing.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/06_AdeptEditing.md b/doc/06_AdeptEditing.md index 8ae6ae6e..e71b82a8 100644 --- a/doc/06_AdeptEditing.md +++ b/doc/06_AdeptEditing.md @@ -83,6 +83,20 @@ a `""` sequence. Typing `Ctrl++` (`^+` | `M-+`) as a follow-up selects the double-quotes too. See the `Edit -> Select In...` menu for available entities and their key bindings. +### Marks + +In ncurses, since some terminals do not recognize certain key commands like +`Shift+Arrow` for making selections, you can use marks to create selections. +Create a mark at the current caret position with `^^`. Then use regular movement +keys like the arrows, page up/down, and home/end to extend the selection in one +direction. Pressing `^]` swaps the current caret position with the original mark +position so you can extend the selection in the opposite direction. Any time you +type text, delete text, or run a command that does either, the mark is removed +and ordinary navigation is restored. You can also press `^^` again to stop +selecting text. + +Marks are only supported in ncurses. + ### Transforms #### Enclose Entities -- cgit v1.2.3