From c4c5ca749cd59d30a6b53c458900cdf7c99771d9 Mon Sep 17 00:00:00 2001 From: underscorediscovery Date: Fri, 26 Sep 2014 17:03:50 -0230 Subject: [PATCH] Work around annoying auto inserting of auto_complete values, and minor tweaks --- Haxe.sublime-settings | 3 +-- flow.py | 4 ++-- haxe_parse_completion_list.py | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Haxe.sublime-settings b/Haxe.sublime-settings index 5c61432..ad9526e 100644 --- a/Haxe.sublime-settings +++ b/Haxe.sublime-settings @@ -1,7 +1,6 @@ { "auto_complete_selectors": "source - (string, comment, keyword.control.directive.conditional.haxe)", "auto_complete_triggers": [ - {"selector": "source.haxe", "characters": "."}, - {"selector": "source.haxe", "characters": "("} + {"selector": "source.haxe", "characters": "."} ] } \ No newline at end of file diff --git a/flow.py b/flow.py index 22df72f..9edc511 100644 --- a/flow.py +++ b/flow.py @@ -157,11 +157,11 @@ def save_file_for_completion( self, view, fname ): f.write( code ) f.close() - print("saved file for completion") + print("[flow] saved file for completion") def restore_file_post_completion( self ): - print("restore file post completion") + print("[flow] restore file post completion") view = self.completion_view fname = self.completion_file diff --git a/haxe_parse_completion_list.py b/haxe_parse_completion_list.py index d64d3d3..1385fb4 100644 --- a/haxe_parse_completion_list.py +++ b/haxe_parse_completion_list.py @@ -140,6 +140,9 @@ def parse_type(_type): result.append((_name+'\t'+_typename, _name)) + if(len(result) == 1): + result.append(('\t-',' ')) + return result #returns True if the string is completion info for a function