Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
| * | | shada: Do not allow empty keys | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: When reading marks or registers, free items when set fails | ZyX | 2015-10-08 | |
| | | | ||||
| * | | *: Make ShaDa code use VimL values for additional_\* data | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada,documentation: Extend read error handling, handle write errors | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Modifications: - If file was not written due to write error then writing stops and temporary file will not be renamed. - If NeoVim detects that target file is not a ShaDa file then temporary file will not be renamed. | |||
| * | | documentation: Document ShaDa compatibility features | ZyX | 2015-10-08 | |
| | | | ||||
| * | | scripts: Also print entry offset in shadacat.py | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada,functests: Test how ShaDa support code reacts on errors | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some notes: - Replaced msgpack_unpacker usage with regular xmalloc’ed buffer. Also since msgpack_unpack_next (as well as msgpack_unpacker_next) is not ever going to return MSGPACK_UNPACK_EXTRA_BYTES this condition was checked manually. Function that does return this status is msgpack_unpack, but it is marked as obsolete. - Zero type is checked prior to main switch in shada_read_next_item because otherwise check would be skipped. - Zeroing entry at the start of shada_read_next_item makes it safer. - dedent('') does not work. - v:oldfiles list is only replaced with bang, if it is NULL or empty. | |||
| * | | shada: Make all mapping keys have at most 2 byte length | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | Now all keys are defined in a way that makes it easy to redefine if needed. | |||
| * | | shada: Do not handle EINTR in open_file | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | It is already handled by libuv which is used by os_open. | |||
| * | | shada: Do not export shada_read_file | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | Unlike some wrapper functions it is not used actually, so no need to export it. Also removed ShadaPosition typedef which was not used. | |||
| * | | shada: Translate errors and add error codes | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: - E136 code greatly changed its meaning: now it is write error and not read error. - E195 was removed because shada_read_everything will already do all the necessary error reporting. - E886 can be reported by both :rshada and :wshada, but :rshada comes first and AFAIR it is the only error which is not E575 and can be reported by :rshada. | |||
| * | | shada: Only check errno if read/write returned -1 | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | According to the manual (POSIX) this is the only case when errno is set by these functions. This is needed because some functions (e.g. buflist_new) leave errno set to non-zero value under some conditions (e.g. when opening non-existing files). | |||
| * | | shada: Put pointer to the close function into reader/writer structure | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Handle all possible msgpack_unpacker_next returns | ZyX | 2015-10-08 | |
| | | | ||||
| * | | viminfo: Remove old code | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Add support for merging everything like described in the doc | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Do not copy history entries when writing | ZyX | 2015-10-08 | |
| | | | ||||
| * | | documentation: Document how ShaDa entries should be merged | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Do not save search pattern/sub string when it is older | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Use os_strerror in place of strerror in some places | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Use os_mkdir_recurse to create directory for ShaDa file | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Refactor history merger to use statically sized 2linked list | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | Also fixes the error: when writing shada files existing history items may be freed. Warning: valgrind reports some memory leaks. | |||
| * | | functests: Test that history is still accessible after :wshada | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Refactor history merging support to separate functions | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Preserve existing file permissions | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Populate v:oldfiles | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Save v:hlsearch value | ZyX | 2015-10-08 | |
| | | | ||||
| * | | main: Silence -Wunused-result in main.c for shada_read_file | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Add more size_t casts | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | As usual, GCC is overparanoid with -Wconversion. | |||
| * | | Deprecate &viminfo and :[rw]v, add &shada and :[rw]sh | ZyX | 2015-10-08 | |
| | | | ||||
| * | | Replace references to viminfo in various places | ZyX | 2015-10-08 | |
| | | | ||||
| * | | functests: Fix change list ShaDa test failures | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Use “write then rename” variant by default for writing shada | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Test that history string does not contain zero byte | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | | | | | | | This test can safely be ignored for other kinds of strings, but history string contains separator after the last NUL byte and string containing NUL byte inside thus means that separator will be placed at one position, but seeked at another. | |||
| * | | functests: Test &encoding support | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Add support for converting strings that are read or written | ZyX | 2015-10-08 | |
| | | | ||||
| * | | documentation: Update documentation | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Refactor file reading/writing to use os_open | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada,functests: Refactor shada items skipping | ZyX | 2015-10-08 | |
| | | | ||||
| * | | functests: Test dumping and loading change list | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Reassign some entry types to WantInfo and WantMarks | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | kShaDaWantMarks now loads only local file change list and file-local marks. kShaDaWantInfo now loads global marks and jump list. | |||
| * | | functests: Add tests for dumping/restoring registers | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Add support for dumping and restoring buffer list | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Use pre-populated set of buffers on removable media | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | | | | Should be faster then constantly running shada_removable for each buffer many times. | |||
| * | | shada: Do not record removable buffers and marks | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Add support for dumping/restoring bufs changes and win jumps | ZyX | 2015-10-08 | |
| | | | ||||
| * | | functests: Test loading last search/substitute pattern/replacement | ZyX | 2015-10-08 | |
| | | | ||||
| * | | functests: Add history tests | ZyX | 2015-10-08 | |
| | | | ||||
| * | | shada: Initial support for merging history | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | Currently only merges history when reading ShaDa file. No tests yet. | |||
| * | | shada: Skip reading some items if needed | ZyX | 2015-10-08 | |
| | | | | | | | | | | | | Avoids unneeded malloc()s/free()s and lots of code for parsing. |