summaryrefslogtreecommitdiff
path: root/src/filters.cc
AgeCommit message (Collapse)Author
2013-11-04remove filters, use hooks insteadMaxime Coste
2013-07-26memoryview: always pass by valueMaxime Coste
2013-06-06Buffer: insert and erase go back to taking iterators, and return iteratorsMaxime Coste
2013-06-06remove BufferIterator conversion to/from BufferCoordMaxime Coste
2013-06-04remove BufferIterator::is_{begin,end}Maxime Coste
2013-06-04remove BufferIterator::{line,column}()Maxime Coste
2013-06-04Remove Buffer::iterator_at_line_{begin,end}, use iterator_at(line{,+1})Maxime Coste
2013-06-04Use coord instead of iterators for selectionsMaxime Coste
2013-05-30minor code cleanups in filters.ccMaxime Coste
2013-04-09sort includes directivesMaxime Coste
2013-04-09rename assert to kak_assert to avoid collisionsMaxime Coste
2013-03-27Merge {Filter,Highlighter}Group in a FunctionGroup templateMaxime Coste
2013-03-05Strongly typed options supportMaxime Coste
* non builtins options require declaration using the decl command * At the moment, only int and string options are supported, however the goal of this change is to provide a consistent way to support more complex options, namely lists and booleans
2013-01-04various code style fixesMaxime Coste
2012-11-23filter: minor code cleanupMaxime Coste
2012-11-23Refactor filter and highlighter registry into a common templateMaxime Coste
2012-11-22rename (hook|option)_manager to (hook|option)s.Maxime Coste
And Global(Hook|Option)Manager to Global(Hook|Option)s
2012-11-20minor cleanupsMaxime Coste
2012-11-19Add a regex filterMaxime Coste
regex filter takes three arguments: <line_match> <insert_match> <replacement> <line_match> is checked from begining of line to point of insertion <insert_match> is checked on the inserted text (usually only one char) <replacement> is used to replace the inserted text, it can use $1..9 for captures in line_match, and $c to specify the cursor position. for example, ':addfilter regex .* \( ($c)' makes inserting an opening parens insert the closing one as well, keeping the insertion cursor in the right spot.
2012-11-19Pass the selection instead of only point of insertion to filtersMaxime Coste
2012-08-15misc cleanupsMaxime Coste
2012-08-10Buffer: move back Modification as an implementation detailMaxime Coste
* Filters now only works on insertion and take directly the iterator and content * use Buffer::insert and Buffer::erase to modify a buffer
2012-06-27Tweak String class, and cleanup usagesMaxime Coste
remove String::clear, add operator=(String&&) add str_to_int(const String&) to replace atoi.
2012-06-05fix some warnings detected with clangMaxime Coste
2012-06-12replace Option::operator {String,int} with Option::as_{string,int}Maxime Coste
2012-06-12Add a FilterGroup, and cleanup HighlighterGroupMaxime Coste
FilterGroup is similar to HighlighterGroup, it permits grouping together filters for easy removal.
2012-04-14replace std::string references with StringMaxime Coste
2012-04-03add an OptionManager class and use it to manage tabstopsMaxime Coste
OptionManager map names to options, and may delegate option resolution to it's parent if it does not contains the asked for option. That way Buffers can override global options, and Windows can override Buffer options.
2011-12-20Filters: add cleanup_whitespace filterMaxime Coste
this filter remove trailing whitespaces on the previous line when inserting an end-of-line.
2011-12-07Filters: move from buffer to windowMaxime Coste
2011-12-06Buffer: rename BufferModification to ModificationMaxime Coste
2011-12-03Filters: add expand_tabulations to insert spaces instead of tabsMaxime Coste
2011-12-02Buffer: add filter supportMaxime Coste
filters are functions called prior to applying a modification to a buffer. They can manipulate the modification to change the editor behaviour.
2011-11-29Rename Filter to Highlighter to be more explicitMaxime Coste
2011-11-26Filters: fix colorize_regex_range when range is not visibleMaxime Coste
2011-11-24Filters: tweak colorize_cplusplusMaxime Coste
2011-11-24SelectionHighlighter: highlight end of lines in selectionMaxime Coste
2011-11-24Filters: generalize colorize_regex in colorize_regex_rangeMaxime Coste
2011-11-15Filters: cleanup trailing whitespacesMaxime Coste
detected with ':addfilter regex \h+\n default red' !
2011-11-14Filters: colorize_regex supports matches spanning multiple display atomsMaxime Coste
2011-11-10Filters: make colorize_regex accessible through addfilterMaxime Coste
2011-11-09Filters: refactoringMaxime Coste
2011-11-09Filters: code cleanupMaxime Coste
2011-11-08Filters: register existing filters with the registryMaxime Coste
2011-11-04Filters: tweak colorize_cplusplusMaxime Coste
2011-10-27lines and columns used for user interaction are 1-indexedMaxime Coste
2011-10-26Filters: tweak colorize_cpluscplusMaxime Coste
2011-10-23Filters: rewrote colorize_regexMaxime Coste
2011-10-18DisplayBuffer: store atoms in a std::list instead of a vectorMaxime Coste
2011-10-17Filters: add a show line numbers filterMaxime Coste