summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-10build: add Makefile target for code coverage via gcovMarc André Tanner
2016-11-09README: Fix instructions for lexers and themesKlemens Nanni
2016-11-09Use nicer IRC badge in READMEMarc André Tanner
2016-11-09vis: handle cancelation of `r` commandMarc André Tanner
Do not alter the text if <Escape> is pressed instead of a regular replacement character.
2016-11-09test/vim: test cancelation of `r` commandMarc André Tanner
2016-11-09Add another useless badge to the READMEMarc André Tanner
2016-11-09test: update test suiteMarc André Tanner
Includes the new ssam(1) based tests.
2016-11-09test/vim: add test for `r` in normal/visual modeMarc André Tanner
2016-11-09build: add automated Cygwin builds using AppVeyorMarc André Tanner
2016-11-09build: make `vis -v` version output more robustMarc André Tanner
The `git describe` command fails in shallow checked out git repositories which do not include the tag information. At least include the git short hash.
2016-11-09vis: improve `r` in normal and replace modeMarc André Tanner
In normal mode `r<key>` was previously implemented as `R<key><Escape>`. However this does not work when the replacement key is `<Enter>` to insert a new line, because in replace mode new lines are not overwritten. The count is now also respected. Also properly support `r` in visual mode where before it was aliased to `c`. Fix #190
2016-11-09vis: perform undo snapshotting more rarerlyMarc André Tanner
Do not take snapshots after every operation in insert/replace mode. As an example up until now we would take a snapshot after every <Backspace>/<Delete> press, hence when undoing changes each character would be restored individually. The same applies for <C-w> and related actions. From now on we only snaphost when: - transitioning from insert/replace mode to normal mode (but not when switching to operator pending mode) - an operation takes place from normal mode - an idle time expires in normal/replace mode
2016-11-09vis: add replace operator VIS_OP_REPLACEMarc André Tanner
Delete the given range and insert the same number of replacement characters.
2016-11-09vis: unify VIS_OP_{INSERT,REPLACE} implementationMarc André Tanner
They both perform a motion before changing mode.
2016-11-08sam: fix default value handling of +/- addressesMarc André Tanner
We need to distinguish between an explicit given zero and an omitted value which should default to 1. This should fix the following constructs which rounds up/down an existing selection to whole lines -0,+0 and -0+,+0-
2016-11-08vis: fix key parsing/skipping logicMarc André Tanner
We should only attempt to parse special keys if they are delimited by angle brackets i.e. <Key> but not Key. Previously we would wrongly skip over the latter.
2016-11-08test/vis: add structural regexp tests which round up/down a selectionMarc André Tanner
2016-11-08test/util: fix key parsing in keys utilityMarc André Tanner
We should only attempt to parse special keys if they are delimited by angle brackets i.e. <Key> but not Key.
2016-11-08test/util: delete useless fileMarc André Tanner
2016-11-08sam: dispose primary cursor at end of groupMarc André Tanner
Something like :{ x/pattern/ } should not leave the original cursor around.
2016-11-06view: make viewport adjustment more robustMarc André Tanner
Make sure that the view_cursors_scroll_to function does not enter an infinite loop.
2016-11-05test: disable test/vis and test/vim sets on non-Linux CI serversMarc André Tanner
2016-11-05vis: display Lua package.cpath in :help outputMarc André Tanner
These paths are used to load the Lua LPeg module (lpeg.so) and are thus helpful when diagnosing setup problems in case syntax highlighting does not work.
2016-11-05test/sam: improve test outputMarc André Tanner
Redirect the vis UI to /dev/null. Let it write to an output file instead of redirecting stdout, keeps the terminal in a sane state.
2016-11-05test/sam: add new test casesMarc André Tanner
2016-11-05test/sam: add more remarks about sam incompatibilities to READMEMarc André Tanner
2016-11-04sam: y should also loop over empty trailing matchesMarc André Tanner
The following x/example/ y/e/ i/-/ should produce `-e-xample-` where before it would wrongly result in `-e-xample`.
2016-11-04test/vim: do not run these tests in continuous integration environmentMarc André Tanner
In contrast to the local enivronment they don't seem to work reliably.
2016-11-03test/sam: add sam testing infrastructureMarc André Tanner
Compare structural regular expression implementation with the one of sam(1).
2016-11-03test/vim: add more join related testsMarc André Tanner
Close #4
2016-11-02sam: improve cursor positioning after command executionMarc André Tanner
Previously something like :x/pattern :c/replacement would cause all cursors to disappear because the location they were placed on was deleted beneath them.
2016-11-02sam: fix default command handling at end of a groupMarc André Tanner
Something like :{ x/pattern/ } should select all occurrences of pattern.
2016-11-02sam: ignore white space between commands of a groupMarc André Tanner
2016-11-02sam: fix command name parsingMarc André Tanner
Any white space should terminate the command name. In particular multi-line commands as part of a group were not handled correctly.
2016-11-02sam: improve escape parsing logicMarc André Tanner
\\ should not be treated specially when parsing regular expressions.
2016-11-02ui: correctly display cell attributesMarc André Tanner
When multiple selections are being displayed and the selection orientation is changed, the complete primary selection was wrongly colored in the style of the primary cursor.
2016-11-01vis: abort syntax highlighting if viewport is invalidMarc André Tanner
In theory this should not happen in the first place, but in practice it might fix the symptoms reported in issue #367.
2016-11-01text: change usage of sizeof idiom for allocation of new objectsMarc André Tanner
The new code is preferable because it works independently of the variable type. Whereas before a change in type, but not within the sizeof expression would cause a wrongly sized allocation.
2016-11-01text: rename Buffer to Block to avoid confusion with buffer.[ch]Marc André Tanner
2016-10-28theme: use better defaults for color column and cursor line styles in 16 ↵Marc André Tanner
color mode Setting the background color to the same color as the text is not helpful, instead use red for the color column and underline to highlight the cursor line.
2016-10-28ui: allow cursor line style to override cell attributesMarc André Tanner
Up until now only the background color could be changed.
2016-10-28vis-complete: allow custom input not matching any completion candidateMarc André Tanner
See also discussion in #402.
2016-10-28vis: tweak join behaviorMarc André Tanner
We only remove leading but not trailing white space of the lines to be joined. Not completely sure whether that is an improvement, but it matches vim behavior. Do not insert a space when joining empty lines.
2016-10-27vis: fix :langmap behaviorMarc André Tanner
The mapped to latin key has typically a shorter UTF-8 representation, thus explicitly copy the NUL terminator to properly truncate the new key value.
2016-10-27view: use more lightweight default white space replacement symbolsMarc André Tanner
While the replacement symbols are still not run-time configurable, the new defaults should hopefully please more people. Close #401
2016-10-27vis: apply language map only to key values not modifiersMarc André Tanner
The language map translation should not take modifiers into account. For example if `a` is mapped to `b` then `<M-a>` should also be mapped to `<M-b>`. Fix #404
2016-10-26Merge branch 'awk' of https://github.com/larryhynes/visMarc André Tanner
2016-10-21Add app definitions for awk in vis.luaLarry Hynes
2016-10-15vis.1: Added spacing as in manpages.bsd.lvjosuah
2016-10-15Manual: Cleanup, and real "KEY BINDINGS" sectionjosuah