aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-05-22vis: move syntax highlighting to pure Lua codeMarc André Tanner12-210/+152
2016-05-22vis-lua: add window.viewport rangeMarc André Tanner2-0/+8
2016-05-22vis-lua: add bindings for new view style functionsMarc André Tanner2-0/+46
2016-05-22view: add functions to style a file rangeMarc André Tanner2-0/+38
2016-05-22ui: s/UiStyles/UiStyle/gMarc André Tanner4-4/+4
2016-05-22vis-lua: cleanup vis.MODE_* constants handlingMarc André Tanner1-30/+19
2016-05-22vis: always start vis-menu with -b flagMarc André Tanner2-5/+5
2016-05-22We don't use slmenu, so don't mention it.Tim Allen1-3/+2
2016-05-22vis-menu: do not segfault if an option lacks an argumentTim Allen1-4/+16
2016-05-20implement xread() and wrap read() + die()Christian Hesse1-9/+16
2016-05-20ignore vis-menuChristian Hesse1-0/+1
2016-05-19vis-menu: remove unused codeMarc André Tanner1-4/+0
2016-05-19build: check for Lua >= 5.2 in configure scriptMarc André Tanner1-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-19build: let make debug compile vis-menu with debug flagsMarc André Tanner1-4/+5
2016-05-19vis-menu: fix matching order, exact matches should come firstMarc André Tanner1-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-19vis-menu: import token based match function from dmenuMarc André Tanner1-30/+43
2016-05-19vis-menu: interpret non-option argument as an initial prompt valueMarc André Tanner1-1/+5
2016-05-19vis-menu: change version outputMarc André Tanner2-2/+2
2016-05-19vis-menu: remove X clipboard supportMarc André Tanner1-6/+0
2016-05-19Import slmenu 7e74fa5 as vis-menuMarc André Tanner3-37/+605
2016-05-19vis: tweak completion commandsMarc André Tanner1-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-19Merge branch 'lexer-add-crystal' of https://github.com/soveran/visMarc André Tanner2-0/+143
2016-05-19lexer: add crystalMichel Martens2-0/+143
2016-05-19vis: fix behavior of complete-word on BSDMichel Martens1-2/+2
2016-05-18vis-lua: fail more silently when visrc.lua can not be loadedMarc André Tanner1-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-18vis: add completion for file names in current directory via <C-x><C-f>Silvan Jegen2-0/+23
2016-05-18vis: add #define for VIS_MENUMarc André Tanner4-9/+12
2016-05-18vis: add completion for current file contents via <C-n> in insert modeMarc André Tanner2-0/+57
Based on a patch by Silvan Jegen. Close #128, close #277
2016-05-18vis: add an interactive mode to vis_pipe{,_collect}(...)Marc André Tanner5-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-18buffer: implement buffer_{v,}printf functionsMarc André Tanner2-0/+26
2016-05-18vis: introduce vis_pipe_collect utility functionMarc André Tanner2-0/+24
2016-05-18buffer: add utility function to NUL terminate bufferMarc André Tanner2-0/+7
2016-05-16test: update test suiteMarc André Tanner1-5/+5
2016-05-16vis: introduce vis-menu helper scriptMarc André Tanner3-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-14vis: allow :commands with a hyphen in the nameMarc André Tanner1-1/+1
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é Tanner2-8/+28
Based on a patch by Josh Wainwright. Close #306
2016-05-13vis: clean up key mapping implementationMarc André Tanner6-67/+51
2016-05-13vis-lua: add more restrictive checks for position argumentsMarc André Tanner1-11/+17
Negative and fractional arguments are rejected.
2016-05-11build: install support files only when neededMarc André Tanner1-3/+5
2016-05-11lexer: *.cc is a C++ file extensionMarc André Tanner1-2/+2
2016-05-11Merge branch 'fstab' of https://github.com/eworm-de/visMarc André Tanner2-0/+561
2016-05-11lexer: add fstabChristian Hesse2-0/+561
2016-05-11lexer: add delimiter-separated-valuesChristian Hesse2-0/+18
2016-05-10Revert "vis: clean up interaction between vis and ui"Marc André Tanner6-20/+25
This caused issues on OpenBSD where it crashed the terminal. Also on Mac OS X suspend via ^Z (Ctrl-Z) was missing a \r i.e. the shell prompt was not properly redrawn. While in principle user interfaces should not have to depend on libtermkey, in practice this won't be an issue unless we are adding a non-terminal based UI (which won't happen anytime soon). This reverts commit 8f92b98848f9366e78c7aa824615bade83971513. Close #311
2016-05-10vis: improve cursor placement at EOF with enabled auto indentMarc André Tanner1-1/+1
Close #314
2016-05-08Fix autoindent when using ORichard Burke3-1/+12
2016-05-07theme: add light-16 themeDavid B. Lamkins1-0/+31
This is derived from the latest dark-16 theme by swapping white and black. Close #309
2016-05-07lexer: add networkd file LPeg lexerChristian Hesse2-0/+275
2016-05-07lexer: remove commented commandChristian Hesse1-1/+0
2016-05-07lexer: add systemd service typesChristian Hesse1-1/+9