alienhard / SublimeAllAutocomplete

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

Missing suggestions from active tab #1

Closed smukkekim closed 12 years ago

smukkekim commented 12 years ago

Hi! I seem to have a problem, where the autosuggest does not include words from the active tab - only all others.

I tried changing

views = [v for v in sublime.active_window().views() if v.id() != view.id()]

to

views = [v for v in sublime.active_window().views()]

and it seems to solve the problem. But as I have no experience with neither Python nor Sublime plugin development, I don't know if this is a good idea or not.

alienhard commented 12 years ago

Hi!

Thanks for reporting. I've not seen this before and also haven't heard from someone else who has. Maybe related to some special settings?

In any case, the change you suggested makes perfectly sense.

In case other people see this problem, please add a note and I'll take a closer look.

Thanks, Adrian

wibblymat commented 12 years ago

I've noticed this too, though I put up with it for several months. I actually just disabled the plugin because not having all completions was finally getting annoying but thought I'd just check if there was a fix first.

In my experience, rather than just plain not showing completions for the current file, it would actually show current file completions when there was nothing in the other files that matched.

alienhard commented 12 years ago

Thanks wibblymat for the comment, I managed to reproduce the problem. I've pushed a new version (the change suggested by smukkekim) that should fix it. Please let me know if it doesn't.

You can use Package Control to "Update Package" (or, as far as I know, restarting Sublime also upgrades installed packages).