summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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-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
2020-02-20ci: add macOS buildsMarc André Tanner
2020-02-20ci: add ubuntu buildsMarc André Tanner
2020-02-20test: updateMarc André Tanner
2020-02-13ci: add sourcehut build manifestsMarc André Tanner
2020-02-13test: updateMarc André Tanner
2020-02-12sam: support optional count for text commandsMarc André Tanner
The text given for the a, i and c commands can be prefixed with an optional count indicating how often the text should be inserted, defaults to 1.
2020-02-12sam: move parse_number code, no functional changeMarc André Tanner
2020-02-11lexers: fix TOML comments not being detectedRandy
`operator` variable matches "#", leaving nothing for the comments rule to match. Since "#" only marks comments in TOML, I just went ahead and removed the character from the `operator` token.
2020-02-11lexers: remove TOML indent errorRandy
According to the TOML github page[1], indentation can be tabs *and/or* spaces, so `indent_error` is removed. [1] https://github.com/toml-lang/toml#example
2020-02-10vis-lua: avoid string memory leaks in error caseMarc André Tanner
The function lua_pushstring can throw an error, meaning it will setjmp(3) out thereby leaking the allocated memory. By using lua_newuserdata we let Lua free the memory during a GC run.
2020-02-10vis: omit error message when vis-menu(1) is cancelledMarc André Tanner
2020-02-10vis-menu: use distinct error code upon cancelling selectionMarc André Tanner
The following exit statuses are used: 0 an item was successfully selected 1 the selection was cancelled >1 failure, some error occured
2020-02-10lexers: add git rebase lexerMarc André Tanner
2020-02-10filetype: highlight column 72 in git commit messagesMarc André Tanner
2020-02-10lexers: ruby squiggly heredocsKelsey Judson
2020-02-09filetype: add more Prolog filename extensionsKarl Schultheisz
2020-02-07vis: restore mode when dot-repeatingGeorgi Kirilov
2020-02-07lua: add <plugin>/init.lua to package.pathGeorgi Kirilov
2020-02-07build: improve debug flagsMarc André Tanner
Make macro definitions and enums available to debugger.
2020-02-07doc: update release numberMarc André Tanner
2020-02-07Merge branch 'lexer-c' of https://github.com/zsugabubus/visMarc André Tanner
2020-02-07Merge branch 'fix-cc-cell' of https://github.com/zsugabubus/visMarc André Tanner
2020-02-04vis: make core code more robustMarc André Tanner
The core vis code was originally written under the assumption that there always exists at least one window. However, when being called from the Lua configuration file during start up this is not yet the case. In general, Lua code should always be placed within appropriate event handlers e.g. vis.events.INIT for global configuration. Invoking API functions depending on an active window from top level statements is not supported. Where before the editor simply crashed, these changes turn such code sections into NOPs. Fix #561
2020-02-03array: make array_sort work for empty arraysMarc André Tanner
2020-02-03build: properly kill docker containerChristian Hesse
We keep a running docker container in the background. If the build process fails this becomes dangling. Make sure the container is properly killed.
2020-02-03vis: improve <C-n> in visual modeMarc André Tanner
If the existing primary selection is not a word, switch to a literal search. This should still avoid unwanted prefix matches (e.g. when renaming related variables) but allow searching for arbitrary regions. Fix #746
2020-02-03vis: simplify selections_match_nextMarc André Tanner
Introduce utility function to create new anchored, primary selection.
2020-02-03build: explicitly specify working directory for dockerMarc André Tanner
Otherwise the config.mk file generated by ./configure does not end up in the source tree and has no effect. Our Makefile does currently not support out of tree builds. Previously this worked because the WORKDIR within the Dockerfile was set to the vis source (and build) directory.
2020-02-02lexers: also apply 7e9e0a2 to html and wsf lexersMarc André Tanner
Adapt in_tag to surrounding coding stlye and use the same simplified version in html, wsf and xml lexers.
2020-01-31lexers: XML performance improvementGeorgi Kirilov
the new pattern does more or less the same thing, but forward instead of backward.
2020-01-31Merge branch 'case-visual-mode' of https://github.com/erf/visMarc André Tanner
2020-01-31lexers: add reference to new upstream locationMarc André Tanner
2020-01-31lexers: fix crash in rst lexerMarc André Tanner
Fix #665