[Github-comments] [geany/geany] Snippets: Use ASCII ellipsis for the cursor placeholder (957b49b)

Colomban Wendling notifications at xxxxx
Fri Jul 28 03:37:57 UTC 2017


> I disagree that it looks better, I prefer one char. Unfortunately … is troublesome.

Well, I don't feel like `_` really looks like a placeholder in the context of programming.  Maybe a space would fit better for only one ASCII character?

> I then chose _ because it's also less likely to mess up the tagmanager due to syntax errors introduced by the ellipsis.

It is indeed, though good parsers should handle it not too badly.  But that might be a valid point indeed.  I guess ideally the snippet could provide the placeholder, to expand like:
```
def [function_name]([arguments]):
    """[documentation]"""
    [body]
```
with `[]` representing the indicator range.  But that's a whole other story.

@codebrainz @elextr opinions on that?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/commit/957b49b868214a4aea81641dedeabb98a497e4c1#commitcomment-23346900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170728/07f3286c/attachment.html>


More information about the Github-comments mailing list