summaryrefslogtreecommitdiff
path: root/src/selectors.hh
AgeCommit message (Collapse)Author
2024-08-15Remove unused ConstexprVector and rename constexpr_utils.hh to array.hhMaxime Coste
2024-08-12Reduce headers dependency graphMaxime Coste
Move more code into the implementation files to reduce the amount of code pulled by headers.
2024-07-24De-templatize regex selection codeMaxime Coste
This led to lots of duplicated code gen, longer compile time, and most likely unnoticeable performance difference
2020-09-22Ensure that the capture group actually matched in select_matchesMaxime Coste
We were creating selections from default constructed iterators, which happened to have 0,0 coords and led to out-of-order selection lists. Fixes #3757
2019-10-17Remove explicit sizes from make_array callsMaxime Coste
2019-02-27Fixed Selection being defined as a struct and classJustin Frank
2019-02-17Add object mode expansionsJason Felice
2019-02-04Remove references to SelectionList from selectorsMaxime Coste
2019-02-04Remove target_eol and small code cleanupsMaxime Coste
2019-01-20Split compile time regex flags from runtime onesMaxime Coste
2018-09-30src: Implement <a-m> and <a-M>Frank LENORMAND
Closes #2425
2017-12-03Text-Objects: Use regex to select surroundingsMaxime Coste
Fixes #925
2017-11-01Make use of custom regex backward searching support for reverse searchMaxime Coste
2017-10-28Slight cleanup of select_surrounding implementationMaxime Coste
2017-10-10Remove unused forward declarationMaxime Coste
2017-06-26Pass a context instead of just the buffer to selector functionsMaxime Coste
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2017-03-15Small code tweaks regarding flags handlingMaxime Coste
2017-03-15Migrate WithBitOps template specialization to with_bit_ops functionMaxime Coste
This way we dont depend on knowing the base template to enable bit ops on an enum type.
2017-03-03Return an optional selection in most selectors, fail rather than keep currentMaxime Coste
Instead of returning the current selection when a selector fails, return an empty Optional<Selection>. That means object selections will now remove the selections that dont match the object.
2017-01-22Add `gi` to go to first non-blank character on lineMaxime Coste
Fixes #407
2017-01-16Use ints instead of unsigned for capture countMaxime Coste
2017-01-01Move some template code out of selectors.hh into selectors.ccMaxime Coste
2016-10-23Force wrapping when searching from buffer endMaxime Coste
Fixes #868
2016-10-05Fix select_to_previous_word with spaces at buffer startMaxime Coste
Fixes #844
2016-10-03Do not select the next word for inner word.Maxime Coste
2016-10-01Support codepoints of variable widthMaxime Coste
Add a ColumnCount type and use it in place of CharCount whenever more appropriate, take column size of codepoints into account for vertical movements and docstring wrapping. Fixes #811
2016-09-26Selecting 'around' word when on spaces after word now selects next wordMaxime Coste
2016-09-26Pass count to all object selectorsMaxime Coste
2016-06-22Do not go backward to when selecting to end of line from the end of lineMaxime Coste
Fixes #699
2016-05-10Use boost::wregex implementation and manually utf8 decode into itMaxime Coste
That way we get proper unicode support in regular expressions as long as the current locale treats wchar_t as unicode codepoints. Fixes #638 Fixes #595 Fixes #162
2016-05-09Make utf8_iterator codepoint type and difference type configurableMaxime Coste
2016-03-06Tweak useage of skip_while and move the functions in utils.hhMaxime Coste
2016-02-29Notify when searching for next match wraps around bufferMaxime Coste
Fixes #215
2016-02-04String usage cleanupsMaxime Coste
2016-01-27StringView based surround selectionMaxime Coste
2016-01-26Make find_surrounding more reusable and add unit testsMaxime Coste
2015-12-27Keep match whose end is closest to the selection in reverse regexO. Perret
search.
2015-12-23Pass flags to the regex engine to correct anchorsMaxime Coste
Current behaviour was matching ^ $ for the current search start/end (and \b was always matching begin/end as well). Fixes #536
2015-11-26select/split interpret count parameter as the capture group to useMaxime Coste
count being 0 by default, we use the whole match, but we can now specify to use capture 1 with 1s<regex><ret>.
2015-09-23Refactor utf8::iterator to be on the safe sideMaxime Coste
utf8::iterator now knows the iterator valid range, and pass it to utf8 functions.
2015-09-14Fix backward search searching from on char before the corret one.Maxime Coste
Fixes #406
2015-07-01Added argument text objectViktor Palmkvist
2015-06-08Change gl/gh to only move cursor, not selecting (<a-h>/<a-l>) are unchangedMaxime Coste
That is more consistant with other goto commands (that just move the cursor)
2015-06-01Port even more code to use format functionMaxime Coste
2015-04-15Remove is_blank, which is identical to is_horizontal_blankMaxime Coste
2015-03-29Move skip_while helpers to selectors.hhMaxime Coste
2015-03-27small formatting tweakMaxime Coste
2015-03-26Move some only used once inline functions directly in their callerMaxime Coste
No need to have that in a header, and not really selectors anyway
2015-03-26Add <alt-:> for ensuring selections are forward (cursor >= anchor)Maxime Coste
Not very useful interactively, but that feature can make macros much more robust.