summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-22 05:59:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-22 05:59:05 -0700
commitcaca753c5fef9c52a3fda44f31ca86be0d36509e (patch)
tree69b2f887911c941e8944c17693a23a5ae2b82aba /txr.1
parent4331f6a3c3e83160044ad75bf6d8ffcc05edab34 (diff)
downloadtxr-caca753c5fef9c52a3fda44f31ca86be0d36509e.tar.gz
txr-caca753c5fef9c52a3fda44f31ca86be0d36509e.tar.bz2
txr-caca753c5fef9c52a3fda44f31ca86be0d36509e.zip
linenoise: jump to matching parenthesis
* linenoise/linenoise.c (scan_match_fwd, scan_fwd, edit_move_matching_paren): New functions. (edit): New Ctrl-] command implemented using edit_move_matching_paren. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 12 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 53d7e32a..76fda8f6 100644
--- a/txr.1
+++ b/txr.1
@@ -33588,6 +33588,18 @@ such that the last character of the line is to the left of the cursor
position. On terminals which have the Home and End keys, these may also
be used instead of Ctrl-A and Ctrl-E.
+.NP* Jump to Matching Parenthesis
+
+If the cursor is on an opening or closing parenthesis, brace or bracket,
+the Ctrl-] command will jump to the matching character. The logic for
+finding the matching character is identical to that of the Parenthesis Matching
+feature.
+
+Note: the Ctrl-] character can be produced on some terminals using Ctrl-5
+(using the keyboard home row 5, not the numeric keypad 5). This the same
+key which produces the % character when Shift is used. The % character is
+used in the Vi editor for parenthesis matching.
+
.NP* Character Swap
The Ctrl-T (twiddle) command exchanges the character under the cursor with the