| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2017-03-25 | Merge branch 'master' of https://github.com/joshaw/vis | Marc André Tanner | 1 | -1/+10 | |
| 2017-03-24 | vis: properly redraw status bar of windows displaying internal files | Marc André Tanner | 1 | -3/+3 | |
| Currently the only "internal window" with a status bar is the information window used to display Lua stack traces. We do not want to trigger events for it, because that could result in further Lua errors. Nonetheless its status bar should be properly redrawn to avoid display artifacts. That is why we fall back to the built-in default status bar as used by non-Lua builds. | |||||
| 2017-03-24 | vis-lua: register a panic handler | Marc André Tanner | 1 | -1/+31 | |
| The intention here is to catch any errors in unprotected mode, close the lua state and jump back to the mainloop to give the user the opportunity to take care of unsaved changes. We abuse the infrastructure Lua provides for custom memory allocators to associate our vis instance pointer with the lua state. In the panic handler we can then use lua_getallocf to get our context back. The actual memory allocater is equivalent to the one used by default and just forwards everything to the libc. | |||||
| 2017-03-24 | vis-lua: use better name for error handling function | Marc André Tanner | 1 | -2/+2 | |
| 2017-03-24 | vis-lua: adjust return value validation of called lua functions | Marc André Tanner | 1 | -3/+7 | |
| While the invoked Lua functions are executed in protected mode, the validation of the return values currently happens in unprotected mode. Thus an invaid return value triggers a lua error and because we currently do not have a global panic handler registered this will terminate the editor process. This commit changes the return value validation to silently fall back to default values instead of raising errors. If we want to provide user friendly stack traces showing the origin of the offending value we would have to move the validation into the Lua code. | |||||
| 2017-03-24 | vis-lua: validate lua state on vis API entry points | Marc André Tanner | 1 | -9/+27 | |
| 2017-03-22 | vis-lua: add usage documentation to command_register | Josh Wainwright | 1 | -1/+10 | |
| 2017-03-19 | vis-lua: allow operators to be defined as lua functions | Marc André Tanner | 1 | -0/+62 | |
| 2017-03-19 | Move :set horizon option implementaiton to lua | Marc André Tanner | 1 | -5/+3 | |
| 2017-03-19 | Move :set theme option implementation to lua | Marc André Tanner | 1 | -19/+0 | |
| 2017-03-19 | Move :set syntax option implementation to lua | Marc André Tanner | 1 | -55/+1 | |
| It is no longer possible to change the used syntax by assigning to the `win.syntax = name` field, instead the function win:set_syntax(name)` should be called. The distinction between filetype and syntax lexer to use should probably be clarified/cleaned up at some point. | |||||
| 2017-03-19 | vis-lua: make vis.win return nil if no window exists yet | Marc André Tanner | 1 | -2/+4 | |
| This is only the case during editor startup before the first window is created. | |||||
| 2017-03-19 | vis-lua: expose option_unregister function | Marc André Tanner | 1 | -0/+16 | |
| 2017-03-19 | vis-lua: expose option_register function | Marc André Tanner | 1 | -0/+54 | |
| 2017-03-14 | Restructure display code | Marc André Tanner | 1 | -0/+5 | |
| Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces. | |||||
| 2017-03-07 | vis-lua: remove vis:open method | Marc André Tanner | 1 | -20/+0 | |
| The same functionality is available using vis:command and :open. If we decide a distinct API is useful, we should probably also provide a corresponding close method. | |||||
| 2017-03-05 | vis-lua: expose vis:pipe function | Marc André Tanner | 1 | -0/+35 | |
| 2017-03-03 | vis-lua: add vis:exit function | Marc André Tanner | 1 | -0/+21 | |
| 2017-03-02 | vis-lua: fix bogus URL in LDoc comment | Marc André Tanner | 1 | -1/+1 | |
| 2017-03-01 | vis-lua: fix invalid LDoc tag | Marc André Tanner | 1 | -1/+1 | |
| 2017-03-01 | vis-lua: make cursor.pos return nil if cursor position is invalid | Marc André Tanner | 1 | -7/+12 | |
| It remains to be seen whether that is a good idea, but at least it will reveal possible bugs. | |||||
| 2017-03-01 | vis-lua: document cursor behavior | Marc André Tanner | 1 | -0/+50 | |
| 2017-02-28 | vis-lua: correctly treat return value of input event handler | Marc André Tanner | 1 | -1/+1 | |
| Returning true from the event handler, indicating that the keys were consumed, should now prevent insertion as mentioned in the documentation. vis.events.subscribe(vis.events.INPUT, function(key) if key == ' ' then -- do something fancy here return true end end) | |||||
| 2017-02-28 | vis-lua: fix wrong return value when setting vis.count | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-27 | vis-lua: make vis:win assignable | Alexandre Rames | 1 | -0/+5 | |
| 2017-02-23 | vis-lua: use shorter type names | Marc André Tanner | 1 | -10/+10 | |
| 2017-02-23 | vis-lua: cleanup type checks by using #define's | Marc André Tanner | 1 | -68/+80 | |
| 2017-02-23 | vis-lua: make vis:count assignable | Marc André Tanner | 1 | -0/+10 | |
| 2017-02-22 | vis-lua: expose current count specifier as vis:count | Marc André Tanner | 1 | -0/+13 | |
| 2017-02-22 | vis-lua: expose type meta tables through vis.types | Marc André Tanner | 1 | -5/+25 | |
| This should allow the Lua code to add new methods even if it has no existing object references. | |||||
| 2017-02-22 | lua: expose vis:module_exist method, load lexer and lpeg module during startup | Marc André Tanner | 1 | -4/+6 | |
| 2017-02-22 | vis-lua: check for nil return value of text object callback | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-02 | update comment and readme about lua path | Christian Hesse | 1 | -5/+5 | |
| Commit 3570869c removed the lexers sub directory from the Lua search path. Update the comment and readme to reflect this change. | |||||
| 2017-02-02 | add /etc/vis to lua path for system-wide configuration by administrator | Christian Hesse | 1 | -0/+3 | |
| 2017-01-27 | vis-lua: introduce vis:replace function | Marc André Tanner | 1 | -0/+20 | |
| 2017-01-27 | vis-lua: introduce vis:insert function | Marc André Tanner | 1 | -0/+20 | |
| 2017-01-15 | vis-lua: pass pending keys to lua key handling functions | Marc André Tanner | 1 | -8/+69 | |
| 2017-01-14 | vis-lua: allow mode changes by setting vis.mode | Marc André Tanner | 1 | -1/+14 | |
| 2017-01-10 | vis-lua: expose register names as vis:register_names() | Marc André Tanner | 1 | -1/+38 | |
| 2017-01-10 | vis-lua: expose valid marks as vis:mark_names() | Marc André Tanner | 1 | -0/+38 | |
| 2016-12-31 | vis: allow user registered :-commands to specify a help text | Marc André Tanner | 1 | -1/+3 | |
| 2016-12-29 | vis-lua: allow vis:map to set up key aliases and actions | Marc André Tanner | 1 | -15/+51 | |
| 2016-12-29 | vis-lua: introduce vis:action_register | Marc André Tanner | 1 | -0/+32 | |
| 2016-12-29 | vis: cleanup key action lifetime management | Marc André Tanner | 1 | -13/+5 | |
| 2016-12-29 | vis-lua: simplify lua function reference handling | Marc André Tanner | 1 | -31/+17 | |
| 2016-12-29 | vis-lua: luaL_checkstring already checks for NULL return value | Marc André Tanner | 1 | -7/+6 | |
| 2016-12-27 | vis: properly free dynamic key bindings | Marc André Tanner | 1 | -5/+5 | |
| The handling of :unmap needs to be revisited at some point. | |||||
| 2016-12-22 | vis-lua: store Vis context in upvalues where needed | Marc André Tanner | 1 | -5/+8 | |
| 2016-12-22 | text: change datatype of Mark to uintptr_t | Marc André Tanner | 1 | -1/+1 | |
| This should avoid undefined pointer comparisons. | |||||
| 2016-12-19 | vis-lua: implement vis.registers[] array | Marc André Tanner | 1 | -1/+58 | |
| Notice that currently only single letter register names/array indices are supported. Register handling needs to be cleaned up at some point. | |||||
