From caca753c5fef9c52a3fda44f31ca86be0d36509e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Tue, 22 Sep 2015 05:59:05 -0700 Subject: 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. --- txr.1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'txr.1') 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 -- cgit v1.2.3