<div>Hi guys,</div><div><br></div><div>I'm trying to update the Emmit HTML plugin (<a href="https://github.com/emmetio/emmet-objc">https://github.com/emmetio/emmet-objc</a>) to work in TM2.</div><div><br></div><div>It's pretty straightforward, it uses:</div><div><br></div><div>[<span style="color: #703daa">NSApp</span> <span style="color: #3d1d81">targetForAction</span>:<span style="color: #bb2ca2">@selector</span>(insertSnippetWithOptions:)]</div><div><br></div><div>to get the OakTextView that is active.</div><div><br></div><div>The problem comes when it needs to access the 'environmentVariables' method of the OakTextView… there isn't one.</div><div><br></div><div>It uses the result to access:</div><div><br></div><div>TM_LINE_NUMBER</div>
                <div><div>TM_LINE_INDEX</div><div><br></div><div>My question is how should I get those from the plugin?</div><div><br></div><div>I see that I need to somehow call editor_t::variables, but I don't know how I could call it from the OakTextView without including the TextMate headers and accessing the "editor" member of the OakTextView.</div><div><br></div><div>Is there something I'm missing?</div><div><br></div><div>-- </div><div>Caleb Land</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>