aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-30array: allow arbitrarily sized array elementsMarc André Tanner1-2/+2
There exist two typical ways to use an array: 1) to hold pointers to externally allocated memory regions Use array_init(...) for initialization, an element has the size of a pointer. Use the functions suffixed with `_ptr' to manage your pointers. The cleanup function array_release_full must only be used with this type of array. 2) to hold arbitrary sized objects Use array_init_sized(...) to specify the size of a single element. Use the regular (i.e. without the `_ptr' suffix) functions to manage your objects. array_get will return a pointer to the object stored within the array.
2016-03-13vis: convert gn and gN text objects to use "/ register contentMarc André Tanner1-2/+12
2016-02-18Add infrastructure to register custom text object functionsMarc André Tanner1-5/+24
2016-02-18vis-lua: expose vis:textobject(id)Marc André Tanner1-1/+3
2016-02-15Add text object to cover lines with same indentation levelMarc André Tanner1-0/+1
By default it is mapped to i<Tab> and a<Tab> however there is currently no difference between the inner and regular version.
2016-02-12Mark some tables as constMarc André Tanner1-1/+1
This allows them to be placed into the read only ELF section.
2016-02-11vis: implement gn and gN text objectsMarc André Tanner1-0/+10
The behaviour when no match is found is not yet optimal.
2016-02-11vis: add support for different kind of text objectsMarc André Tanner1-26/+26
Up until now text objects would only ever grow/expand if applied multiple times. The new SPLIT type allows text objects which cover a completely different range when applied with a count.
2016-01-14vis: move text object definitions to separate fileMarc André Tanner1-0/+40