Alternatively, I'm considering creating a js_completions.py file. I am a programmer - but not in Python. So I would appreciate some guidance as to how I could modify the following to check the word that appears before the '.' (assuming there is one..) ?
- Code: Select all
def on_query_completions(self, view, prefix, locations):
# Only trigger within HTML
if not view.match_selector(locations,
"text.html - source"):
pt = locations - len(prefix) - 1
ch = view.substr(sublime.Region(pt, pt + 1))
# I'll change the following to .
if ch != '<':