aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2016-05-01test: udpate test suiteMarc André Tanner1-7/+5
2016-05-01vis-lua: let vis:map override existing mappingsMarc André Tanner1-0/+14
It now also unmaps all previously mapped prefixes of the new mapping. See 0ef138085f885d4576a8e53d079e1f00f80799bf and #271.
2016-05-01vis-lua: expose vis:feedkeys APIMarc André Tanner2-0/+11
2016-05-01vis: delay start event until we are fully initializedMarc André Tanner1-7/+5
2016-05-01vis: further cleanup input handling, introduce vis_keys_feed APIMarc André Tanner4-26/+31
2016-05-01vis: cleanup input handling, improve macro replayMarc André Tanner3-49/+47
2016-04-29view: try to improve cursor placementMarc André Tanner1-18/+21
This changes which viewport is being displayed after the primary cursor moves out of the currently viewable area. Close #164, #274, #278
2016-04-29view: improve view sliding downMarc André Tanner1-2/+4
Close #216
2016-04-29vis: improve cursor placement after join operatorMarc André Tanner1-1/+5
Close #299
2016-04-29vis: move non-configuration sections out of visrc.lua into vis.luaMarc André Tanner4-202/+209
The intention is that vis.lua will provide parts of the Lua API not implemented in the C core. Please update your existing visrc.lua configuration file accordingly.
2016-04-29vis: do not crash when processing :-commands and no window is activeMarc André Tanner3-23/+72
This is needed to make the vis.event.start Lua callback useful, setting global options should be possible even if no windows exist yet. The :set command options should probably be cleaned up further, some of them apply only to the currently active window while others have a global effect.
2016-04-28vis: unmap all mapped prefixes if a new mapping is forcedMarc André Tanner2-38/+29
Close #271