summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-12build: use -O2 by defaultMarc André Tanner
2020-05-12vis: cleanup pre-processing of :-commandsMarc André Tanner
Not sure why we need to allocate space for an additional character. This also avoids creating out of bound pointers.
2020-05-12Tweak READMEMarc André Tanner
2020-05-12vt100: do not crash if termkey is not yet initializedMarc André Tanner
Previously calling die would segfault, e.g: $ vis .
2020-05-11test/core: fix compilation with gcc 10Marc André Tanner
Newer gcc rejects multiple definitions of global variables. Fix #21
2020-04-29ui: fix line number drawingMarc André Tanner
Fix #830
2020-04-29build: fix _XOPEN_SOURCE redefinition warningMarc André Tanner
Was also reported in #780.
2020-04-28vis: make <Escape> reset count in visual modesMarc André Tanner
2020-04-28vis: make <Escape> reset count in normal modeMarc André Tanner
Fix #825
2020-04-28lexers: prioritize markdown list ruleMarc André Tanner
Reorder the list rule such that it matches before the rule for code blocks. There are still some problems with multiline list items which are indented and wrongly matched as code blocks.
2020-04-28lexers: make markdown white space rule less greedyMarc André Tanner
This should give the code block rule a chance to actually match something, whereas before all leading white space was already consumed. Fix #823
2020-04-28man: document theme locationMarc André Tanner
Fix #824
2020-04-27Avoid use of VLAsMichael Forney
2020-04-27vt100: use shorter escape sequence to clear screenMarc André Tanner
Instead of clearing the whole screen and then moving the cursor to the home position, we can first move it there and then clear everything below it.
2020-03-23Add Julia lexerTobias Frilling
2020-03-18Merge branch 'single-cursor-is-primary' of https://github.com/3dc1d3/visMarc André Tanner
2020-03-17color-column: Don't change fg/bg if not set explicitlyGennadiy Volkov
eg. if your long line is a comment with green fg, and you set your column color bg red while not specifying the fg, then the result is green fg on red bg. Prior to this change the result would be default fg on red bg, thus one char in the long line of green text would look odd/wrong. Of course if you do explicitly set the column color fg to default in your theme then the result will not be what you expect - ideally we need an UNSPECIFIED color type instead of relying on DEFAULT.
2020-03-17Set single cursor style as primary, not secondaryGennadiy Volkov
2020-03-15sam: fix X and Y commands which were interchangedMarc André Tanner
Fix #820
2020-03-03Add Elm lexerKarl Schultheisz
2020-02-29sam: fix spurious "file exists" warningsMarc André Tanner
When initially opened with a non-existing file we would not correctly track the file's meta data resulting in spurious warnings upon subsequent writes. It is fixed by also saving the meta data for previously non-existing files with matching paths.
2020-02-26build: provide install-strip make targetMarc André Tanner
Do not strip executables by default. Fix #811
2020-02-26ci: fix Alpine build by installing terminfo dataMarc André Tanner
Otherwise the terminfo file for the default $TERM (xterm-256color) is missing, causing vis to fail because libtermkey can not be initialized properly.
2020-02-25test: updateMarc André Tanner
2020-02-25ci: remove Travis CI integrationMarc André Tanner
macOS based builds are now run with Github actions.
2020-02-25ci: remove Appveyor integrationMarc André Tanner
Windows/Cygwin based builds are now run with Github actions.
2020-02-25ci: improve OpenBSD Lua installationMarc André Tanner
By omitting the exact (minor) version number, this should be more future proof.
2020-02-25Revert "test/vis: use C.UTF-8 locale"Marc André Tanner
Apparently the C.UTF-8 locale is not yet supported by upstrem glibc. As a result this breaks the tests on distributions such as Arch Linux which use unmodified glibc. This reverts commit 92ee4fc43fd750246bbc1529082c0c0c8d9f233e. Fix #20
2020-02-25ci: make sure en_US.UTF-8 locale is available on DebianMarc André Tanner
2020-02-25ci: disable codecov commit status updatesMarc André Tanner
2020-02-24vis-lua: implement vis:redraw()Marc André Tanner
2020-02-24lua: add `redrawtime` optionGeorgi Kirilov
Upper bound lexing time and cancel highlighting if it is exceeded.
2020-02-24lua: fix documentation typos and errorsGeorgi Kirilov
2020-02-24lua: optimize the win:style() loopGeorgi Kirilov
barely noticeable CPU usage improvement, although the number of iterations went down by an order of magnitude.
2020-02-24ci: update README status badgesMarc André Tanner
2020-02-23sam: warn when attempting to write to an existing fileMarc André Tanner
Add ! to override.
2020-02-23sam: fix modification time comparision when writing fileMarc André Tanner
The modification time should only be compared when dealing with the same file i.e. the following should work without a warning: $ touch foo; sleep 1; touch bar $ vis foo :w bar Also switch from path to inode based file equality testing.
2020-02-22ci: fix test coverage uploadMarc André Tanner
2020-02-22test: updateMarc André Tanner
2020-02-22test/vim: add info about skipped testsMarc André Tanner
2020-02-22test/util: fix compilation with old libtermkey versionsMarc André Tanner
2020-02-22Merge branch 'vis-interop-tests' of https://github.com/x1ddos/vis-testMarc André Tanner
2020-02-22sam: re-take range after pre-save hooks are runalex
A vis.events.FILE_SAVE_PRE callback may mutate the file text, making the original range passed to cmd_write incorrect. It is unclear how to realign the range after the callback is done for the cases where an active selection in visual mode is present or an explicit range like :1,2w! was specified. However, this commit resolves the issue for the case where the whole file is expected to be written.
2020-02-21test/vis: add a couple lua-vis interop testsalex
The tests assert that the entire file text is written to disk even if mutated in a vis.events.FILE_SAVE_PRE hooks.
2020-02-21vis: allow tests to have an optional lua scriptalex
The script named after <test-name>.lua, if exists, is run just before loading and executing <test-name>.keys. This allows tests to inject Lua code in the running vis instance to help augment the test environment. For instance, a test could listen to vis.events.FILE_SAVE_PRE events and mutate file text.
2020-02-20ci: add periodical coverity scan checkMarc André Tanner
2020-02-20ci: add Lua API documentation generationMarc André Tanner
2020-02-20ci: add Lua static code analysisMarc André Tanner
2020-02-20ci: add man page generationMarc André Tanner
2020-02-20ci: add windows buildsMarc André Tanner