summaryrefslogtreecommitdiff
path: root/src/buffer.cc
AgeCommit message (Collapse)Author
2014-05-13LineChangeWatcher uses Buffer::changes_since rather than listeningMaxime Coste
2014-05-12Maintain an append-only list of changes in BufferMaxime Coste
2014-05-10Minor code cleanups in buffer.{cc,hh}Maxime Coste
2014-05-07Refactor LineAndColumn coordinatesMaxime Coste
BufferCoord -> ByteCoord DisplayCoord -> CharCoord Moved their definition along with LineAndColumn into coord.hh
2014-04-07Add g. command to go to the last buffer modification positionMaxime Coste
2014-04-02Fix clang compilationMaxime Coste
2014-01-12rename buffer_iterator.inl.hh as buffer.inl.hh and inline some more methodsMaxime Coste
2014-01-12Store timestamp of last content modification in buffer linesMaxime Coste
That means that lines that move around keep their timestamp.
2014-01-11Clear buffer values explicitely in destructorMaxime Coste
Buffer values could be registered as a listener, so we need to get rid of them before asserting that all listeners have been unregistered.
2014-01-09Buffer: maintain a per line timestampMaxime Coste
2014-01-08Fix DynamicSelectionList selecting buffer end on Buffer::reloadMaxime Coste
2014-01-05Fix some tabs in the codeMaxime Coste
2013-12-20Get rid of Editor for goodMaxime Coste
ClientManager now stores only the free windows, clients take ownership of its own.
2013-12-16remove useless code in Buffer constructorMaxime Coste
2013-12-15Remove Editor::move_selectionsMaxime Coste
2013-12-12Fix Buffer::char_next when the line ends with an invalid utf8 sequenceMaxime Coste
2013-12-11Add Buffer::run_hook_in_own_context helper methodMaxime Coste
2013-11-14Extract InputHandler from ClientMaxime Coste
2013-11-14indent cleanup, correct erroneous 3 spaces indentMaxime Coste
2013-11-12Add BufSetOption hook supportMaxime Coste
2013-11-07fix Buffer constructor exception safetyMaxime Coste
2013-10-25Add key mapping supportMaxime Coste
2013-10-21Add Buffer::reload for reloading buffers without loosing options and hooksMaxime Coste
2013-10-17More robust Buffer filesystem timestamp handlingMaxime Coste
2013-10-15Detect file external modification and ask the user whether to reload or notMaxime Coste
* Buffer now store a m_fs_timestamp field. * Client in Normal mode checks current buffer file every 500 ms, or each time it goes back to Normal mode.
2013-07-26LineAndColumns: always pass by valueMaxime Coste
2013-06-27more tolerant Buffer::stringMaxime Coste
2013-06-12Fix UndoGroupOptimizerMaxime Coste
2013-06-06Buffer: always use {line_count(), 0} as end in ModificationsMaxime Coste
2013-06-06Buffer: insert and erase go back to taking iterators, and return iteratorsMaxime Coste
2013-06-06UndoGroupOptimizer: fix count_byte_toMaxime Coste
2013-06-06replace remaining plain assert with kak_assertMaxime Coste
2013-06-06remove unused Buffer::char_atMaxime Coste
2013-06-06remove Buffer:char_{distance,advance} use line access insteadMaxime Coste
2013-06-06Buffer: remove line_length and replace line_content with operator[]Maxime Coste
2013-06-06remove BufferIterator conversion to/from BufferCoordMaxime Coste
2013-06-04tweak Buffer::{,char_}prevMaxime Coste
2013-06-04Remove Buffer::iterator_at_line_{begin,end}, use iterator_at(line{,+1})Maxime Coste
2013-06-04tweak Buffer::do_insertMaxime Coste
2013-06-03Buffer: add methods for char access instead of byte accessMaxime Coste
2013-06-01BufferChangeListener: pass buffer to on_{inser,erase}Maxime Coste
2013-05-30remove avoid_eol parameter from Buffer::{iterator_at,clamp}Maxime Coste
2013-05-30Add Buffer::{next,prev,at}(BufferCoord) methods and use them in iteratorsMaxime Coste
2013-05-30Buffer insert and erase takes coord rather than iteratorsMaxime Coste
2013-05-30DisplayBuffer: use coords rather than iteratorsMaxime Coste
2013-05-29Buffer::do_{erase,insert} takes coord parameters rather than iteratorsMaxime Coste
BufferChangeListeners do as well use coord rather than iterators
2013-05-29Buffer: add some method to work directly with coord instead of iteratorsMaxime Coste
2013-04-30Fix UndoGroupOptimizerMaxime Coste
2013-04-29Fix UndoGroupOptimizerMaxime Coste
2013-04-26When committing an undo group, run an optimization pass on itMaxime Coste
With incremntal insertion, undo groups tends to be a lot of single character insertion/deletions at the same point, but the end result is most of the time a single string insertion. Buffer now tries to optimize the undo group.