[TxMt] Re: Row iterator object
jjbernitt at gmail.com
Fri May 27 11:24:51 UTC 2016
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
iterate over each row in the editor
parse each row and search for levels of indentation
draw the indent guide up to the highest level of indentation
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.
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?
Thank you for the guidance!
Sent with Airmail
On May 20, 2016 at 7:47:40 AM, Joshua Bernitt (jjbernitt at gmail.com) wrote:
Yes, that helps! Thank you!
On 5/20/16, 3:06 AM, "Jacob Carlborg" <textmate-bounces+jjbernitt=gmail.com at lists.macromates.com on behalf of doob at me.com> wrote:
>On 2016-05-20 06:01, Joshua Bernitt wrote:
>> I am working around in the code, and I was trying to determine where the
>> row iterator object used in layout.cc is defined so I might study it’s
>> properties? Could anyone point me in the right direction? Much appreciated.
>_rows is declared in layout.h with the type "row_tree_t". row_tree_t is
>declared in the same file as "oak::basic_tree_t<row_key_t, paragraph_t>
>". basic_tree_t is actually mentioned in INTERNALS.md. basic_tree_t is
>declared in Shared/include/oak/basic_tree.h, there's an iterator
>declared in the same file.
>Hope that answers your question.
>textmate mailing list
>textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate