aboutsummaryrefslogtreecommitdiff
path: root/text-io.c
AgeCommit message (Collapse)AuthorFilesLines
2025-11-24text: remove a bunch of unused save functionsRandy Palamar1-41/+1
These functions were only used for testing the text system. One of them was moved to text-test.c to continue to facilitate this. Otherwise these functions are just cluttering up the code and making it hard to modify.
2025-11-24text-io: make TextSave visibleRandy Palamar1-61/+27
Having a failure case on allocing a TextSave is stupid. Ideally there would be no allocations in the file saving path but we have to replace the braindead dirname(3) with an internal implementation.
2025-11-24text-io: do not free the temporary file name before unlinking the fileFlorian Fischer1-2/+0
2024-09-13support piping a buffer to an external processFlorian Fischer1-1/+1
Currently only Text objects can be piped to external commands. This is tedious if data not available in any file should be passed to an external process (e.g. building options and passing them to vis-menu). This adds the option to pass a buffer to _vis_pipe and provides wrapper functions for the original behavior and the new one.
2023-02-12text-io: close "cwd" in all casesSilvan Jegen1-2/+3
2022-12-10Add dealing with error value from fchdir in text-io.cMatěj Cepl1-1/+2
2020-12-10fix typos in commentsMoesasji1-2/+2
2020-10-10text: move I/O related code to separate fileMarc André Tanner1-0/+548
This groups all I/O related code together to make it reusable in different core text data structure implementations.