aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-22vis: improve :help text, add separate status mode namesMarc André Tanner1-1/+1
2015-10-15ui: add uniform function prefixMarc André Tanner1-22/+22
Not strictly necessary since those are static, but still nicer.
2015-10-15ui: cleanup redrawingMarc André Tanner1-60/+58
2015-10-14view: cleanup option handlingMarc André Tanner1-10/+12
2015-10-14ui: refactor syntax style definitionsMarc André Tanner1-12/+410
Styles can now be specified as strings which will make them easier to specify from outside the editor. The following style attributes can be given in a comma separated list: bold italics underlined fore:color back:color where color is either a hex value of the form #aabbcc or one of the predefined colors: black red green yellow blue magenta cyan white
2015-10-08ui: fix ressource leak (CID 114606)Marc André Tanner1-5/+6
2015-10-05vis: rework input handling using libtermkeyMarc André Tanner1-43/+41
Key bindings are now specified as symbolic key strings, this will eventually allow run time configurable key mappings. This introduces a bulid time dependency on libtermkey which can be found at: http://www.leonerd.org.uk/code/libtermkey/
2015-09-06ui: differentiate between Ctrl-J and enterMarc André Tanner1-0/+1
Thus enter no longer creates new cursors, use CTRL-j instead. Closes #69
2015-08-18ui: remove translation of ^b to backspaceMarc André Tanner1-1/+0
Closes #67
2015-08-12ui: query terminal size on stderrMarc André Tanner1-1/+2
We always draw the editor user interface to stderr in order to allow usage as a filter e.g. $ echo Hello | vis - | grep World > out hence stdin might be redirected and we should always read the terminal size from stderr. Closes #66
2015-08-09ui: make cursor visible when executing external programsMarc André Tanner1-0/+2
This also affects the file open dialog.
2015-07-28ui: try to fixup unicode display issuesMarc André Tanner1-0/+7
The handling of combining characters needs to be reviewed there are still strange things going on. This only covers up some of the artifacts.
2015-07-26view: always fill out complete cell matrixMarc André Tanner1-22/+8
2015-07-26vis: add infrastructure to support multiple cursors/selectionsMarc André Tanner1-10/+5
This cleans up the existing selection handling code and adds the necessary bits to eventually support multiple cursors/selections. The cursor position is kept track of using marks, which means retrieving the cursor position is no longer a constant time operation. Furthermore the terminal cursor is no longer used, instead the whole window is redrawn after every cursor movement.
2015-07-21ui: further separate curses related user interface codeMarc André Tanner1-4/+15
By now ui-curses.[hc] are the only files dealing directly with curses related functions. Integration of a proper mainloop is still pending.
2015-07-09ui: abstract curses related special keys awayMarc André Tanner1-1/+0
2015-07-09ui: unify backspace handlingMarc André Tanner1-0/+13
2015-07-09ui: move terminal state handling code to ui specific fileMarc André Tanner1-0/+11
2015-07-09ui: move input handling code to ui specific filesMarc André Tanner1-0/+42
2015-07-06Move filename from Text to FileMarc André Tanner1-15/+17
Also apply syntax rules every time the file name changes.
2015-07-03Add :show command to display special symbols for whitespacesMarc André Tanner1-1/+3
Enable/disable by setting to 0/1 respectively: :set show spaces=0 tabs=0 newlines=1
2015-04-22More renames, no functional changesMarc André Tanner1-12/+12
Win -> View, window_* -> view_*
2015-04-11Remove global mode stateMarc André Tanner1-1/+1
Once again show mode in window status bar.
2015-04-11Further ui separation, eliminate global stateMarc André Tanner1-16/+33
2015-04-07Set '< and '> marksMarc André Tanner1-18/+10
2015-04-07Prevent black flicker on loadJohn W. Trengrove1-0/+1
2015-04-05Fix clang static analyzer warningsMarc André Tanner1-1/+1
2015-04-04Fix drawing of selectionMarc André Tanner1-10/+7
2015-04-04Move more curses related stuff to ui-curses.cMarc André Tanner1-0/+7
2015-04-03Add option to display relative line numbersMarc André Tanner1-2/+14
:set rnu Based on a patch by Sebastian Götte.
2015-04-03Preliminary user interface separationMarc André Tanner1-0/+568
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.