summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-22Remove unneeded header importSilvan Jegen
2016-05-22vis: load default styles even for unknown file typesMarc André Tanner
2016-05-22vis-lua: fall back to C status bar handling if the Lua implementation is not ↵Marc André Tanner
available
2016-05-22vis-lua: do not report errors recursivelyMarc André Tanner
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-22vis: refactor status line handlingMarc André Tanner
Make window status bar content configurable via Lua.
2016-05-22vis-lua: add win:status functionMarc André Tanner
2016-05-22vis: add function to change window statusbar contentMarc André Tanner
2016-05-22vis-lua: add vis.recording propertyMarc André Tanner
2016-05-22vis-lua: add window.{width, height} read only propertiesMarc André Tanner
2016-05-22vis: add functions to query window sizeMarc André Tanner
2016-05-22vis-lua: add vis.VERSION propertyMarc André Tanner
It is a string in `git describe` format, as reporte by `vis -v`.
2016-05-22vis: consider :set horizon setting when syntax highlightingMarc André Tanner
2016-05-22lexer: return nil if lexer loading failsMarc André Tanner
2016-05-22vis: move syntax highlighting to pure Lua codeMarc André Tanner
2016-05-22vis-lua: add window.viewport rangeMarc André Tanner
2016-05-22vis-lua: add bindings for new view style functionsMarc André Tanner
2016-05-22view: add functions to style a file rangeMarc André Tanner
2016-05-22ui: s/UiStyles/UiStyle/gMarc André Tanner
2016-05-22vis-lua: cleanup vis.MODE_* constants handlingMarc André Tanner
2016-05-22vis: always start vis-menu with -b flagMarc André Tanner
2016-05-22We don't use slmenu, so don't mention it.Tim Allen
2016-05-22vis-menu: do not segfault if an option lacks an argumentTim Allen
2016-05-20implement xread() and wrap read() + die()Christian Hesse
2016-05-20ignore vis-menuChristian Hesse
2016-05-19vis-menu: remove unused codeMarc André Tanner
2016-05-19build: check for Lua >= 5.2 in configure scriptMarc André Tanner
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-19build: let make debug compile vis-menu with debug flagsMarc André Tanner
2016-05-19vis-menu: fix matching order, exact matches should come firstMarc André Tanner
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-19vis-menu: import token based match function from dmenuMarc André Tanner
2016-05-19vis-menu: interpret non-option argument as an initial prompt valueMarc André Tanner
2016-05-19vis-menu: change version outputMarc André Tanner
2016-05-19vis-menu: remove X clipboard supportMarc André Tanner
2016-05-19Import slmenu 7e74fa5 as vis-menuMarc André Tanner
2016-05-19vis: tweak completion commandsMarc André Tanner
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-19Merge branch 'lexer-add-crystal' of https://github.com/soveran/visMarc André Tanner
2016-05-19lexer: add crystalMichel Martens
2016-05-19vis: fix behavior of complete-word on BSDMichel Martens
2016-05-18vis-lua: fail more silently when visrc.lua can not be loadedMarc André Tanner
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-18vis: add completion for file names in current directory via <C-x><C-f>Silvan Jegen
2016-05-18vis: add #define for VIS_MENUMarc André Tanner
2016-05-18vis: add completion for current file contents via <C-n> in insert modeMarc André Tanner
Based on a patch by Silvan Jegen. Close #128, close #277
2016-05-18vis: add an interactive mode to vis_pipe{,_collect}(...)Marc André Tanner
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-18buffer: implement buffer_{v,}printf functionsMarc André Tanner
2016-05-18vis: introduce vis_pipe_collect utility functionMarc André Tanner
2016-05-18buffer: add utility function to NUL terminate bufferMarc André Tanner
2016-05-16test: update test suiteMarc André Tanner
2016-05-16vis: introduce vis-menu helper scriptMarc André Tanner
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-14vis: allow :commands with a hyphen in the nameMarc André Tanner
This fixes the argument parsing for the :{un,}map-window commands.
2016-05-14vis-lua: add win:map function for window local key mappingsMarc André Tanner
Based on a patch by Josh Wainwright. Close #306
2016-05-13vis: clean up key mapping implementationMarc André Tanner