| Age | Commit message (Collapse) | Author | Files | Lines |
|
Not strictly necessary since those are static, but still nicer.
|
|
|
|
|
|
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
|
|
|
|
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/
|
|
Thus enter no longer creates new cursors, use CTRL-j instead.
Closes #69
|
|
Closes #67
|
|
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
|
|
This also affects the file open dialog.
|
|
The handling of combining characters needs to be reviewed there are
still strange things going on. This only covers up some of the artifacts.
|
|
|
|
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.
|
|
By now ui-curses.[hc] are the only files dealing directly with
curses related functions. Integration of a proper mainloop is
still pending.
|
|
|
|
|
|
|
|
|
|
Also apply syntax rules every time the file name changes.
|
|
Enable/disable by setting to 0/1 respectively:
:set show spaces=0 tabs=0 newlines=1
|
|
Win -> View, window_* -> view_*
|
|
Once again show mode in window status bar.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:set rnu
Based on a patch by Sebastian Götte.
|
|
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.
|