autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Preload Files in Project based on specified glob

Open MattDiMu opened this issue 9 years ago • 7 comments

The possibility to specify for each project files / directories (a node glob pattern), which are preloaded for autocompletion would be a huge improvement. This would vastly improve the user experience, which is already mentioned in #571 and #723. E.g. I specify 'app/config/*.scss' and get all variables used in the files from this folder autocompleted all the time. They are treated just as if they were open.

There are many (language-independent) cases, where some global variables and functions from config files are used all over the project. Having these variables available as autocompletion all the time would be very nice.

Currently, as workaround, I have 3-4 of such files open all the time (and accidentally close/reopen them from time to time)

MattDiMu avatar Oct 07 '16 08:10 MattDiMu

I would love to be able to do this sort of thing. In our site, we have the CSS & pattern library in its own project/repository. I really wish I could point all my other projects at it for autocompletion of class names.

keithjgrant avatar Oct 14 '16 14:10 keithjgrant

Oh I definitely like this idea. Seems to be a nice way, if nothing else in the short term, to tackle this pretty major missing feature in Atom. It's definitely super frustrating to have to always have my scss files open in order to make the autocomplete functionality at all useful for class names.

But beyond scss and html, as Matt said, I can imagine many other use cases where project wide autocomplete is extremely useful.

onetrev avatar Oct 31 '16 05:10 onetrev

Hi, has there been any progress on this feature request? This would be incredibly helpful, I work on my 13in MBP with precious screen real estate and having to keep a vars.scss file open to use autocomplete sucks.

Shaneprrlt avatar Dec 07 '16 17:12 Shaneprrlt

No one from the Atom team is actively working on this. PRs are welcome.

winstliu avatar Dec 07 '16 22:12 winstliu

Bummer (and surprising) to hear this is not being worked on by the Atom team. In my opinion this is pretty close to a core / essential feature of code editor. It is significantly helpful, especially in the web dev world that is increasingly modular, to be able to have proper cross project autocomplete of things like classes and sass variables.

onetrev avatar Dec 20 '16 05:12 onetrev

@onetrev Yeah! It'd speed up so much of my work if this part of Atom worked like a traditional IDE.

Shaneprrlt avatar Dec 20 '16 05:12 Shaneprrlt

I think there are many of us using @MattDiMu horrible work around of keeping these files open for the sake of autocomplete, which is even farther hindered by the fact that there is no pinned tab package that works the way you would need to make this workaround viable, if you could make a pinned tab VERY difficult to close by mistake this wouldn't be so bad. Start your project pin your files and not have to worry until you are finished the project. Not ideal but would help a lot, all the pinned tab packages I have tried are still too simple to close by mistake.

nickfmc avatar Dec 22 '16 20:12 nickfmc