| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-03-21 | vis: also lookup Lua support files relative to the binary location | Marc André Tanner | 1 | -0/+17 | |
| This simplifies deployment of vis on remote systems without root access. The idea is to extract a statically linked binary together with the lexer syntax files into some directory, adjust $PATH to include it and have everything just work. For now this uses /proc/self/exe and thus only works on Linux based systems. | |||||
| 2016-03-12 | vis-lua: allow to set window.syntax = nil | Marc André Tanner | 1 | -1/+3 | |
| This will load the default lua color theme. | |||||
| 2016-02-18 | vis-lua: add file:content(pos, len) function | Marc André Tanner | 1 | -0/+19 | |
| 2016-02-18 | vis-lua: expose vis:textobject_register | Marc André Tanner | 1 | -0/+24 | |
| 2016-02-18 | vis-lua: expose vis:textobject(id) | Marc André Tanner | 1 | -0/+8 | |
| 2016-02-18 | vis-lua: add vis:motion_register function | Marc André Tanner | 1 | -0/+24 | |
| It registers a lua function which will be called whenever the motion is used. | |||||
| 2016-02-18 | vis-lua: expose vis_motion to lua | Marc André Tanner | 1 | -0/+9 | |
| 2016-02-18 | vis-lua: expose mode constants to lua | Marc André Tanner | 1 | -0/+30 | |
| 2016-02-18 | vis-lua: expose win.syntax | Marc André Tanner | 1 | -0/+17 | |
| 2016-02-18 | vis-lua: expose cursor:to(line, col) | Marc André Tanner | 1 | -2/+21 | |
| 2016-02-18 | vis-lua: promote vis to a real object | Marc André Tanner | 1 | -16/+67 | |
| That is from now on use vis:method instead of vis.method | |||||
| 2016-02-18 | vis: add possibility to bind keys to lua functions | Marc André Tanner | 1 | -0/+85 | |
| 2016-01-30 | Improve Lua error reporting | Marc André Tanner | 1 | -7/+29 | |
| Display Lua errors in a dedicated window/file. A typo or missing dependency (e.g. lpeg) in visrc.lua will no longer silently fail without any indication. The Lua integration in view.h is not yet converted. | |||||
| 2015-12-31 | vis-lua: implement vis.events.{start,quit} events | Marc André Tanner | 1 | -2/+11 | |
| 2015-12-31 | vis-lua: implement window.cursor.{line, col, pos} | Marc André Tanner | 1 | -0/+57 | |
| These are currently read-only properties. | |||||
| 2015-12-31 | vis-lua: implement vis.lines[..] array | Marc André Tanner | 1 | -14/+90 | |
| This allows access to specific lines of a file, array indicies/line numbers are 1 based. Read access is supported for [1, #lines] while assigning to the 0 element will insert a new line at the beginning of the file. Similarly assigning to lines[#lines+1] will add a new line at the end of the file. The returned lines will not contain any line termination characters. | |||||
| 2015-12-31 | vis-lua: implement vis.open(filename) | Marc André Tanner | 1 | -0/+12 | |
| 2015-12-31 | vis-lua: rename a few functions | Marc André Tanner | 1 | -35/+50 | |
| 2015-12-31 | vis-lua: remove unnecessary casts | Marc André Tanner | 1 | -8/+8 | |
| 2015-12-29 | vis: fix default lua package.path and support $XDG_CONFIG_HOME | Marc André Tanner | 1 | -13/+22 | |
| The ordered list of paths for startup and lexer files is: - $VIS_PATH/{,lexers} - $XDG_CONFIG_HOME/vis/{,lexers} (defaulting to $HOME/.config/vis/{,lexers}) - /usr/local/share/vis/{,lexers} - /usr/share/vis/{,lexers} - package.path (standard lua search path) | |||||
| 2015-12-26 | vis: change Lua package.path to also include vis base directory | Marc André Tanner | 1 | -8/+12 | |
| 2015-12-26 | vis: refactor Lua integration | Marc André Tanner | 1 | -0/+491 | |
| Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1. | |||||
