A minor issue:
The file https://github.com/Alexey-T/CudaText/blob/master/app/data/autocompletespec/css_list.ini has not had an update for five years. It does not contain any keywords for grid or flex (without prefixes), and I guess a lot of other things have made it into the specs since then. Does a ready-made update exist somewhere?
...edit: This seems pretty authoritative: https://www.w3.org/Style/CSS/all-properties.en.html
We have no update, until someone makes it.
OK, so I apparently had too much time...
I got the tab-separated values list from the W3C and removed the drafts, only to later add a few working drafts that seem to be well in use already (checking with MDN and Caniuse).
Then I went manually through all the new keywords and added the possible values. Also some of the existing CSS properties were updated when I noticed a change in the specs. I'm sure I overlooked many more changes, but adding missing values can be done quickly. Maybe removing deprecated keys and values would make sense, too, but I did not search for those. The vendor-prefixed keys at the end of the list were not changed. Inclusion of the global values "inherit,initial,unset" is pretty random. I did not try to sort the values in any way.
Here's the updated file:
https://gist.github.com/d-mal/ad69f30e230a2f2b7182963efe2e25eb
Good. So I can use this file, it seems. Let's wait some days, maybe you will fix issues you mentioned..
has used this list, even in current state it's ok. will be in next update. Tks.
I've just updated the gist again, mostly because there were wrong values in the old list, like border-left-color=color. So I replaced those with something valid and more useful... and I updated the "named colors" in a few places, but not everywhere where they might be used.
How could you get autocomplete to work for the selector side of CSS?
I was thinking of "at-rules" like @media, @page, @font-face and maybe pseudo-classes and -elements like :hover, :active, ::before, ::after. Would be cool if you could type an "@" or ":" and use autocomplete to choose from the options.
Lets make new file css_selectors.ini (or better name?) with 2 sections [@] [:], and I will try to use it. simple list of values like
:hover
:active
Sorry, I had another smaller update to the gist ("transparent" seems to be a valid value for color everywhere...)
Lets make new file css_selectors.ini (or better name?) with 2 sections
[@] [:], and I will try to use it. simple list of values like:hover :active
OK, I tried, does this look right?
https://gist.github.com/d-mal/aa73118475aca1f8dfaa6d39276ab948
I took the rules from MDN and left out those that were marked as experimental.
Hmm, can the :pseudo-classes and ::elements even work with autocomplete? They need to follow directly after a selector without a whitespace, so you would be typing button: and then press ctrl-space hoping for the autocomplete list. If you type button : and activate autocomplete, you are producing invalid CSS :-(
yes, updates are ok.
yes, completion will work, I just coded it for an hour.
good editor update, it will be.
Beta
http://www.uvviewsoft.com/c/
we have new file, data/autocompletespec/css_sel.ini. welcome to update it.
Pls test.
Edit. I dont know CSS good, so missed some tests
Fixed it, pls test, beta updated. @d-mal
Wow, you're fast! With a quick test I found no problems, it works very well!
I think this will make me enjoy my work even more. Thank you so much, that's real customer service ;-)
As a thank-you, I welcome some YouTube review (not short) or blog post on a good site (not short)
Sorry, I don't have a YouTube account and no blog either -- I'll just have to continue to tell everyone how good CudaText is personally or in forums or wherever else...