| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 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 | Add a newline at the end of the file | Silvan Jegen | 1 | -1/+1 | |
| This is encouraged by the ISO C99 standard. | |||||
| 2016-05-22 | Remove unneeded header import | Silvan Jegen | 1 | -1/+0 | |
| 2016-05-22 | vis: load default styles even for unknown file types | Marc André Tanner | 1 | -8/+11 | |
| 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 | 2 | -0/+5 | |
| 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 | 11 | -62/+125 | |
| Make window status bar content configurable via Lua. | |||||
| 2016-05-22 | vis-lua: add win:status function | Marc André Tanner | 2 | -0/+11 | |
| 2016-05-22 | vis: add function to change window statusbar content | Marc André Tanner | 4 | -0/+20 | |
| 2016-05-22 | vis-lua: add vis.recording property | Marc André Tanner | 2 | -0/+5 | |
| 2016-05-22 | vis-lua: add window.{width, height} read only properties | Marc André Tanner | 2 | -0/+11 | |
| 2016-05-22 | vis: add functions to query window size | Marc André Tanner | 4 | -0/+23 | |
| 2016-05-22 | vis-lua: add vis.VERSION property | Marc André Tanner | 2 | -0/+4 | |
| 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 | 9 | -22/+11 | |
| 2016-05-22 | lexer: return nil if lexer loading fails | Marc André Tanner | 1 | -2/+1 | |
| 2016-05-22 | vis: move syntax highlighting to pure Lua code | Marc André Tanner | 12 | -210/+152 | |
| 2016-05-22 | vis-lua: add window.viewport range | Marc André Tanner | 2 | -0/+8 | |
| 2016-05-22 | vis-lua: add bindings for new view style functions | Marc André Tanner | 2 | -0/+46 | |
| 2016-05-22 | view: add functions to style a file range | Marc André Tanner | 2 | -0/+38 | |
| 2016-05-22 | ui: s/UiStyles/UiStyle/g | Marc André Tanner | 4 | -4/+4 | |
| 2016-05-22 | vis-lua: cleanup vis.MODE_* constants handling | Marc André Tanner | 1 | -30/+19 | |
| 2016-05-22 | vis: always start vis-menu with -b flag | Marc André Tanner | 2 | -5/+5 | |
| 2016-05-22 | We don't use slmenu, so don't mention it. | Tim Allen | 1 | -3/+2 | |
| 2016-05-22 | vis-menu: do not segfault if an option lacks an argument | Tim Allen | 1 | -4/+16 | |
| 2016-05-20 | implement xread() and wrap read() + die() | Christian Hesse | 1 | -9/+16 | |
| 2016-05-20 | ignore vis-menu | Christian Hesse | 1 | -0/+1 | |
| 2016-05-19 | vis-menu: remove unused code | Marc André Tanner | 1 | -4/+0 | |
| 2016-05-19 | build: check for Lua >= 5.2 in configure script | Marc André Tanner | 1 | -1/+5 | |
| The generic lua pkg-config name also match for Lua 5.1 which then results in a linker error because the necessary functions are not available. | |||||
| 2016-05-19 | build: let make debug compile vis-menu with debug flags | Marc André Tanner | 1 | -4/+5 | |
| 2016-05-19 | vis-menu: fix matching order, exact matches should come first | Marc André Tanner | 1 | -1/+1 | |
| This reverts 09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92 from the dmenu repository, although dmenu itself seems to work correctly. $ printf "foobar\nfoo\n" | ./vis-menu Typing foo should select foo not foobar. | |||||
| 2016-05-19 | vis-menu: import token based match function from dmenu | Marc André Tanner | 1 | -30/+43 | |
| 2016-05-19 | vis-menu: interpret non-option argument as an initial prompt value | Marc André Tanner | 1 | -1/+5 | |
| 2016-05-19 | vis-menu: change version output | Marc André Tanner | 2 | -2/+2 | |
| 2016-05-19 | vis-menu: remove X clipboard support | Marc André Tanner | 1 | -6/+0 | |
| 2016-05-19 | Import slmenu 7e74fa5 as vis-menu | Marc André Tanner | 3 | -37/+605 | |
| 2016-05-19 | vis: tweak completion commands | Marc André Tanner | 1 | -4/+4 | |
| Change tr command to split words, this won't properly work with Unicode but should at least avoid unwanted non-word symbols and be POSIX conformant. A possible alternative would be to use grep -o -E '\w+' while the -o option is not part of POSIX it seems to be mostly supported. However the \w regex syntax might not be supported. Force ls(1) output to be linewise and surpress the same prefix. Change sed invocation to only replace proper prefixes. | |||||
| 2016-05-19 | Merge branch 'lexer-add-crystal' of https://github.com/soveran/vis | Marc André Tanner | 2 | -0/+143 | |
| 2016-05-19 | lexer: add crystal | Michel Martens | 2 | -0/+143 | |
| 2016-05-19 | vis: fix behavior of complete-word on BSD | Michel Martens | 1 | -2/+2 | |
| 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-18 | vis: add completion for file names in current directory via <C-x><C-f> | Silvan Jegen | 2 | -0/+23 | |
| 2016-05-18 | vis: add #define for VIS_MENU | Marc André Tanner | 4 | -9/+12 | |
| 2016-05-18 | vis: add completion for current file contents via <C-n> in insert mode | Marc André Tanner | 2 | -0/+57 | |
| Based on a patch by Silvan Jegen. Close #128, close #277 | |||||
| 2016-05-18 | vis: add an interactive mode to vis_pipe{,_collect}(...) | Marc André Tanner | 5 | -17/+19 | |
| Previously the interactive mode was implicitly enabled by passing an invalid range. However for some use cases (e.g. completion) we need to be able to pipe a given text range to an external process without also redirecting stderr (which is used to draw the slmenu interface on top of vis). | |||||
| 2016-05-18 | buffer: implement buffer_{v,}printf functions | Marc André Tanner | 2 | -0/+26 | |
| 2016-05-18 | vis: introduce vis_pipe_collect utility function | Marc André Tanner | 2 | -0/+24 | |
| 2016-05-18 | buffer: add utility function to NUL terminate buffer | Marc André Tanner | 2 | -0/+7 | |
| 2016-05-16 | test: update test suite | Marc André Tanner | 1 | -5/+5 | |
| 2016-05-16 | vis: introduce vis-menu helper script | Marc André Tanner | 3 | -12/+37 | |
| This serves as a wrapper around dmenu(1) and slmenu(1), by default the latter is preferred because it also works without an X server. The program and its default arguments can be configured by means of the $VIS_MENU and $VIS_MENU_ARGS environment variables. Eventually we might decide to inlcude a stripped down version of slmenu in the vis source tree. | |||||
| 2016-05-14 | vis: allow :commands with a hyphen in the name | Marc André Tanner | 1 | -1/+1 | |
| This fixes the argument parsing for the :{un,}map-window commands. | |||||
