aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
AgeCommit message (Collapse)AuthorFilesLines
2015-11-23text: introduce functions to iterate over graphemesMarc André Tanner1-4/+4
They currently consider any character for which wcwidth(3) return 0 as a combining character.
2015-08-07vis: limit to/till movements to current lineMarc André Tanner1-0/+3
2015-08-02vis: add motions [[, [], ][, ]]Marc André Tanner1-0/+8
They behave not like in vim, but instead try to find the start/end of C-like function definitions. The first character stands for the direction [ for backwards, ] for forwards. The second character denotes the start [ or end ] respectively.
2015-07-28text-motion: introduce text_line_char_{get,set}Marc André Tanner1-0/+4
2015-07-28text-motion: add functions to iterate over lines of a rangeMarc André Tanner1-0/+5
2015-07-24text-motion: introduce text_line_{up,down}Marc André Tanner1-0/+3
2015-07-19text: move regex related functions to separate fileMarc André Tanner1-0/+1
Eventually this should probably be rewritten to use an iternal regex engine, currently it has unacceptable memory usage, it copies the whole text.
2015-07-03Add movements to next/previous character within same lineMarc André Tanner1-0/+3
These movements always keep the cursor on the same line and do not move over newlines.
2015-04-21Clean up to/till movementsMarc André Tanner1-2/+2
2015-04-10Highlight matching cursor symbolMarc André Tanner1-0/+2
2015-01-13Add new logical linewise movementsMarc André Tanner1-0/+1
The column position is currently not correctly preserved when there are lines with multibyte characters involved spanning multiple screen lines. In general this might still be a bit fragile.
2014-09-27Add text objects for word (lowercase) variantMarc André Tanner1-0/+3
2014-09-25Add infrastructure for word (lowercase) motionsMarc André Tanner1-9/+10
This unfortunately doesn't work as is which is why it is not actually hooked up to key bindings.
2014-09-25Perform some renames in preparation for different word typesMarc André Tanner1-4/+4
2014-09-25Introduce text_line_lastcharMarc André Tanner1-4/+5
2014-09-25Revert "Change semantics of text_line_end"Marc André Tanner1-2/+2
This reverts commit 3a24e6a5562e4b1ea456fbe36607bd8a9c92744d.
2014-09-24Change semantics of text_line_endMarc André Tanner1-2/+2
Also make movement to end of line inclusive. This has the effect that $ moves to the last character on a line but d$ still deletes said character.
2014-09-19Windows style newlines are actually \r\n not \n\rMarc André Tanner1-1/+1
This is fiddely stuff, hopefully it doesn't break too much
2014-09-10text-motions: add text_line_prev functionMarc André Tanner1-2/+3
2014-09-10text-motions: fix no match case of text_find_char_{next,prev}Marc André Tanner1-1/+2
These functions should return the original position in case no match was found.
2014-09-10Add comments where appropriateMarc André Tanner1-5/+14
2014-09-09Remove trailing whitespaces (sed 's/[ \t]*$//')Marc André Tanner1-3/+3
2014-09-08Hook up search as a movementMarc André Tanner1-0/+3
2014-09-05Add helper function which finds the start of the next lineMarc André Tanner1-2/+3
2014-08-30Add trivial text motions to start and end of fileMarc André Tanner1-0/+3
2014-08-28motion: add character wise motionMarc André Tanner1-0/+3
2014-08-28Improve text motionsMarc André Tanner1-5/+8
2014-08-25Move motion related stuff into own fileMarc André Tanner1-0/+58