aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2016-04-28vis: reject key mappings for which a prefix is already mappedMarc André Tanner1-1/+1
`<` needs a special treatment because it is used to denote symbolic keys without it the shift left operator would not work.
2016-04-27vis: adapt charwise put operator to not move across linesMarc André Tanner1-1/+2
This should let `$p` work as before the changes to `$`.
2016-04-27vis: change behavior of $ to never move to the leftMarc André Tanner1-2/+1
2016-04-27vis: do not advance cursor to next line when appending with `a`Marc André Tanner1-1/+1
Close #295
2016-04-27text-motions: fix character next motion within a lineMarc André Tanner1-2/+1
2016-04-27view: change view_cursors_place to take 1 based column numberMarc André Tanner3-6/+9
This should fix inconsistency in the Lua API.
2016-04-27vis-lua: fix vis.win to always return currently focused windowMarc André Tanner1-1/+1
2016-04-26test: update test suiteMarc André Tanner1-7/+5
2016-04-26vis-lua: add file.modified propertyMarc André Tanner2-0/+6
2016-04-26build: fix lua auto detection on OpenBSDMarc André Tanner1-1/+1
2016-04-26build: try to produce a statically linked position independent executableMarc André Tanner2-3/+9
In theory this should be as simple as: $ cc -fPIE -pie --static helloworld.c But unfortunately by default this will always add a PT_INTERP referencing the dynamic loader/linker. On latest binutils >=2.26 this can be worked around by supplying --no-dynamic-linker. Also tweak the musl-gcc wrapper to use rcrt1.o as startup file.
2016-04-26build: skip -pie for static buildChristian Hesse2-3/+7
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-04-25build: (re)enable pie buildChristian Hesse1-1/+3
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
2016-04-25build: explicitly pass $CFLAGS to make invocationMarc André Tanner1-2/+2
2016-04-25build: remove redundant code from configure scriptMarc André Tanner1-3/+0
2016-04-25build: add more default flags to $CFLAGS instead of $CFLAGS_AUTOMarc André Tanner1-7/+7
This way we make sure the flags are in place when building dependencies.
2016-04-24build: run configure before building dependenciesChristian Hesse2-18/+39
We need some basic configuration before building dependencies. For example useful CFLAGS have to be in place to prevent linker errors. The configure script is run again later with some extra parameters.
2016-04-23build: add checksum for lua-lpeg patchChristian Hesse1-0/+2
2016-04-23Mention NixOS package in READMEMarc André Tanner1-0/+1
2016-04-23vis: display lua search paths in :help outputMarc André Tanner3-1/+33
2016-04-22build: disable pie build for now, it breaks local/standalone buildsMarc André Tanner1-1/+1
There seems to be something wrong with the libtermkey build, which uses libtool and somehow does not get build correctly for PIE.
2016-04-22build: change lpeg into lua integrationMarc André Tanner1-14/+7
Instead of compiling lpeg separately and then copying the object files into the lua source directory, copy the lpeg source files into the lua build tree and build it together.
2016-04-22build: clean up make local/standalone implementationMarc André Tanner2-17/+9
Run configure script for all targets instead of fiddling with Makefile variables directly.
2016-04-21vis-lua: allow selection modification by assigning to cursor.selectionMarc André Tanner2-1/+10
2016-04-21vis-lua: implement vis:message(msg)Marc André Tanner2-7/+18
2016-04-21vis-lua: also accept a range as argument for file:delete and file:contentMarc André Tanner2-14/+34
2016-04-21vis: also show user registered :-commands in :help outputMarc André Tanner1-4/+6
2016-04-21vis: list usable symbolic keys in :help outputMarc André Tanner1-1/+76
2016-04-21test: update to include lua based testsMarc André Tanner1-9/+6
2016-04-21vis-lua: add vis:command_register to map a Lua function to a :-commandMarc André Tanner2-0/+36
The following registers `:foo` as a command which prints a few things to stdout: vis:command_register("foo", function(argv, force, win, cursor, range) for i,arg in ipairs(argv) do print(i..": "..arg) end print("was command forced with ! "..(force and "yes" or "no")) print(win.file.name) print(cursor.pos) print(range ~= nil and ('['..range.start..', '..range.finish..']') or "invalid range") return true; end)
2016-04-21vis-lua: add utility function to push a Filerange onto the Lua stackMarc André Tanner1-11/+15
2016-04-21vis: add infrastructure to register custom :-commandsMarc André Tanner5-1/+59
2016-04-21vis: do not lazy allocate :-commandsMarc André Tanner3-10/+15
The built in commands should always be available.
2016-04-21map: add map_free_full utility functionMarc André Tanner2-0/+16
2016-04-20vis-lua: load files from directory specified with ./configure --sharedir=DIRMarc André Tanner2-6/+9
Close #231