[Github-comments] [geany/geany] Command wildcards in snippets: line number and cursor position (#1543)
elextr
notifications at xxxxx
Tue Jul 18 02:26:27 UTC 2017
Line number is simple, but as has been discussed in these issues before, column position has multiple possible definitions in a UTF-8 document:
. byte number
. code point number (most code points are more than one byte)
. character number (some characters are more than one code point)
. glyph number (some glyphs are more than one code point)
. visual column number (some glyphs are zero, narrow, single and double width, and then there is non-monospaced fonts)
The environment variable name therefore should be explicit what it provides. Byte number is the only one easily available.
As the command run from a snippet can only see files stored on the filesystem, they can't see anything in the buffer, so as @philiprbrenan pointed out line/column values may not match the buffer if it has been edited and not saved.
So the usefulness of adding these values would seem limited.
--
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/issues/1543#issuecomment-315939955
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170718/55e6b6c1/attachment.html>
More information about the Github-comments
mailing list