I am currently doing that. This is one of two lingering to-do items needing to be resolved before I can consider the plugin done.
You raise a valid point.
Dustin Oprea
Why not just read and write the whole document as a single block? gedit is pretty much unusable with documents larger than a couple of megabytes (https://bugzilla.gnome.org/show_bug.cgi?id=172099), so your document will almost certainly be smaller than that. And I'm sure that your machine has at least a couple of gigabytes of RAM, so copying a chunk of even a few megabytes of memory should be no big deal.adam
On Sun, Oct 27, 2013 at 7:56 AM, Dustin Oprea <myselfasunder gmail com> wrote:
It looks like I can get iterators for each successive line of a document, but is it efficient to read individual lines this way, or is there a better way? I need to write a document out to a file in the background (to something other than the current location), but I'd prefer not to read the whole document as a single block, nor write it as a single block.I realize that I can also get a character-count for each line, but I'm not sure if this is an improvement. I'd also rather not be responsible for determine the correct newline-style.
Dustin Oprea