CLI - Highlight of open/close characters

Version 3

    Highlight of open/close characters

     

    Analysis

    Summary

    In a context where we have a nesting of complex objects as operation parameters, it is difficult to match the '{' and '[' with their closing counterparts. In particular at the end of the command, it is needed to quickly identify missing closing characters.

    We are proposing here to highlight the matching pairs when the cursor is on the closing character.

    Requirements

    When moving the cursor onto a closing character (‘]‘, ‘}’, ‘)’), the opening character ( ‘[‘, ‘{‘, ‘(‘ ) should be highlighted. If no match is found, then the current closing character should be also highlighted (e.g.: in red to make it clear that it is an error). The user typed content must not be affected by the highlighting (e.g.: when executing an operation that would contain colored character).

    Design Notes

    General

    Product Issue(s)

    https://issues.jboss.org/browse/EAP7-737

    Upstream Issue(s)

    https://issues.jboss.org/browse/WFCORE-2663

    Developer Contacts

    Jean-François Denise (jdenise@redhat.com)