aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
AgeCommit message (Collapse)AuthorFilesLines
2020-08-01vis: remove ae outer entire text objectMarc André Tanner1-3/+0
Use :, which is a short hand for :0,$ instead.
2020-08-01vis: remove ie inner entire text objectMarc André Tanner1-3/+0
2018-03-05Fix a typo in identifiersTwoFinger1-4/+4
2018-02-27vis: implement normal/outer paragraph text objectMarc André Tanner1-0/+3
2017-05-06vis: add doxygen commentsMarc André Tanner1-2/+1
Rename some structures, add typedefs for function pointers, remove unused arguments from vis_run.
2017-04-02Fix Debian package lintian warningsMarc André Tanner1-1/+1
https://mentors.debian.net/package/vis
2017-02-15vis: remove motion and text objects related to C functionsMarc André Tanner1-6/+0
These do not really belong into the editor core. If desired they could be implemented in Lua instead.
2017-02-07vis: improve text object handlingMarc André Tanner1-2/+2
Fix `gN` and delimited inner variants when given a count.
2017-02-07vis: reformat text object definitionsMarc André Tanner1-29/+103
2016-08-24vis: improve dot (repeat) command implmentationMarc André Tanner1-1/+1
Do not override implicit operator macro in command mode. Fix #334
2016-08-24vis: improve unpaired text objectsMarc André Tanner1-6/+54
For unpaired text objects delimited by ", ' or ` if there is no preceding symbol on the same line, advance starting position to first occurence on the same line. As a result ci" can be used to change the inner quotes on the same line even if the cursor is currently to the left of the opening quote. If the line contains no such symbol at all then the text objects will will continue to match across line boundaries. This behavior is different in vim where for example a ci" command on a line without any quotes has no effect. Close #358
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