Skip to content

Commit 807bf33

Browse files
committed
Add option to add a trailing space when options are accepted with a space
1 parent 3ccdfd7 commit 807bf33

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

UnicodeMath.sublime-settings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
"convert_instantly": false,
2828
// Treat a non-ambiguous prefix as a full symbol name
2929
"accept_prefixes": false,
30+
// Insert a trailing space after symbol insertation
31+
"trailing_space": false,
3032
}

unicodecomplete.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def convert_prefix(self, edit, r, instant):
207207
if m:
208208
rep = replacement(m, instant)
209209
if rep is not None:
210+
if enabled('trailing_space'):
211+
rep += " "
210212
self.view.replace(edit, sublime.Region(r.begin() - (m.end() - m.start()), r.begin()), rep)
211213

212214
def convert_selection(self, edit, r, instant):

0 commit comments

Comments
 (0)