Ihre Kommentare
Found a problem with the current key bindings, updated the instructions in the readme.
I wrote a plugin that solves the problem for me:
https://github.com/alexstaubo/sublime_text_alternative_autocompletion
Userecho har screwed up my post, and doesn't allow me to edit. So here's what it says at the top:
Consider the following text, where | indicates caret:
Yes! The current behaviour of the insert_best_completion command is driving me crazy.
For example, if (in Ruby code) I have a variable named "column", I typically type "col" and hit the completion key. Sublime completes it with "collect { |e| }"!
This conflation of snippets and completion means that the completion function is completely unpredictable to the user, and I have to remember every snippet that exists so I don't accidently trigger one. TextMate gets it right — it has a one key (tab) for snippets, and another (escape) for completion. That's brilliant.
Now, I don't use snippets at all, as I don't find them productive, so being offered snippets all the time is simply an annoyance.
Being able to turn off snippets is step one.
The next step is being able to cycle completions. Right now, Sublime's autocompletion will iteratively autocomplete stuff. So given the source code:
thing = 1
thing_factory = ...
thunk_method()
If I type "th" and press the autocomplete key, it will first expand to "thing". But I wanted "thunk_method", so I hit the autocomplete key again. But now it will expand into "thing_factory", which is not what I wanted.
This is something TextMate is much better at.
Ctrl+space works better (although it still offers snippets), but it's not an efficient UI. I have to visually scan the list offered, which incurs a mental context switch.
Customer support service by UserEcho
1. I open a new window.
2. I create files A, B, C in tabs.
3. I close file C.
4. I run "Open Anything" but don't type anything.
5. The list now shows A and B, but not C.
It seems that closed files are not included in the list, only currently opened ones, followed by the files in the root of the project.
It's also weird about what is made the first choice:
1. New window.
2. Open files A, B, C.
3. I make A active (by clicking its tab). "Open Anything"'s first choice is now C.
4. I make B active. "Open Anything"'s first choice is now C.
5. I make C active. "Open Anything"'s first choice is now A.
6. I make A active. "Open Anything"'s first choice is now C.
5. I make C active. "Open Anything"'s first choice is now C.
etc.
Seems it's always two steps behind. However, if I select something from the "Open Anything" list, the next top choice is always the previous file, which is correct.