summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-21Use .status files instead of .true files and write error to .err fileJosh Wainwright
2016-04-21Add .gitignoreJosh Wainwright
2016-04-21vis-lua: add vis:command_register to map a Lua function to a :-commandMarc André Tanner
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é Tanner
2016-04-21vis: add infrastructure to register custom :-commandsMarc André Tanner
2016-04-21vis: do not lazy allocate :-commandsMarc André Tanner
The built in commands should always be available.
2016-04-21map: add map_free_full utility functionMarc André Tanner
2016-04-20vis-lua: load files from directory specified with ./configure --sharedir=DIRMarc André Tanner
Close #231
2016-04-20vis-lua: trigger start event after ui has been initializedMarc André Tanner
2016-04-20vis: handle termination from within win_open event gracefullyMarc André Tanner
2016-04-20Allow running individual tests from makefileJosh Wainwright
2016-04-20Split test lua code into individual test.lua filesJosh Wainwright
2016-04-20Remove stackdump reference from makefile and make name uppercaseJosh Wainwright
2016-04-20Add first set of basic lua api testsJosh Wainwright
There are two types of lua tests here: 1. Tests are formed from a <test>.in, <test>.ref and <test>.out triplet. The <test>.in file is opened by vis, some operatations are performed and the modified file is written to <test>.out. The new <test>.out is compared to <test>.ref and the test passes if they are identical. 2. Tests are formed from a single <test>.true file. This file is created by the lua code in the test. It contains a single line per test case, this single line should be `true` if the test case passed. The <test>.true file is checked to ensure it contains only `true` lines and if so, the test passes.
2016-04-19vis: add :set horizon optionDavid B. Lamkins
Can be used to specify the number of bytes before the visible area to consider for syntax highlighting. Defaults to 32K for now, whereas before it was 16K.
2016-04-19vis: add an unsigned option type for :set commandMarc André Tanner
2016-04-19test: add test for :wq in normal mode with multiple cursorsMarc André Tanner
Close #276
2016-04-19test/vis: add test for :wq in normal mode with multiple cursorsMarc André Tanner
This tests for a previous bug martanne/vis#276 where only part of the file was saved. Based on a patch from Tobias Mansfield-Williams.
2016-04-19vis: add actions for prev/next character motions within the same lineMarc André Tanner
For now they are not mapped to any key by default, but can be enabled with: :map! normal l <cursor-line-char-next> :map! normal h <cursor-line-char-prev>
2016-04-19Fix vis-test git submodule integrationMarc André Tanner
2016-04-19Integrate vis-test git submoduleMarc André Tanner
2016-04-19Workaround bug in +- address implementationMarc André Tanner
2016-04-19Initial import of test branch from vis repositoryMarc André Tanner
2016-04-18vis-lua: strip relative paths from package.{path,cpath}Marc André Tanner
Allthough the default paths should take precedence we do not want to execute arbitrary code from the current working directory.
2016-04-18vis-lua: cleanup lua package.path handlingMarc André Tanner
2016-04-18vis: use internal file to show lua errorsMarc André Tanner
This means no event handlers are run for it, hence there is no chance for recursive errors.
2016-04-18vis: do not run event handlers for internal filesMarc André Tanner
Should have been part of f50465312dbb7e8fcb2409aa691d1aea7a43c466.
2016-04-18text: when saving also fsync(2) the destination directory after rename(2)Marc André Tanner
2016-04-17Mention #vis-editor IRC channel in READMEMarc André Tanner
Close #270
2016-04-17Mention slmenu(1) in READMEMarc André Tanner
2016-04-17vis: indicate primary cursor by using a different color instead of blinkingMarc André Tanner
Blinking caused more problems (#251, #202) than it solved. Blank cells were especially problematic.
2016-04-17vis: remove mapping from ' ' to <Space>Marc André Tanner
This reverts part of bd1d849b2033b04a372542c59d458d4f8279c937 just use a literal space within your key mappings. Close #280
2016-04-17sam: except for visual mode, apply :w to whole fileMarc André Tanner
Also in visual mode, warn if :w is not forced by ! because the file will be reduced to the active selection.
2016-04-17text: add infrastructure to save non-contiguous rangesMarc André Tanner
2016-04-16vis-lua: add vis.mode propertyMarc André Tanner
2016-04-16vis-lua: update API documentaiton in READMEMarc André Tanner
2016-04-16vis-lua: add cursor.selection propertyMarc André Tanner
2016-04-16vis-lua: add window.cursors[] arrayMarc André Tanner
2016-04-16vis-lua: add window.cursors_iterator functionMarc André Tanner
2016-04-16vis-lua: add cursor.number propertyMarc André Tanner
2016-04-15vis-lua: change cursor object implementationMarc André Tanner
2016-04-15view: add view_cursors_place(cursor, line, col) functionMarc André Tanner
2016-04-15view: add view_cursors_col functionMarc André Tanner
2016-04-15view: add view_cursors_line functionMarc André Tanner
2016-04-15vis-lua: add file.size to return file size in bytesMarc André Tanner
2016-04-15vis-lua: add file.newlines to detect type of new linesMarc André Tanner
2016-04-15vis: calculate auto indent for all cursors individuallyMarc André Tanner
2016-04-15vis: fix wrong usage message for :unmap commandMarc André Tanner
2016-04-15vis: improve handling of ~ and environment variables when opening filesMarc André Tanner
2016-04-15vis: do not run registered event handlers for internal filesMarc André Tanner
This fixes interactive :-commands when the user has configured to set custom options vis:command(...) via the Lua win_open event handler. The problem was that the creation of the window for the command prompt would itself trigger an execution of a :-command. Upon successful completion the editor would switch to normal mode. Therefore the interactively entered command would not be applied to the correct range.