aboutsummaryrefslogtreecommitdiff
path: root/editor.h
AgeCommit message (Collapse)AuthorFilesLines
2015-04-11Eliminate global state for repetition of last modificationMarc André Tanner1-0/+1
2015-04-11Eliminate global state for :set optionsMarc André Tanner1-0/+1
2015-04-11Lazy initialization of :-commandsMarc André Tanner1-0/+2
2015-04-07Set '< and '> marksMarc André Tanner1-0/+1
2015-04-05Remove unused struct memberMarc André Tanner1-1/+0
2015-04-05Introduce new struct VisTextMarc André Tanner1-16/+27
This adds yet another layer of indirection and stores vi related stuff which is associated with a given text but shared among all windows displaying it (e.g. marks). This will also help if one wants to keep texts arround which aren't currently displayed.
2015-04-03Preliminary user interface separationMarc André Tanner1-24/+15
In theory only ui-curses.[hc] should depend on curses, however in practice keyboard input is still handled in vis.c. Furthermore the syntax definitions as well as keyboard bindings and selection code in window.c still depends on some curses constants. There is also a slight regression in that the window status bar does not show the current mode name. This and related global state should be eliminated in the future.
2015-01-06Rudimentary change list (accessible via g; and g,)Marc André Tanner1-0/+9
2015-01-04implement rudimentary autoindentMatthias Braun1-0/+1
2015-01-01Add rudimentary support for jump list (CTRL+{O,I})Marc André Tanner1-0/+7
2014-12-18Macro supportMarc André Tanner1-0/+3
At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key.
2014-10-24Make command prompt available in visual modesMarc André Tanner1-2/+2
2014-10-17Read stdin when given - as filenameMarc André Tanner1-0/+1
2014-09-24Change split/vsplit APIMarc André Tanner1-4/+5
2014-09-22Add support for the '<', '>' marksMarc André Tanner1-0/+2
2014-09-19Implement expand tab functionality, make tabwidth configurableMarc André Tanner1-0/+6
If expandtab is enabled then inserted tabs are replaced by tabwidth amount of spaces. Both settings apply to all windows files and can be changed via: :set tabwidth n # where 1 <= n <= 8 :set expandtab (1|yes|true)|(0|no|false)
2014-09-18Clean up window splitting APIMarc André Tanner1-7/+7
2014-09-15More efficient syntax highlighting, first match winsMarc André Tanner1-3/+1
2014-09-12Cleanup editor.hMarc André Tanner1-5/+5
2014-09-12Add facility to display a message to the userMarc André Tanner1-0/+5
2014-09-12Add some more API commentsMarc André Tanner1-2/+7
2014-09-11Add :edit commandMarc André Tanner1-0/+2
2014-09-11Add :qall commandMarc André Tanner1-1/+1
2014-09-10Fix :q commandMarc André Tanner1-1/+0
2014-09-10Simplify drawing of the window statusbarMarc André Tanner1-4/+2
2014-09-10Simplify cursor color managementMarc André Tanner1-6/+0
2014-09-10Add comments where appropriateMarc André Tanner1-2/+24
2014-09-09Cleanup header filesMarc André Tanner1-27/+3
2014-09-09Remove trailing whitespaces (sed 's/[ \t]*$//')Marc André Tanner1-2/+2
2014-09-09Rename vis.[ch] to editor.[ch] and main.c to vis.cMarc André Tanner1-0/+166
2014-09-01Refactor frontend codeMarc André Tanner1-109/+0
window.[ch] now contains a somewhat generic editor window which is then enhanced in vis.[ch] with a statusbar.
2014-08-31First part of a vi like frontendMarc André Tanner1-0/+3
Still very incomplete
2014-08-25Move motion related stuff into own fileMarc André Tanner1-4/+6
2014-08-24Add work in progress editor frontendMarc André Tanner1-0/+104
2014-08-14Rename files editor.[ch] -> text.[ch]Marc André Tanner1-72/+0
2014-08-14Change 'namespace' Editor -> TextMarc André Tanner1-41/+41
2014-08-13Add search functionalityMarc André Tanner1-0/+13
2014-08-13Add support for file marksMarc André Tanner1-0/+6
2014-08-07Add function to query line-numer <-> byte offset mappingMarc André Tanner1-0/+4
2014-08-02Further improve iterator APIMarc André Tanner1-7/+12
- iterator_get now returns the correct piece - add utf8 aware methods to move by a character in either direction
2014-08-01Improve iterator APIMarc André Tanner1-6/+17
2014-07-22Rename content => dataMarc André Tanner1-2/+2
2014-07-22API cleanupMarc André Tanner1-2/+4
Add editor_{insert,replace}_raw and const modifiers where appropriate.
2014-07-21Add iterator functions to walk through textMarc André Tanner1-1/+11
2014-07-17Document data structuresMarc André Tanner1-6/+6
2014-07-17Simplify + add prototypesMarc André Tanner1-6/+1
2014-07-16Introduce buffer holding textMarc André Tanner1-0/+1
2014-07-16Implement replacement/overwriteMarc André Tanner1-1/+1
2014-07-16Implement deletionMarc André Tanner1-1/+1
2014-07-15Implement insertionMarc André Tanner1-1/+1