If the cursor is over a paren or brace (e.g. ( or [) and said paren/brace has a matching paren/brace, the matched paren/brace pair should be highlighted in teal. If the paren/brace does not have a match, it should be highlighted in purple.
The Problem
IIRC, Arrow keys are manufacturer, therefore we'll need a function that can be used to register the current systems arrow key codes:
(readline#register-up-arrow-key "^[[A")
;; OR
(readline#register-arrow-keys '((up . "^[[A") ...))
For now, I think recognizing the arrow keys should be more than enough, but eventually it'd be nice to be able to highlight the matching paren/brace whenever the cursor is placed on one.
The Enhancement
If the cursor is over a paren or brace (e.g.
(
or[
) and said paren/brace has a matching paren/brace, the matched paren/brace pair should be highlighted in teal. If the paren/brace does not have a match, it should be highlighted in purple.The Problem
IIRC, Arrow keys are manufacturer, therefore we'll need a function that can be used to register the current systems arrow key codes:
Example
The Scheme binding should be usable like so
For now, I think recognizing the arrow keys should be more than enough, but eventually it'd be nice to be able to highlight the matching paren/brace whenever the cursor is placed on one.