Skip to content

Toggling brackets not working + multiple config #56

@ppo

Description

@ppo

Toggling Brackets

The README says Also available different start and end of wrap characters: </>, [/], «/» etc. but it doesn't seem to work, or at least I don't understand how to make it work. I don't find any documentation about that.

I tried the following, using the standard keyboard shortcut Cmd + ', in a Python file, on this line v = [0, 1]:

  • Placing the cursor in the middle, after the comma (so no selection).
  • Placing the cursor before and after [, ], (, and ).
  • On the selections 0, 1 and [0, 1].

Multiple Config

Is it possible to configure multiple lists? Like this:

"togglequotes.chars": [
  [ "\"", "'", "`" ],
  [ ["“", "”"], ["‘", "’"] ],
  [ ["«", "»"], ["‹", "›"] ],
  [ ["(", ")"], ["[", "]"], ["{", "}"] ],
],

It would also be useful to be able to configure different keyboard shortcuts. For example to have one acting on quotes and another one on brackets; so that we don't have to select, it finds the closest type around the cursor.

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