aboutsummaryrefslogtreecommitdiff
path: root/window.h
AgeCommit message (Collapse)AuthorFilesLines
2015-04-22Rename window.[ch] to view.[ch]Marc André Tanner1-115/+0
2015-04-22More renames, no functional changesMarc André Tanner1-42/+42
Win -> View, window_* -> view_*
2015-04-07Set '< and '> marksMarc André Tanner1-1/+7
2015-04-03Add option to display relative line numbersMarc André Tanner1-2/+2
:set rnu Based on a patch by Sebastian Götte.
2015-04-03Preliminary user interface separationMarc André Tanner1-6/+24
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-13Add new logical linewise movementsMarc André Tanner1-0/+2
The column position is currently not correctly preserved when there are lines with multibyte characters involved spanning multiple screen lines. In general this might still be a bit fragile.
2015-01-13Rename window_line_* functionsMarc André Tanner1-6/+6
2015-01-04Change window_cursor_getxy APIMarc André Tanner1-1/+6
2014-12-23Optionally display line numbers alongside fileMarc André Tanner1-0/+2
Enable/disable with :set number [0|1]
2014-09-27Implement 'zt', 'zz', 'zb'Marc André Tanner1-0/+4
In particular 'zb' might not work if there are wrapped lines involved.
2014-09-24Implement 'g0', 'gm', 'g$'Marc André Tanner1-0/+3
2014-09-23Implement linewise visual modeMarc André Tanner1-1/+1
2014-09-19Implement expand tab functionality, make tabwidth configurableMarc André Tanner1-0/+2
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-16Implement CTRL-{U,D,E,Y} in normal modeMarc André Tanner1-2/+0
2014-09-16Clean up cursor handling in window.[ch]Marc André Tanner1-0/+8
2014-09-13Add movements 'H', 'M', 'L'Marc André Tanner1-0/+2
H moves to the n-th window line from top M moves to the middle window line L moves to the n-th window line from bottom
2014-09-11Add :edit commandMarc André Tanner1-0/+2
2014-09-11Fix warnings about redefinition of typedefed structsMarc André Tanner1-1/+1
2014-09-10Add comments where appropriateMarc André Tanner1-1/+17
2014-09-09Cleanup header filesMarc André Tanner1-2/+2
2014-09-09Remove trailing whitespaces (sed 's/[ \t]*$//')Marc André Tanner1-3/+3
2014-09-09Rename vis.[ch] to editor.[ch] and main.c to vis.cMarc André Tanner1-2/+2
2014-09-01Refactor frontend codeMarc André Tanner1-0/+47
window.[ch] now contains a somewhat generic editor window which is then enhanced in vis.[ch] with a statusbar.