<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>Really appreciate the fix to make CSS autocompletion better in Geany.</div><div><br></div><div>Regarding creating a full CSS tags file with properties description, I've been delaying to make one because it is not usable in current Geany so it is not worth the effort. However, you can try my current CSS tags file here: <a href="https://github.com/trongthanh/geany-for-front-end-dev/blob/master/config/geany/tags/std.css.tags">https://github.com/trongthanh/geany-for-front-end-dev/blob/master/config/geany/tags/std.css.tags</a> with some properties already having value descriptions. If the calltip triggered by colon is supported, I'm definitely going to make a complete tags files.</div><div><br></div><div>About my tags files set, I have shared it on the wiki under the article:  <a href="http://wiki.geany.org/howtos/frontend">http://wiki.geany.org/howtos/frontend</a> (The tags files are still actively updated so I haven't shared it on the tags article yet)</div><div><br></div><div>Cheers,</div><div>Thanh</div><div><br></div><br><div><div>On 6 Oct, 2012, at 10:03 PM, <a href="mailto:devel-request@lists.geany.org">devel-request@lists.geany.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Message: 2<br>Date: Sat, 06 Oct 2012 14:30:55 +0200<br>From: Colomban Wendling <<a href="mailto:lists.ban@herbesfolles.org">lists.ban@herbesfolles.org</a>><br>To: <a href="mailto:geany-devel@uvena.de">geany-devel@uvena.de</a><br>Subject: Re: [Geany-Devel] [Geany-devel] Fix autocompletion for CSS<br><span class="Apple-tab-span" style="white-space:pre">       </span>files<br>Message-ID: <5070247F.2080107@<a href="http://herbesfolles.org">herbesfolles.org</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Hey,<br><br>Le 05/10/2012 07:58, Thanh Tran a ?crit :<br><blockquote type="cite">Hi guys,<br><br>I'm a front-end web developer and I enjoy using Geany so much. Currently<br>with some global tags files and minor filetypes tweak, I'm able to code<br>HTML & JavaScript quite comfortably. <br><br>However, it is still a pain to make use of the global tag completion in<br>CSS since Geany doesn't recognize minus/short dash "-" character as a<br>word character and terminate the auto completion hint box as soon as I<br>type the "-" character. Another issue with this is experimental vendor<br>prefixed properties (for e.g: -webkit-filter) are not hinted if I don't<br>remove the initial "-".<br></blockquote><br>I fixed this one (and you did it correctly -- at least as correctly as<br>we do now).  And you're right, it gives a way better CSS experience :)<br><br><blockquote type="cite">I'm not an experienced C/C++ developer so I avoided touching Geany<br>source code as much as possible. But for this one I have to tinker with<br>the source and was able to fix the issue with some quick edits. I'm<br>aware that my edits might break things and are not root cause solutions.<br>So I'm hoping that you guys can help fix it. My edits whi ch I'm sharing<br>here are just to get the ideas:<br><br><a href="https://github.com/trongthanh/geany/commit/35d782ce584006d5570657b08cf2be3ca5e9635e">https://github.com/trongthanh/geany/commit/35d782ce584006d5570657b08cf2be3ca5e9635e</a><br>https://github.com/trongthanh/geany/commit/da01cf86ff09b5ac5c083b7dd05b6770fbf6c9bf<br><br>Besides, my edits also add colon ":" as trigger character to show the<br>calltip (in CSS ONLY of course) so that it will display useful<br>information to set value for the CSS property. (see attachment). With a<br>full CSS tags file, the autocompletion and the calltip will greatly<br>enhance CSS coding experience in Geany. Again, this is just my proposal.<br></blockquote><br>This may be interesting, though I'm not 100% sure it fits that well in<br>Geany's core, it might be too specific -- and although it's not strictly<br>speaking a problem, things should rather either be general-purpose,<br>configurable or provided with language-specific goodies.  I'll take a<br>look at it.<br><br>BTW, I'm not aware of any CSS tag file that includes the properties'<br>descriptions, do you have one?  And if yes, would you mind providing it<br>for other to use it, e.g. on our wiki?  :)<br><a href="https://wiki.geany.org/tags/start#css_tags">https://wiki.geany.org/tags/start#css_tags</a><br><br><blockquote type="cite">In another note, I already tried adding "-" to wordchars settings in<br>filetypes.css and use editor_find_current_word_sciwc() but it is only<br>effective if I r emove the dash in whitespace_chars in filetypes.common.<br>The risk of breaking things by changing the filetypes.common is too<br>great that I can't use that function. But ultimately, I have a feeling<br>that current Geany hasn't use everything Scintilla providing and is not<br>flexible enough when handling word chars & white space chars.<br></blockquote><br>The problem is that our filetypes.common's whitespace_chars overrides<br>every wordchars -- even filetype-specific ones.  I fixed this in the Git<br>for wordchars to take precedence over whitespace_chars, which actually<br>seems more natural and more useful to me too.<br><br>Actually Scintilla classifies 4 kinds of characters: newlines, spaces<br>words and punctuation.  We only define spaces and words.  I'm not sure<br>if we should rather set punctuation, or if we should provide a setting<br>for it, I don't know correctly enough what Scintilla does with those to<br>decide.  Word is pretty obvious -- and documented -- but the other three<br>seems more vague.<br><br>Anyway, it should be better now.<br><br><blockquote type="cite">Anyway, I'm pretty happy with Geany right now and believe that Geany can<br>be better than commercialized one like SublimeText which I think is<br>overrated.<br></blockquote><br>He he, thanks!<br><br><br>Regards,<br>Colomban<br><br><br>------------------------------<br></blockquote></div><br></body></html>