summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-27vis-lua: make vis:win assignableAlexandre Rames
2017-02-25test: updateMarc André Tanner
2017-02-25lexers: sync with scintillua changeset 594 rev 6e29a8d2a783Marc André Tanner
Stuff which was left out / our local changes include: - lexer.lua: different loading mechanism and style handling - ansi_c.lua: for now we keep the separate token definitions with references to the respective standards. This should highlight file names after #include directives. It will also treat simple, non-nested occurrences of #if 0 ... #endif as a comment. - pkgbuild.lua: the arch specific fields have been kept - all scintilla $(style variables) have been replaced
2017-02-25build: try to enable compiler flags to minimize binary sizeMarc André Tanner
2017-02-25vis: tweak handling of end inclusivenessMarc André Tanner
Only extend end of range when the motion did so too. As an example this prevents motions like `$dg_` from deleting the newline which was the starting position.
2017-02-25vis: mark 0, ^, g_ and $ as idempotentMarc André Tanner
2017-02-25vis: fix $ motion for lines containing \rMarc André Tanner
2017-02-25text: add iterator accessor function which translates \r\n to \nMarc André Tanner
2017-02-25vis: make ^ and g_ only skip blank (spaces+tabs) charactersMarc André Tanner
2017-02-25vis: add vis- prefix to pseudo editor keysMarc André Tanner
2017-02-24vis: remove unused struct memberMarc André Tanner
The macro replay code has since been refactored, making this obsolete. There is only ever one input queue from which keys are interpreted.
2017-02-24vis: make help texts optional to produce a smaller binaryMarc André Tanner
$ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system.
2017-02-24vis: fix ^ motion for blank lines terminated by \r\nMarc André Tanner
2017-02-24vis: fix display after newline insertion at the start of viewportMarc André Tanner
Previously the window content would not be scrolled down when inserting a newline exactly at the start of the display area as in the case when a file starts with an empty line and the following is performed: <PageDown><PageUp><PageUp>o
2017-02-23vis: improve handling of \r\n line endingsMarc André Tanner
Change the text_iterator_char_{prev,next} functions to treat them as a single character, meaning cursor motions will skip both bytes at the same time.
2017-02-23view: make sure viewport remains valid when scrolling upMarc André Tanner
In a file with windows style \r\n line endings scrolling up would wrap around to the end of the file.
2017-02-23vis: unify error path of command registration functionsMarc André Tanner
2017-02-23test: updateMarc André Tanner
2017-02-23build: skip configure check for built-in lpeg if lua is not foundMarc André Tanner
$ ./configure --disable-lua will no longer look for liblpeg.
2017-02-23vis: remove `gf` and `<C-w>gf` functionalityMarc André Tanner
This can also be implemented using Lua, if desired.
2017-02-23text-object: remove text_object_numberMarc André Tanner
This was only used by the number increment/decrement action. The same functionality (and more) can be implemented in lua using something like: vis:textobject_new("in", function(win, pos) return win.file:match_at(vis.lexers.integer + vis.lexers.float, pos, 64) end, "Number text object")
2017-02-23vis: remove number increment/decrement functionalityMarc André Tanner
By now we should have the necessary Lua API to implement this as an extension.
2017-02-23vis-lua: use shorter type namesMarc André Tanner
2017-02-23vis-lua: cleanup type checks by using #define'sMarc André Tanner
2017-02-23vis-lua: make vis:count assignableMarc André Tanner
2017-02-22vis-lua: expose current count specifier as vis:countMarc André Tanner
2017-02-22lua: add file:match_at method to match LPeg pattern around a positionMarc André Tanner
2017-02-22vis-lua: expose type meta tables through vis.typesMarc André Tanner
This should allow the Lua code to add new methods even if it has no existing object references.
2017-02-22lua: expose vis:module_exist method, load lexer and lpeg module during startupMarc André Tanner
2017-02-22vis-lua: check for nil return value of text object callbackMarc André Tanner
2017-02-22test: updateMarc André Tanner
2017-02-22vis: simplify `r` implementation and fix cursor positioningMarc André Tanner
2017-02-22vis: add exact count motion flagMarc André Tanner
Some motions should fail (i.e. keep the initial position) when the specified count can not be satisfied exactly. Examples include t, f, T, and F. Fix #497
2017-02-21Tweak READMEMarc André Tanner
2017-02-21sam: make sure all commands can be undoneMarc André Tanner
Take a snapshot before and after processing the transcript.
2017-02-21sam: reformat code to avoid one level of indentationMarc André Tanner
2017-02-20test: updateMarc André Tanner
2017-02-20buffer: fix integer overflow issueMarc André Tanner
2017-02-20buffer: add buffer_growMarc André Tanner
2017-02-20buffer: rename buffer_grow to buffer_reserveMarc André Tanner
2017-02-20text: fix some integer overflow issuesMarc André Tanner
2017-02-20util: add overflow safe unsigned addition functionMarc André Tanner
2017-02-18appveyor: let Cygwin handle the environment variableMarc André Tanner
That way the path translation logic kicks in.
2017-02-18appveyor: try to fix yaml multiline syntaxMarc André Tanner
2017-02-18test: updateMarc André Tanner
2017-02-18appveyor: fix symlinks for Cygwin buildsMarc André Tanner
Git for windows is used to checkout the repository and it creates broken symlinks (files containing the target) which break the tests because e.g. the lexer.lua module can not be loaded. We use a bash script to convert these pseudo symlinks: http://stackoverflow.com/questions/38140373 and invoke it via powershell because that seems to be the only way to execute multiline commands from within the AppVeyor YAML configuration file.
2017-02-17test: updateMarc André Tanner
2017-02-17vis: cleanup error paths in key action handling codeMarc André Tanner
2017-02-17build: more complete cleanup in make cleanMarc André Tanner
2017-02-16test: updateMarc André Tanner