aboutsummaryrefslogtreecommitdiff
path: root/text.h
AgeCommit message (Collapse)AuthorFilesLines
2014-10-17Make editor usable as a filter: echo foo | vis - | catMarc André Tanner1-1/+5
The terminal output is by default redirected to stderr, making stdout available for communications purposes. If a file is "opened" from stdin (i.e. vis is given '-' as argument) and a subsequent write without a filename is performed as in ":wq" the output is written to stdout.
2014-10-17Read stdin when given - as filenameMarc André Tanner1-0/+1
2014-09-28Make '.' repeat last insertionMarc André Tanner1-0/+2
2014-09-19Support files with Windows style newlines \r\nMarc André Tanner1-0/+2
2014-09-14Make byte based iterator API handle the whole range [0, size]Marc André Tanner1-1/+6
Before this commit the valid range was [0, size) which represents the file content. For the position at EOF (=size) a NUL byte is returned which is not actually part of the underlying file. This should fix various movements / editing operations at the end of the file. For example Ctrl+w at the end of the command prompt.
2014-09-13Introduce some helper functions dealing with FilerangeMarc André Tanner1-0/+4
2014-09-13Rename text_insert_raw to text_insertMarc André Tanner1-2/+1
2014-09-13Introduce and use EPOS instead of (size_t)-1Marc André Tanner1-1/+3
2014-09-12Introduce text_filename_setMarc André Tanner1-0/+2
This can be used to associate a given filename to a currently unnamed text.
2014-09-12Rename text_filename to text_filename_getMarc André Tanner1-1/+1
2014-09-12Restore cursor position after an undo/redoMarc André Tanner1-2/+4
2014-09-10If text has been created from an empty file, store filename upon first saveMarc André Tanner1-0/+1
2014-09-10Add comments where appropriateMarc André Tanner1-1/+1
2014-09-09Cleanup header filesMarc André Tanner1-0/+2
2014-09-08Hook up search as a movementMarc André Tanner1-2/+2
2014-09-08Unify variable namingMarc André Tanner1-7/+7
Only textual substitution no functional changes.
2014-08-25Move motion related stuff into own fileMarc André Tanner1-0/+11
2014-08-14Remove useless replace APIMarc André Tanner1-2/+0
The removed junk might not have the same length as the newly inserted one.
2014-08-14Rename files editor.[ch] -> text.[ch]Marc André Tanner1-0/+72