<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve been digging around more in the effort to “pretty print” the indent guides, and my current plan (based on what I’ve seen) is to<ol><li>iterate over each row in the editor</li><li>parse each row and search for levels of indentation</li><li>draw the indent guide up to the highest level of indentation</li></ol><div>I don’t know of a different way to “pretty print” since each indent guide is determined by the current indent level at a row. If you have a better idea, please let me know. </div><div><br></div><div>As far as parsing goes, I haven’t seen anything specific that will automatically pull in a line up until ‘\n’. Is that correct, or did I miss a function somewhere? From what I see, I need to use the row iterator to pull each line from the buffer object, then use something in the text/ framework to parse each line? </div><div><br></div><div>Thank you for the guidance!</div></div> <div id="bloop_sign_1464347436548828160" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Josh Bernitt<br>Sent with Airmail</div></div> <br><p class="airmail_on">On May 20, 2016 at 7:47:40 AM, Joshua Bernitt (<a href="mailto:jjbernitt@gmail.com">jjbernitt@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Yes, that helps! Thank you!
<br>
<br>On 5/20/16, 3:06 AM, "Jacob Carlborg" <textmate-bounces+jjbernitt=gmail.com@lists.macromates.com on behalf of doob@me.com> wrote:
<br>
<br>>On 2016-05-20 06:01, Joshua Bernitt wrote:
<br>>> Hello,
<br>>>
<br>>> I am working around in the code, and I was trying to determine where the
<br>>> row iterator object used in layout.cc is defined so I might study it’s
<br>>> properties? Could anyone point me in the right direction? Much appreciated.
<br>>
<br>>_rows is declared in layout.h with the type "row_tree_t". row_tree_t is  
<br>>declared in the same file as "oak::basic_tree_t<row_key_t, paragraph_t>  
<br>>". basic_tree_t is actually mentioned in INTERNALS.md. basic_tree_t is  
<br>>declared in Shared/include/oak/basic_tree.h, there's an iterator  
<br>>declared in the same file.
<br>>
<br>>Hope that answers your question.
<br>>
<br>>--  
<br>>/Jacob Carlborg
<br>>
<br>>
<br>>_______________________________________________
<br>>textmate mailing list
<br>>textmate@lists.macromates.com
<br>>http://lists.macromates.com/listinfo/textmate
<br>
<br>
<br></div></div></span></blockquote></body></html>