| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-12-13 | build: add configure options for built-in lpeg support | Marc André Tanner | 1 | -1/+1 | |
| 2016-12-12 | Allow building lpeg into vis | Michael Forney | 1 | -0/+9 | |
| If lpeg is built statically, this allows for a completely static vis binary that still supports syntax highlighting. | |||||
| 2016-12-09 | vis-lua: add generic way to expose C text objects to Lua | Marc André Tanner | 1 | -1/+41 | |
| Expose text_object_word as an example. | |||||
| 2016-12-09 | vis-lua: add comment about possibly outdated Lua API documentation | Marc André Tanner | 1 | -0/+2 | |
| 2016-12-09 | vis-lua: expose input key event in insert and replace modes | Marc André Tanner | 1 | -1/+34 | |
| 2016-12-08 | vis-lua: only fail file_save_pre event if explicitly returned false | Marc André Tanner | 1 | -1/+1 | |
| Previously we would also interpret a missing return value `nil` as is the case when no pre save event handler is subscribed as failure. | |||||
| 2016-12-08 | vis-lua: move mode constants from vis.MODE_* to vis.modes.* | Marc André Tanner | 1 | -33/+33 | |
| 2016-12-08 | vis-lua: add optional help parameter to mapping functions | Marc André Tanner | 1 | -2/+6 | |
| 2016-12-08 | vis-lua: expose init event and use it to set default theme | Marc André Tanner | 1 | -1/+10 | |
| The init event is emitted immediately after `visrc.lua` has been sourced, but before any other events have occured, in particular the command line arguments have not yet been processed. Close #422 | |||||
| 2016-12-08 | lua: add simple event multiplexing mechanism | Marc André Tanner | 1 | -5/+6 | |
| The editor core calls into the functions registered in the `vis.events` table which then multiplex the events to all registered event handlers. The first handler which returns a non `nil` value terminates event propagation. | |||||
| 2016-12-07 | Move all lua related files to lua/ subfolder | Marc André Tanner | 1 | -5/+13 | |
| Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed. | |||||
| 2016-12-06 | vis-lua: more extensive Lua API documentation | Marc André Tanner | 1 | -30/+192 | |
| 2016-12-05 | vis-lua: add preliminary version of LDoc based Lua API documentation | Marc André Tanner | 1 | -3/+364 | |
| A new Makefile target `luadoc` has been added which generates HTML documentation in the doc subfolder using ldoc(1) from https://stevedonovan.github.io/ldoc/ There are still a few problems to resovle, for example the links (e.g. in parameter lists) to our custom types seem to be broken. At this point only the C part of the Lua API is covered and even that is not yet complete. | |||||
| 2016-11-28 | vis-lua: add file.path property denoting the absolute path to the file | Marc André Tanner | 1 | -0/+5 | |
| Close #407 | |||||
| 2016-11-27 | vis-lua: lua_pushtring already takes care of NULL string | Marc André Tanner | 1 | -16/+4 | |
| 2016-11-22 | vis-lua: introduce pre-save hook | Marc André Tanner | 1 | -0/+18 | |
| The first argument is the file object while the second argument denotes the full path to which it will be written. Path might be `nil` if the file is going to be written to stdout. The Lua function is expected to return a boolean value indicating whether the write operation should proceed or be aborted. | |||||
| 2016-11-22 | vis-lua: pass path as second argument to file_save_post event hook | Marc André Tanner | 1 | -3/+7 | |
| The passed path can be different from file.name for instance when opening a file `a` and then doing `:w b` where file.name will be the former and path the latter. | |||||
| 2016-11-21 | vis-lua: rename file_save event to file_save_post | Marc André Tanner | 1 | -3/+3 | |
| Indicating that the event is triggered *after* a successfull write. | |||||
| 2016-11-14 | vis-lua: add vis.ui.colors denoting the number of available colors | Marc André Tanner | 1 | -0/+26 | |
| 2016-11-10 | vis: fix compilation with Lua support disabled | Marc André Tanner | 1 | -1/+1 | |
| 2016-11-10 | vis: change default status bar indication for Windows style line endings | Marc André Tanner | 1 | -2/+2 | |
| 2016-11-10 | vis-lua: change misnamed attribute values of `file.newlines` | Marc André Tanner | 1 | -5/+5 | |
| Also rename underlying C code. | |||||
| 2016-11-05 | vis: display Lua package.cpath in :help output | Marc André Tanner | 1 | -4/+10 | |
| These paths are used to load the Lua LPeg module (lpeg.so) and are thus helpful when diagnosing setup problems in case syntax highlighting does not work. | |||||
| 2016-10-05 | Fix various issues reported by coverity scan | Marc André Tanner | 1 | -1/+1 | |
| 2016-09-19 | vis-lua: expose file save event to lua | Marc André Tanner | 1 | -1/+7 | |
| Triggered after the new file content has been written to disk. | |||||
| 2016-09-19 | vis-lua: expose file open event to lua | Marc André Tanner | 1 | -0/+7 | |
| The event is only triggerred for new files read from disk (e.g. splitting an existing window will not cause an event to be emitted). | |||||
| 2016-08-24 | vis-lua: add win:draw() function | Marc André Tanner | 1 | -0/+8 | |
| 2016-05-26 | vis: use normalized absolute file names as internal representation | Marc André Tanner | 1 | -2/+2 | |
| Try to display a shorthand version in the status bar, this currently only works for files below the current working directory of the editor process. | |||||
| 2016-05-24 | vis-lua: cleanup Lua status bar display code | Marc André Tanner | 1 | -1/+10 | |
| 2016-05-24 | vis: cleanup C status bar display code | Marc André Tanner | 1 | -18/+69 | |
| 2016-05-24 | vis-lua: improve error handling when loading visrc.lua | Marc André Tanner | 1 | -3/+25 | |
| If loading fails because visrc.lua is not found, then simply display an information message. However if there is a syntax error, display a complete stack trace. This fixes commit 352155889aad57f8cb6d20317ffef81073fb6533. | |||||
| 2016-05-24 | vis-lua: add debug infrastructure to trace object lifetime | Marc André Tanner | 1 | -16/+108 | |
| Output will be printed to stdout and can be enabled by: $ make debug CFLAGS=-DDEBUG_LUA=1 $ ./vis > log This commit also tries to make object creation slightly more robust. | |||||
| 2016-05-22 | vis: only display mode in status bar of active window | Marc André Tanner | 1 | -2/+3 | |
| 2016-05-22 | vis-lua: introduce light references for short lived objects | Marc André Tanner | 1 | -7/+20 | |
| Light object references are used to type check, but contrary to full object references they are not stored in the Lua registry. This means that they are not bound to the object lifetime of their corresponding C object. Hence such objects must not be used after they have been free(3)-ed by the editor core. Such lightweight object references are always re-created, thus custom properties will not be stored across subsequent accesses. For now light object references are only used for cursor objects. This should ix the crashes introduced by the recent changes which make heavy use of the Lua API. | |||||
| 2016-05-22 | vis-lua: fall back to C status bar handling if the Lua implementation is not ↵ | Marc André Tanner | 1 | -17/+20 | |
| available | |||||
| 2016-05-22 | vis-lua: do not report errors recursively | Marc André Tanner | 1 | -0/+4 | |
| Displaying an error might create a new window which in turn can trigger new events (all other windows are resized+redrawn) which might again cause errors. There is still no sane way to exit the editor in this case, but at least the error messages should be readable. | |||||
| 2016-05-22 | vis: refactor status line handling | Marc André Tanner | 1 | -0/+52 | |
| Make window status bar content configurable via Lua. | |||||
| 2016-05-22 | vis-lua: add win:status function | Marc André Tanner | 1 | -0/+10 | |
| 2016-05-22 | vis-lua: add vis.recording property | Marc André Tanner | 1 | -0/+4 | |
| 2016-05-22 | vis-lua: add window.{width, height} read only properties | Marc André Tanner | 1 | -0/+10 | |
| 2016-05-22 | vis-lua: add vis.VERSION property | Marc André Tanner | 1 | -0/+3 | |
| It is a string in `git describe` format, as reporte by `vis -v`. | |||||
| 2016-05-22 | vis: consider :set horizon setting when syntax highlighting | Marc André Tanner | 1 | -3/+4 | |
| 2016-05-22 | vis: move syntax highlighting to pure Lua code | Marc André Tanner | 1 | -2/+32 | |
| 2016-05-22 | vis-lua: add window.viewport range | Marc André Tanner | 1 | -0/+7 | |
| 2016-05-22 | vis-lua: add bindings for new view style functions | Marc André Tanner | 1 | -0/+44 | |
| 2016-05-22 | vis-lua: cleanup vis.MODE_* constants handling | Marc André Tanner | 1 | -30/+19 | |
| 2016-05-18 | vis-lua: fail more silently when visrc.lua can not be loaded | Marc André Tanner | 1 | -1/+2 | |
| This prevents opening a separate window to display a full stack trace and improves usage of a vis binary compiled with lua support on a system without the necessary *.lua files. | |||||
| 2016-05-14 | vis-lua: add win:map function for window local key mappings | Marc André Tanner | 1 | -8/+27 | |
| Based on a patch by Josh Wainwright. Close #306 | |||||
| 2016-05-13 | vis: clean up key mapping implementation | Marc André Tanner | 1 | -15/+1 | |
| 2016-05-13 | vis-lua: add more restrictive checks for position arguments | Marc André Tanner | 1 | -11/+17 | |
| Negative and fractional arguments are rejected. | |||||
