Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Autocomplete CSS class/id in HTML/PHP files (and vice versa optionally) #13

Open
PixelT opened this issue Sep 16, 2015 · 8 comments
Open

Comments

@PixelT
Copy link

PixelT commented Sep 16, 2015

It will be nice, when I write:

<div class="">

and the cursor is betwteen class="|" the autocomplete will show the class / id which I defined in my sass / scss / less / css files

Optionally: When I start write in sass / scss / less / css files by typing . or # the autocomplete display class / id which I defined in my HTML / PHP files.

@florianbouvot
Copy link

+1

sadovnychyi added a commit to sadovnychyi/autocomplete-html that referenced this issue Dec 30, 2015
@sadovnychyi
Copy link

Take a look on my PR #21

@PixelT
Copy link
Author

PixelT commented Mar 18, 2016

Somebody think / work about this functionality?

@sadovnychyi
Copy link

@PixelT #21 – it works, but still needs a lot of improvements.

@admosity
Copy link

admosity commented May 4, 2016

This has been the crux of my life since I switched to atom. I work a lot in angular and none of the word completions are available to me.

I can switch autocomplete-plus' default provider to fuzzy search instead of symbol, but then I don't get the nice symbol notifications:

image

Fuzzy (yes! completions):

image

Symbol (no auto completions 😦 ):

image

I am pretty new to atom plugin development, but I've done some PRs to some linters in atom. If someone can point me to some docs and where to start to help out; I'd gladly contribute!

@onetrev
Copy link

onetrev commented May 30, 2017

I was super bummed when I saw recently that Atom 1.18 beta listed this in the improvements:
"Improved suggestions in autocomplete-html"

But sadly, that did not include any movement on this issue. Am I in the minority here thinking the lack of this functionality is a major hinderance to anyone doing web dev with Atom, which has to be a big percentage of the users?

@50Wliu
Copy link
Contributor

50Wliu commented May 30, 2017

Yep I'm aware. As you can see by #21, integrating CSS completions properly is a much harder task to do than the improvements I made in Atom 1.18. No one has had time to review that PR yet.

@onetrev
Copy link

onetrev commented Sep 16, 2017

Hey @PixelT, @florianbouvot and @admosity ... I recently found this package https://github.com/aidistan/atom-symbols-view-plus which solves the main request of autocompletion in your HTML class declarations without having to have all the files open. Atocomplete of classes in your sass / css / etc, is still not possible as far as I know, but I think that's probably less important.

Hopefully now with the Filesystem watcher API coming in Atom 1.21, both these items can finally be tackled and with core packages! But for now at least the package above definitely helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants