aboutsummaryrefslogtreecommitdiff
path: root/register.h
AgeCommit message (Collapse)AuthorFilesLines
2017-04-20vis: start cleaning up register related codeMarc André Tanner1-37/+0
Now that register.h is no longer used by view.h we can move the struct and function declarations to vis-core.h.
2017-04-19vis: restructure register handlingMarc André Tanner1-4/+13
Decouple register content from cursors. Previously each cursor had exactly one corresponding register. Now each register can save a list of values whose lifetime is not tied to the cursor. If multiple cursors exist and a put with a register holding only a single value is performed, then this value is inserted at every cursor location. If there are fewer values available than cursors, then only the matching ones will be used. If a register holding multiple values is inserted in a single cursor context, only the first value will be used. Another option would be to join all existing values. The details of this behavior might be changed in the future. <C-r> in insert mode has not yet been adapted and register handling in general needs to be cleaned up further. Fix #527
2016-05-22vis: move syntax highlighting to pure Lua codeMarc André Tanner1-4/+1
2016-03-15vis: slightly cleanup register related codeMarc André Tanner1-5/+6
2016-03-12register: add function to set register content to arbitrary dataMarc André Tanner1-0/+1
2016-03-12register: rename register put related functionsMarc André Tanner1-2/+2
2016-01-30Implement "A - "Z registersMarc André Tanner1-0/+1
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner1-2/+7
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
2016-01-30Implement blackhole register "_Marc André Tanner1-0/+4
2016-01-30Cleanup register implementationMarc André Tanner1-4/+3
2015-05-16Cleanup general purpose buffer APIMarc André Tanner1-1/+1
Introduce buffer_init to initialize a stack allocated buffer. Rename buffer_{alloc,free} functions because they do something different than the usual convention. They operate on the underlying buffer data but do not allocate/free an actual Buffer struct.
2014-12-18Macro supportMarc André Tanner1-1/+2
At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key.
2014-09-10Add comments where appropriateMarc André Tanner1-6/+4
2014-09-09Remove trailing whitespaces (sed 's/[ \t]*$//')Marc André Tanner1-2/+2
2014-09-03Rudimentary support for copy / paste via registersMarc André Tanner1-1/+6
2014-08-31Add rudimentary register implementationMarc André Tanner1-0/+16