CSS3 icon indicating copy to clipboard operation
CSS3 copied to clipboard

No autocomplete for hex values

Open FeBe95 opened this issue 10 years ago • 7 comments

It seems that there is kind of a bug or missing feature that all "#112233" values won't get (auto-)completed - when already used somewhere else in the CSS file. When I change the syntax to e.g. "Plain Text" the completion works as expected. Ctrl+space doesn't work either.

FeBe95 avatar Apr 26 '15 22:04 FeBe95

I can confirm that hex values don't show up in auto-complete suggestions and agree that this would be a nice feature. I tinkered for an hour and wasn't able to figure it out. I'll have to deepen my understanding of how symbol indexing works in Sublime to implement this.

ryboe avatar Apr 27 '15 00:04 ryboe

Thank you!

FeBe95 avatar Apr 27 '15 10:04 FeBe95

I found out that any custom completion inside {} is ignored. Sublime only lists the values given by your CSS3 package while inside the brackets. Autocomplete of hex values outside the brackets is working!

FeBe95 avatar Apr 27 '15 13:04 FeBe95

Any Update?

FeBe95 avatar May 04 '15 21:05 FeBe95

Sorry, I haven't had time to work on this yet. I'm gonna work on it this weekend, though. It's definitely on my TODO list.

ryboe avatar May 05 '15 17:05 ryboe

UPDATE: While I was working on improving the symbol indexing, I discovered that the new dev builds of Sublime Text 3 introduce an entirely new system for syntax highlighting. It's a much better system than the old TextMate XML-based garbage. Since symbol indexing is somewhat coupled to the scope names assigned by the syntax highlighter, I've decided to put off any more work on symbol indexing while I rewrite the highlighter from scratch. That's going to take a long time (sorry!), but it should fix a lot annoying bugs. I will keep this issue open and come back to it when the new highlighter has stabilized.

ryboe avatar May 11 '15 04:05 ryboe

Any updates on this topic?

FeBe95 avatar Feb 12 '18 00:02 FeBe95