Using keywords file as you suggested in previous discussion is not very comfortable - it pops up without using Ctrl+Tab and is annoying. Keywords (undefined...) and class names (Number...) are good at keywords file, but methods are definitely not :(
So, again :) Maybe Ctrl+Tab on "nothing" should pop-up the list of them?
I don't think we must bother about some extra logic here - those methods can be used anywhere. If completions[] array is empty after all - let's fill the completions[] array with global methods. Something like this in coffee_utils.py ?
+ if not completions:
+ # Suggest globals
+ ......
# Remove all duplicates
completions = list(set(completions))
# Sort
completions.sort()
return completions
And global methods will just be added to CoffeeComplete Plus Built-In Types.sublime-settings file.
Using keywords file as you suggested in previous discussion is not very comfortable - it pops up without using Ctrl+Tab and is annoying. Keywords (
undefined
...) and class names (Number
...) are good at keywords file, but methods are definitely not :(So, again :) Maybe Ctrl+Tab on "nothing" should pop-up the list of them?
I don't think we must bother about some extra logic here - those methods can be used anywhere. If
completions[]
array is empty after all - let's fill thecompletions[]
array with global methods. Something like this incoffee_utils.py
?And global methods will just be added to
CoffeeComplete Plus Built-In Types.sublime-settings
file.