| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2017-05-03 | text: remove text_history_get function | Marc André Tanner | 1 | -3/+0 | |
| As currently implemented this does not properly integrate with multiple cursor support. The functionality should be provided in a layer higher up. The jumplist and changelist need to be redesigned, for now they are broken. | |||||
| 2017-05-03 | text: remove text_iterate macro | Marc André Tanner | 1 | -5/+0 | |
| 2017-05-03 | text: remove text_insert_newline function | Marc André Tanner | 1 | -2/+0 | |
| This is no longer needed because we always insert \n never \r\n. | |||||
| 2017-05-03 | text: remove count argument from text_{earlier,later} | Marc André Tanner | 1 | -2/+2 | |
| 2017-05-03 | text: add miscellaneous documentation section | Marc André Tanner | 1 | -8/+11 | |
| 2017-05-03 | text: rename text_sigbus to text_mmaped | Marc André Tanner | 1 | -3/+5 | |
| Add casts to uintptr_t to avoid unrelated pointer comparisons. | |||||
| 2017-05-03 | text: convert comments to doxygen format | Marc André Tanner | 1 | -84/+293 | |
| 2017-04-09 | vis: remove handling of \r\n line endings | Marc André Tanner | 1 | -9/+0 | |
| Use something like dos2unix(1) and unix2dos(1), if you need to edit such files. | |||||
| 2017-04-09 | text: drop special handling of \r\n line endings | Marc André Tanner | 1 | -6/+0 | |
| 2017-04-09 | text: add mem{r,}chr(3) based byte search functions | Marc André Tanner | 1 | -0/+2 | |
| These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl. | |||||
| 2017-04-08 | text: introduce text_char_get which converts \r\n to \n | Marc André Tanner | 1 | -0/+3 | |
| 2017-02-25 | text: add iterator accessor function which translates \r\n to \n | Marc André Tanner | 1 | -0/+3 | |
| 2016-12-23 | Apply format string attribute to printf style functions | Marc André Tanner | 1 | -2/+2 | |
| Not strictly C99 conform, but widely supported and easy enough to NOP for compilers which do not support it. Besides it was already used to mark certain functions as noreturn. | |||||
| 2016-12-23 | text: make text_vprintf static, it is only used within text.c | Marc André Tanner | 1 | -1/+0 | |
| 2016-12-22 | text: remove Filepos typedef | Marc André Tanner | 1 | -2/+0 | |
| The idea might be good, but it was almost unused. | |||||
| 2016-12-22 | text: introduce EMARK to denote an invalid mark | Marc André Tanner | 1 | -1/+3 | |
| Technically this macro name is in the reserved namespace of errno.h. The same is true for EPOS. Maybe we should rename them at some point, but for now the short names are convenient. Fix #443 Close #444 | |||||
| 2016-12-22 | text: change datatype of Mark to uintptr_t | Marc André Tanner | 1 | -1/+2 | |
| This should avoid undefined pointer comparisons. | |||||
| 2016-12-14 | text: expose text save method to calling code | Marc André Tanner | 1 | -1/+7 | |
| There are cases where it is useful to specify how the file should be saved. | |||||
| 2016-11-10 | vis-lua: change misnamed attribute values of `file.newlines` | Marc André Tanner | 1 | -2/+2 | |
| Also rename underlying C code. | |||||
| 2016-04-17 | text: add infrastructure to save non-contiguous ranges | Marc André Tanner | 1 | -0/+15 | |
| 2016-02-21 | Cleanup new line insertion code | Marc André Tanner | 1 | -1/+2 | |
| 2016-01-10 | text: introduce text_bytes_alloc0 utility function | Marc André Tanner | 1 | -0/+3 | |
| Heap allocates a zero terminated string of the given range. Freeing is the caller's responsibility. Checks for unsigned integer overflow i.e. passing SIZE_MAX as len will always fail because there is no room for the terminating NUL byte. This is important as EPOS is defined to be SIZE_MAX. | |||||
| 2015-12-31 | text: introduce text_newline_insert | Marc André Tanner | 1 | -0/+2 | |
| 2015-11-23 | text: introduce functions to iterate over graphemes | Marc André Tanner | 1 | -1/+6 | |
| They currently consider any character for which wcwidth(3) return 0 as a combining character. | |||||
| 2015-10-22 | text: introduce text_appendf utility function | Marc André Tanner | 1 | -0/+1 | |
| 2015-10-05 | text: add text_{v,}printf function | Marc André Tanner | 1 | -0/+3 | |
| Convenient way to insert formated data into a Text. | |||||
| 2015-08-08 | text: rename some functions to improve consistency | Marc André Tanner | 1 | -2/+2 | |
| 2015-08-08 | text: introduce helper function text_delete_range | Marc André Tanner | 1 | -0/+1 | |
| 2015-07-28 | text: move utility functions to separate file | Marc André Tanner | 1 | -14/+0 | |
| 2015-07-25 | text: add text_range_overlap | Marc André Tanner | 1 | -0/+2 | |
| 2015-07-22 | text: introduce text_range_new | Marc André Tanner | 1 | -0/+3 | |
| 2015-07-19 | vis: handle file truncation more gracefully | Marc André Tanner | 1 | -0/+3 | |
| If we use the file / virtual memory system as cache (using mmap(2)) and another process truncates the file we are editing, we have a problem. All we can do is catch the resulting SIGBUS, close the corresponding window and print a warning message. To test this use: $ dd if=/dev/zero of=TEST bs=8M count=1 $ vis TEST :! echo TRUNCATE > TEST | |||||
| 2015-07-19 | text: move regex related functions to separate file | Marc André Tanner | 1 | -9/+0 | |
| Eventually this should probably be rewritten to use an iternal regex engine, currently it has unacceptable memory usage, it copies the whole text. | |||||
| 2015-07-19 | text: slight cleanup, add a few comments | Marc André Tanner | 1 | -6/+34 | |
| 2015-07-06 | Warn when saving a file which has been changed outside the editor | Marc André Tanner | 1 | -0/+4 | |
| 2015-07-06 | text: remove text_load_fd and text_fd_get | Marc André Tanner | 1 | -4/+0 | |
| 2015-07-06 | Move filename from Text to File | Marc André Tanner | 1 | -4/+0 | |
| Also apply syntax rules every time the file name changes. | |||||
| 2015-07-03 | Remove text dump debugging code | Marc André Tanner | 1 | -3/+0 | |
| Instead use the text-dump git branch if necessary. | |||||
| 2015-06-27 | Make :earlier and :later accept arguments similar to vim | Marc André Tanner | 1 | -2/+8 | |
| Currently the following arguments are accepted: {count} Go to older text state {count} times. {N}s Go to older text state about {N} seconds before. {N}m Go to older text state about {N} minutes before. {N}h Go to older text state about {N} hours before. {N}d Go to older text state about {N} days before | |||||
| 2015-06-27 | Core undo tree changes | Ryan Chipman | 1 | -0/+2 | |
| 2015-04-22 | Cleanup line ending type detection and insertion | Marc André Tanner | 1 | -2/+9 | |
| 2015-04-21 | Remove redundant RegexMatch definition | Marc André Tanner | 1 | -5/+1 | |
| 2015-04-05 | Introduce new struct VisText | Marc André Tanner | 1 | -6/+0 | |
| This adds yet another layer of indirection and stores vi related stuff which is associated with a given text but shared among all windows displaying it (e.g. marks). This will also help if one wants to keep texts arround which aren't currently displayed. | |||||
| 2015-01-06 | Rudimentary change list (accessible via g; and g,) | Marc André Tanner | 1 | -0/+3 | |
| 2015-01-02 | Rip out insertion repeating infrastructure | Marc André Tanner | 1 | -2/+0 | |
| 2015-01-01 | Introduce externally managed marks | Marc André Tanner | 1 | -0/+4 | |
| 2015-01-01 | Rename mark related functions | Marc André Tanner | 1 | -5/+5 | |
| 2014-12-23 | Fix compiler warnings | Marc André Tanner | 1 | -5/+5 | |
| 2014-10-25 | Introduce text_range_size | Marc André Tanner | 1 | -0/+1 | |
| 2014-10-25 | Support partial writes | Marc André Tanner | 1 | -0/+1 | |
