aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* shada: Do not export shada_read_fileZyX2015-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 codesZyX2015-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 -1ZyX2015-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 structureZyX2015-10-08
|
* shada: Handle all possible msgpack_unpacker_next returnsZyX2015-10-08
|
* viminfo: Remove old codeZyX2015-10-08
|
* shada: Add support for merging everything like described in the docZyX2015-10-08
|
* shada: Do not copy history entries when writingZyX2015-10-08
|
* documentation: Document how ShaDa entries should be mergedZyX2015-10-08
|
* shada: Do not save search pattern/sub string when it is olderZyX2015-10-08
|
* shada: Use os_strerror in place of strerror in some placesZyX2015-10-08
|
* shada: Use os_mkdir_recurse to create directory for ShaDa fileZyX2015-10-08
|
* shada: Refactor history merger to use statically sized 2linked listZyX2015-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 :wshadaZyX2015-10-08
|
* shada: Refactor history merging support to separate functionsZyX2015-10-08
|
* shada: Preserve existing file permissionsZyX2015-10-08
|
* shada: Populate v:oldfilesZyX2015-10-08
|
* shada: Save v:hlsearch valueZyX2015-10-08
|
* main: Silence -Wunused-result in main.c for shada_read_fileZyX2015-10-08
|
* shada: Add more size_t castsZyX2015-10-08
| | | | As usual, GCC is overparanoid with -Wconversion.
* Deprecate &viminfo and :[rw]v, add &shada and :[rw]shZyX2015-10-08
|
* Replace references to viminfo in various placesZyX2015-10-08
|
* functests: Fix change list ShaDa test failuresZyX2015-10-08
|
* shada: Use “write then rename” variant by default for writing shadaZyX2015-10-08
|
* shada: Test that history string does not contain zero byteZyX2015-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 supportZyX2015-10-08
|
* shada: Add support for converting strings that are read or writtenZyX2015-10-08
|
* documentation: Update documentationZyX2015-10-08
|
* shada: Refactor file reading/writing to use os_openZyX2015-10-08
|
* shada,functests: Refactor shada items skippingZyX2015-10-08
|
* functests: Test dumping and loading change listZyX2015-10-08
|
* shada: Reassign some entry types to WantInfo and WantMarksZyX2015-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 registersZyX2015-10-08
|
* shada: Add support for dumping and restoring buffer listZyX2015-10-08
|
* shada: Use pre-populated set of buffers on removable mediaZyX2015-10-08
| | | | | Should be faster then constantly running shada_removable for each buffer many times.
* shada: Do not record removable buffers and marksZyX2015-10-08
|
* shada: Add support for dumping/restoring bufs changes and win jumpsZyX2015-10-08
|
* functests: Test loading last search/substitute pattern/replacementZyX2015-10-08
|
* functests: Add history testsZyX2015-10-08
|
* shada: Initial support for merging historyZyX2015-10-08
| | | | Currently only merges history when reading ShaDa file. No tests yet.
* shada: Skip reading some items if neededZyX2015-10-08
| | | | Avoids unneeded malloc()s/free()s and lots of code for parsing.
* functests: Add tests for mark dumping/readingZyX2015-10-08
|
* functests: Add tests for ShaDa variables dumping/readingZyX2015-10-08
|
* main: Read marks at startupZyX2015-10-08
| | | | | I do not know why marks were not read originally, but without this change marks are not going to be read at startup when Vim starts without arguments.
* shada: Use glibc functions to convert from big endian, add a fallbackZyX2015-10-08
|
* viminfo: First version of ShaDa file dumpingZyX2015-10-08
| | | | | | | | | | | | | | | | | | | | What works: 1. ShaDa file dumping: header, registers, jump list, history, search patterns, substitute strings, variables. 2. ShaDa file reading: registers, global marks, variables. Most was not tested. TODO: 1. Merging. 2. Reading history, local marks, jump and buffer lists. 3. Documentation update. 4. Converting some data from &encoding. 5. Safer variant of dumping viminfo (dump to temporary file then rename). 6. Removing old viminfo code (currently masked with `#if 0` in a ShaDa file for reference).
* mark: Fix valgrind error in mark.cZyX2015-10-08
| | | | Caused by using memcpy for assigning one structure to another.
* os/fs: Define os_strerror as an alias to uv_strerrorZyX2015-10-08
| | | | It is not needed to know that os/* uses libuv.
* api: represent api type String as msgpack type STR. closes #1250Björn Linse2015-10-08
|
* Merge pull request #3430 from fwalch/deps/update-libtermkeyJustin M. Keyes2015-10-07
|\ | | | | deps: Update to libtermkey 0.18.