| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2015-07-06 | text: overhaul file load implementation | Marc André Tanner | 1 | -3/+34 | |
| Files smaller than 8M are now copied into an internal buffer upon load. Thus they can be safely truncated. Larger files are memory mapped and use the file/virtual memory system as caching layer. Hence truncating them will corrupt the file content. Eventually the resulting SIGBUS should be handled gracefully. | |||||
| 2015-07-06 | text: overhaul save implemenation | Marc André Tanner | 1 | -38/+193 | |
| Try to do an atomic save using rename(2) unless * the file is a symbolic link * the file is a hard link * file ownership can not be preserved * file group can not be preserved * POSXI ACL can not be preserved (if enabled) * SELinux security context can not be preserved (if enabled) in which case the file is overwritten in place. However a failure to do so results in data loss. Closes #47. | |||||
| 2015-07-05 | text: store buffer allocation type (mmap or malloc) | Marc André Tanner | 1 | -16/+33 | |
| 2015-07-03 | Do not take a snapshot in text_range_write | Silvan Jegen | 1 | -2/+0 | |
| Since text_range_write is called several times in cmd_filter, the undo command does not undo the whole filter operation but only up to the last call of text_range_write. Removing the snapshot-taking code solves this issue. | |||||
| 2015-07-03 | Remove text dump debugging code | Marc André Tanner | 1 | -16/+0 | |
| Instead use the text-dump git branch if necessary. | |||||
| 2015-06-28 | Fix copy/paste error in text_restore | Marc André Tanner | 1 | -1/+1 | |
| This really needs some unit tests. | |||||
| 2015-06-28 | Replace a->time with a->seq in history_traverse_to | Ryan Chipman | 1 | -3/+3 | |
| 2015-06-28 | Add seq field to Action struct | Ryan Chipman | 1 | -0/+8 | |
| 2015-06-27 | Make :earlier and :later accept arguments similar to vim | Marc André Tanner | 1 | -8/+30 | |
| 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 | Mark internal undo tree functions as static | Marc André Tanner | 1 | -4/+4 | |
| 2015-06-27 | Core undo tree changes | Ryan Chipman | 1 | -50/+130 | |
| 2015-06-24 | fixed some typos in comments | Ryan Chipman | 1 | -2/+2 | |
| 2015-04-22 | Cleanup line ending type detection and insertion | Marc André Tanner | 1 | -7/+13 | |
| 2015-04-05 | Introduce new struct VisText | Marc André Tanner | 1 | -24/+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-02-03 | Fix :nnn where nnn > maximal number of lines | Marc André Tanner | 1 | -5/+9 | |
| 2015-01-18 | Do not leak memory in repeated text_filename_set calls | Marc André Tanner | 1 | -3/+4 | |
| 2015-01-16 | Print debug output to stdout | Marc André Tanner | 1 | -4/+4 | |
| Stderr is used for the editor output to make usage as a filter possible. | |||||
| 2015-01-16 | Avoid possible double close when saving | Marc André Tanner | 1 | -0/+1 | |
| We want close(2) to happen before rename(2). At some point the save implementation will have to be overhauled. | |||||
| 2015-01-11 | More useful error message when opening non regular files | Marc André Tanner | 1 | -1/+1 | |
| 2015-01-06 | Rudimentary change list (accessible via g; and g,) | Marc André Tanner | 1 | -0/+12 | |
| 2015-01-03 | Fix size_t specifiers in format strings | Matthias Braun | 1 | -1/+1 | |
| 2015-01-02 | Rip out insertion repeating infrastructure | Marc André Tanner | 1 | -13/+0 | |
| 2015-01-01 | Introduce externally managed marks | Marc André Tanner | 1 | -12/+23 | |
| 2015-01-01 | Rename mark related functions | Marc André Tanner | 1 | -6/+6 | |
| 2014-10-25 | Treat file read from stdin as unmodified | Marc André Tanner | 1 | -0/+1 | |
| 2014-10-25 | Introduce text_range_size | Marc André Tanner | 1 | -3/+6 | |
| 2014-10-25 | Support partial writes | Marc André Tanner | 1 | -9/+20 | |
| 2014-10-25 | Support partial saves | Marc André Tanner | 1 | -11/+24 | |
| 2014-10-25 | Change return type of text_save | Marc André Tanner | 1 | -4/+4 | |
| 2014-10-24 | Do not crash when given an invalid search pattern | Marc André Tanner | 1 | -1/+4 | |
| 2014-10-23 | Move feature test macros to config.mk | Marc André Tanner | 1 | -2/+0 | |
| 2014-10-19 | Preserve file permissions when saving | Stephen Paul Weber | 1 | -3/+10 | |
| 2014-10-17 | Make editor usable as a filter: echo foo | vis - | cat | Marc André Tanner | 1 | -1/+31 | |
| 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-17 | Read stdin when given - as filename | Marc André Tanner | 1 | -0/+12 | |
| 2014-09-28 | More helpful error when trying to open a non file | Marc André Tanner | 1 | -1/+3 | |
| This is not really correct e.g. vis /dev/zero will print a misleading error. | |||||
| 2014-09-28 | Make '.' repeat last insertion | Marc André Tanner | 1 | -0/+13 | |
| 2014-09-28 | Fix typo in piece table caching layer | Marc André Tanner | 1 | -1/+1 | |
| This resulted in uneccesary pieces of size 1. | |||||
| 2014-09-28 | Improve argument validation in text_insert | Marc André Tanner | 1 | -0/+2 | |
| 2014-09-22 | Add support for the '<', '>' marks | Marc André Tanner | 1 | -1/+1 | |
| 2014-09-19 | This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCE | Christian Hesse | 1 | -0/+1 | |
| warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE Commit 4f537d8e4bd9707a0048289f296510b76ce6d642 just fixed one of three cases. Fix the remaining. | |||||
| 2014-09-19 | Remove some TODO items | Marc André Tanner | 1 | -3/+0 | |
| 2014-09-19 | Support files with Windows style newlines \r\n | Marc André Tanner | 1 | -0/+15 | |
| 2014-09-19 | Windows style newlines are actually \r\n not \n\r | Marc André Tanner | 1 | -4/+1 | |
| This is fiddely stuff, hopefully it doesn't break too much | |||||
| 2014-09-16 | Fix editing of files with length 0 | Gregor Best | 1 | -3/+5 | |
| Signed-off-by: Gregor Best <gbe@unobtanium.de> | |||||
| 2014-09-14 | Fix save to absolute paths | Marc André Tanner | 1 | -9/+14 | |
| The save logic still needs changes to restore file permissions, ownership (if run as root) etc. | |||||
| 2014-09-14 | Make byte based iterator API handle the whole range [0, size] | Marc André Tanner | 1 | -5/+28 | |
| 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-14 | Use EPOS where appropriate | Marc André Tanner | 1 | -4/+4 | |
| 2014-09-14 | All *_free(...) functions should accept a NULL argument | Marc André Tanner | 1 | -0/+2 | |
| 2014-09-14 | Fix clang static analyzer warnings | Marc André Tanner | 1 | -0/+8 | |
| 2014-09-13 | Introduce some helper functions dealing with Filerange | Marc André Tanner | 1 | -0/+19 | |
