aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-08-13Add search functionalityMarc André Tanner2-0/+94
2014-08-13Add support for file marksMarc André Tanner2-0/+24
2014-08-07Add function to query line-numer <-> byte offset mappingMarc André Tanner2-3/+117
2014-08-02Further improve iterator APIMarc André Tanner2-29/+68
- iterator_get now returns the correct piece - add utf8 aware methods to move by a character in either direction
2014-08-01Improve iterator APIMarc André Tanner2-51/+103
2014-07-22Reindent commentsMarc André Tanner1-8/+12
2014-07-22Perform argument validationMarc André Tanner1-4/+5
2014-07-22Rename content => dataMarc André Tanner2-43/+43
2014-07-22API cleanupMarc André Tanner2-25/+31
Add editor_{insert,replace}_raw and const modifiers where appropriate.
2014-07-22Rename Editor::pos -> Editor::lenMarc André Tanner1-15/+15
2014-07-22Refactor editor_saveMarc André Tanner1-10/+7
2014-07-22Add prototypesMarc André Tanner1-1/+15
2014-07-22Remove redundant functionMarc André Tanner1-18/+5
2014-07-22Remove unnecessary special case for inserting into an empty documentMarc André Tanner1-21/+7
2014-07-22Fix bugs in caching layerMarc André Tanner1-8/+27
Thw lenght of the whole text (ed->size) also has to be updated. Also do not allocate changes if the operations are performed in the cache.
2014-07-22Add some more commentsMarc André Tanner1-2/+26
2014-07-21Introduce cache layerMarc André Tanner1-27/+108
If multiple consecutive modifications happen to lie within the same piece perform the operations "in place". In particular no new pieces will be allocated if the changes occur at the end of the most recently modified piece. In this case the piece is simply extended. However changes in the middle of a piece involve memove(3) calls which might hurt performance. Since no new pieces are created the changes can't be undone on an individual basis. The frontend should therefore call 'editor_snapshot' at appropriate times inorder to invalidate the cache.
2014-07-21Add iterator functions to walk through textMarc André Tanner2-1/+62
2014-07-21Add comments regarding deletionMarc André Tanner1-1/+16
2014-07-17Add some ascii art to illustrate insertionMarc André Tanner1-0/+28
2014-07-17Implement modification detectionMarc André Tanner1-3/+6
2014-07-17Remove trailing white spacesMarc André Tanner1-11/+11
2014-07-17Document data structuresMarc André Tanner2-34/+58
2014-07-17Throw away redo history once a new action is performedMarc André Tanner1-7/+27
Keep all pieces in a global double linked list such that individual pieces can be removed.
2014-07-17Simplify + add prototypesMarc André Tanner2-11/+18
2014-07-16Introduce buffer holding textMarc André Tanner2-29/+143
2014-07-16Implement replacement/overwriteMarc André Tanner2-1/+9
2014-07-16Implement deletionMarc André Tanner2-2/+70
2014-07-15Implement insertionMarc André Tanner2-39/+79
2014-07-15Inital importMarc André Tanner2-0/+336
Still far from useable