Skip to content

Brackets completion plugin - feature request #660

@nicoursi

Description

@nicoursi
 * Xed version (3.4.3)
 * Distribution - (Mint 21.2)

Issue
The brackets completion plugin is nice but sometimes it gets in the way. For example, if I decide to wrap some existing text in brackets, I will get () as soon as I type ( and then I will have to delete ) and type it again at the end of the block. I suggest to apply brackets to a selection:

  • Select the text,
  • type (
  • get the following result: (selected text)

Steps to reproduce
Existing line of code:
if pkt[TCP].flags=="A":
Type an open bracket after the if statement:
if (pkt[TCP].flags=="A":

Expected behaviour
if (pkt[TCP].flags=="A":

What really happens
if ()pkt[TCP].flags=="A":

Suggestion

  1. select some text
  2. type an open bracket (
  3. get the following result: (selected text)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions