Skip to content

Commit c85581c

Browse files
authored
Merge pull request #41 from omentic/master
Add option to add a trailing space when options are accepted with a space
2 parents 3ccdfd7 + 578505e commit c85581c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

UnicodeMath.sublime-settings

+2
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 insertion
31+
"trailing_space": false,
3032
}

unicodecomplete.py

+2
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)