aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2016-05-07test: adapt test suite to latest changesMarc André Tanner1-5/+5
2016-05-07text: fix bug in line break caching logicMarc André Tanner1-1/+2
2016-05-07Merge branch 'mainc-type' of https://github.com/joshaw/visMarc André Tanner1-1/+1
2016-05-07lexer: add systemd unit file LPeg lexerChristian Hesse2-0/+437
2016-05-07lexer: sort list of file extensionsChristian Hesse1-39/+39
2016-05-06Fix typo `cursor-sceenline-up` -> `cursor-screenline-up`Josh Wainwright1-1/+1
2016-05-06theme: make dark-16 use more bold font for better color contrastChristian Hesse1-14/+14
2016-05-06ignore README.html in subdirsChristian Hesse1-1/+1
2016-05-06lexer: assume .h is ANSI C, not C++Christian Hesse1-2/+2
2016-05-05build: add -D__BSD_VISIBLE=1 to default CFLAGS for FreeBSDMarc André Tanner1-3/+4
SIGWINCH is not part of POSIX. In contrast to the other BSD variants, FreeBSD does not expose it when defining _BSD_SOURCE. This is probably not the 'correct' solution, but seems to work for now. Instead of defining it globally it might have been better to add the necessary #define to the only source file making use of SIGWINCH. Close #302
2016-05-05sam: avoid taking snapshots within the filter command implementationMarc André Tanner1-18/+1
This has the effect that multiple filter commands can be undone together.
2016-05-05view: try to recover from invalid cursor positionsMarc André Tanner1-1/+4
A cursor is a mark, if the text containing the mark is removed the cursor is lost. In this case we try to fall back to the previously known cursor position/mark. This should improve undo operations for filter commands.
2016-05-04vis-lua: reload all lexers after theme changeMarc André Tanner2-3/+19
Close #221
2016-05-04vis-lua: add new theme_change event hookMarc André Tanner2-17/+10
2016-05-04vis-lua: simplify event callback codeMarc André Tanner1-20/+16
2016-05-04view: simplify line up/down motionsMarc André Tanner1-6/+0
As a consequence the general cursor placement code takes effect and always places the cursor in the middle of the window when moving out of the viewable range. Whether this behavior is desirable remains to be seen.
2016-05-04note that primary cursor is not blinkingErlend Fagerheim1-1/+2
2016-05-04vis: enable large file optimizations for files with long linesMarc André Tanner4-24/+16
2016-05-04vis: clean up cursor column displayMarc André Tanner3-26/+17
2016-05-04vis: clean up interaction between vis and uiMarc André Tanner6-25/+20
A concrete user interface implementation should not have to depend on libtermkey. Therefore the vis core now uses an independent instance to parse keys.
2016-05-04vis: re-open stdin as /dev/tty when reaching EOFMarc André Tanner1-3/+40
This handles (notices the missing - at the end of the command line): $ printf ":new\n" | vis more gracefully. This instructs vis to read commands (not file content) from stdin. Once all input from stdin is consumed we open /dev/tty and start processing regular keyboard input instead.
2016-05-04vis: make j and k a linewise inclusive motionMarc André Tanner3-5/+7
They behave like an inclusive motion, but only if they are also linewise (which they are by default). This should make `yjp` and `ykp` yank both the current and the next/previous line when the cursor is at the start of a line. See also 532f52e9e52b98dc5749396f7353295418e0227a and #237
2016-05-04Fixed bug, use $XDG_CONFIG_HOME correctlyAdrian Room1-1/+2
Vis should look for files in `$XDG_CONFIG_HOME/vis`, not just `$XDG_CONFIG_HOME` directly.