aboutsummaryrefslogtreecommitdiff
path: root/editor.c
AgeCommit message (Collapse)AuthorFilesLines
2015-04-07Set '< and '> marksMarc André Tanner1-5/+20
2015-04-05Introduce new struct VisTextMarc André Tanner1-62/+89
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-329/+59
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-16Reorder if/else clause in order to avoid dead codeMarc André Tanner1-4/+4
2015-01-14Fix segfault when using arrow keys in promptMarc André Tanner1-5/+6
2015-01-06Rudimentary change list (accessible via g; and g,)Marc André Tanner1-0/+28
2015-01-02Make last insertion/replacement repeatable with '.'Marc André Tanner1-1/+0
2015-01-01Add rudimentary support for jump list (CTRL+{O,I})Marc André Tanner1-1/+39
2015-01-01Rename mark related functionsMarc André Tanner1-2/+2
2014-10-24Make command prompt available in visual modesMarc André Tanner1-2/+4
2014-10-23Move feature test macros to config.mkMarc André Tanner1-2/+0
2014-10-17Read stdin when given - as filenameMarc André Tanner1-0/+11
2014-09-25Actually set global tabwidthMarc André Tanner1-0/+1
2014-09-24Change split/vsplit APIMarc André Tanner1-22/+16
2014-09-22Add support for the '<', '>' marksMarc André Tanner1-2/+8
2014-09-19This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCEChristian Hesse1-0/+1
warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE Commit 4f537d8e4bd9707a0048289f296510b76ce6d642 just fixed one of three cases. Fix the remaining.
2014-09-19Implement expand tab functionality, make tabwidth configurableMarc André Tanner1-0/+13
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-18Do only open an empty buffer if the file does not existMarc André Tanner1-1/+1
Opening a file without having read permissions should fail.
2014-09-18Clean up window splitting APIMarc André Tanner1-36/+45
2014-09-16Import syntax rules from sandyMarc André Tanner1-1/+4
2014-09-15More efficient syntax highlighting, first match winsMarc André Tanner1-7/+7
2014-09-14All *_free(...) functions should accept a NULL argumentMarc André Tanner1-0/+2
2014-09-14Fix clang static analyzer warningsMarc André Tanner1-2/+4
2014-09-13Rename text_insert_raw to text_insertMarc André Tanner1-2/+2
2014-09-13Introduce and use EPOS instead of (size_t)-1Marc André Tanner1-1/+1
2014-09-12Add facility to display a message to the userMarc André Tanner1-1/+28
2014-09-12Fix loading of not yet existing filesMarc André Tanner1-1/+4
2014-09-12Rename text_filename to text_filename_getMarc André Tanner1-2/+2
2014-09-12Restore cursor position after an undo/redoMarc André Tanner1-1/+2
2014-09-11Add :edit commandMarc André Tanner1-0/+23
2014-09-11Add :qall commandMarc André Tanner1-4/+5
2014-09-10Fix :q commandMarc André Tanner1-6/+8
2014-09-10Simplify drawing of the window statusbarMarc André Tanner1-7/+3
2014-09-10Simplify cursor color managementMarc André Tanner1-1/+71
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/+483
2014-09-01Refactor frontend codeMarc André Tanner1-1169/+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/+15
Still very incomplete
2014-08-25Move motion related stuff into own fileMarc André Tanner1-178/+27
2014-08-24Add work in progress editor frontendMarc André Tanner1-0/+1305
2014-08-14Rename files editor.[ch] -> text.[ch]Marc André Tanner1-1094/+0
2014-08-14Change 'namespace' Editor -> TextMarc André Tanner1-91/+91
2014-08-13Add search functionalityMarc André Tanner1-0/+81
2014-08-13Add support for file marksMarc André Tanner1-0/+18
2014-08-07Add function to query line-numer <-> byte offset mappingMarc André Tanner1-3/+113
2014-08-02Further improve iterator APIMarc André Tanner1-22/+56
- 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-45/+86
2014-07-22Reindent commentsMarc André Tanner1-8/+12
2014-07-22Perform argument validationMarc André Tanner1-4/+5
2014-07-22Rename content => dataMarc André Tanner1-41/+41