Skip to content

Commit

Permalink
disables tag attribute completions when verbose_tag_completions is se…
Browse files Browse the repository at this point in the history
…t to true
  • Loading branch information
atomi committed Jun 25, 2012
1 parent 6c8c9f1 commit 68282b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions coldfusiontagcompletions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def on_query_completions(self, view, prefix, locations):
if not view.match_selector(locations[0],
"text.html.cfm - source - meta, text.html.cfm.embedded.cfml - source.cfscript.embedded.cfml - source.sql.embedded.cfml"):
return
s = sublime.load_settings('ColdFusion.sublime-settings')
if s.get("verbose_tag_completions"):
return

# Do not trigger if we are in a tag or string or comment
pt = locations[0] - len(prefix) - 1
Expand All @@ -40,6 +43,9 @@ class TagAttributeAutoComplete(sublime_plugin.EventListener):
valid_scopes_tags = ["meta.tag.inline.cf", "meta.tag.block.cf"]

def on_modified(self, view):
s = sublime.load_settings('ColdFusion.sublime-settings')
if s.get("verbose_tag_completions"):
return
sel = view.sel()[0].a

if view.substr(sel - 1) == " ":
Expand All @@ -53,6 +59,9 @@ def on_modified(self, view):


def on_query_completions(self, view, prefix, locations):
s = sublime.load_settings('ColdFusion.sublime-settings')
if s.get("verbose_tag_completions"):
return
sel = view.sel()[0].a
completions = []

Expand Down

0 comments on commit 68282b2

Please sign in to comment.