Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 710 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 710 Bytes

BracketSpacer

As seeked by /u/HighR0ller.

Adds space on the matching bracket (on the same line)

Press spacebar twice to add spaces. Binding to a single spacebar press is unfortunately not possible with sublime.

With | being the cursor:

[|foo]
<space><space>
[ |foo ]
{|{ foo: bar }}
<space><space>
{ |{ foo: bar } }
(|)
<space><space>
( | )

Removes space on the matching bracket (on the same line)

Press backspace after a space char inside of brackets.

[ |foo ]
<backspace>
[|foo]
{ |{ foo: bar } }
<backspace>
{|{ foo: bar }}
( | )
<backspace>
(|)