<p>Line number is simple, but as has been discussed in these issues before, column position has multiple possible definitions in a UTF-8 document:</p>
<p>. byte number<br>
. code point number (most code points are more than one byte)<br>
. character number (some characters are more than one code point)<br>
. glyph number (some glyphs are more than one code point)<br>
. visual column number (some glyphs are zero, narrow, single and double width, and then there is non-monospaced fonts)</p>
<p>The environment variable name therefore should be explicit what it provides.  Byte number is the only one easily available.</p>
<p>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 <a href="https://github.com/philiprbrenan" class="user-mention">@philiprbrenan</a> pointed out line/column values may not match the buffer if it has been edited and not saved.</p>
<p>So the usefulness of adding these values would seem limited.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1543#issuecomment-315939955">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ0yv5JJooGA49BZitZwDAh7DPTCjks5sPBfSgaJpZM4OZEE-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-EEo5G_egrP3UYS5j4fONljtAnWks5sPBfSgaJpZM4OZEE-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1543#issuecomment-315939955"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1543: Line number is simple, but as has been discussed in these issues before, column position has multiple possible definitions in a UTF-8 document:\r\n\r\n. byte number\r\n. code point number (most code points are more than one byte)\r\n. character number (some characters are more than one code point)\r\n. glyph number (some glyphs are more than one code point)\r\n. visual column number (some glyphs are zero, narrow, single and double width, and then there is non-monospaced fonts)\r\n\r\nThe environment variable name therefore should be explicit what it provides.  Byte number is the only one easily available.\r\n\r\nAs 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.\r\n\r\nSo the usefulness of adding these values would seem limited."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1543#issuecomment-315939955"}}}</script>