alienhard / SublimeAllAutocomplete

Extend Sublime autocompletion to find matches in all open files of the current window
917 stars 110 forks source link

Attempted fixes for All Autocomplete issues I have encountered #52

Closed canoeberry closed 7 years ago

canoeberry commented 7 years ago

After a couple of years of using All AutoComplete I have finally decided to look at the code carefully to see how I might explain some things I have seen over the years.

The first thing I noticed was the 20 view limit. I often have way more views open than that and I found it very confusing when some things completed but others did not. Also I saw the code that works around a "sublime bug" relating to words that are missing the last letter, or other words that just don't show up at all.

So I decided to write my own all autocomplete as part of the sublemacspro plugin with the following properties:

This is a different approach (not using view.extract_completions) but I have found it to be more to my liking. Shall I try to apply what I've learned and issue a pull request, or does this sound like too much of a departure?

canoeberry commented 7 years ago

Well - since writing the above comment I have learned a lot about how completion is supposed to work.

The really right solution is to fix all the syntaxes with issues rather than what I have done. Using the syntax makes the most sense so that things like "md-input-container" are found or strings inside quotes in HTML syntax.

Back to the old drawing board ...