summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-26- updated php keywordsSamuel
2017-07-24lexers: add copyright statement to strace lexerMarc André Tanner
2017-07-23build: add git based version information backMarc André Tanner
2017-07-23build: set version to 0.4Marc André Tanner
2017-07-23vis: use strncpy to copy into fixed sized bufferMarc André Tanner
In practice this was never an issue also it is guaranteed that the terminating zero byte is already there. Fixes coverity issue 157023.
2017-07-23vis: only draw selections of currently active windowMarc André Tanner
This should make it easier to see which window is focused.
2017-07-23vis-lua: move marks array to window objectMarc André Tanner
Some marks (only '^ right now) are window specific while others have file file scope. This distinction is currently hidden in the API. Before this commit file.marks[...] would always operate on the currently active window.
2017-07-17vis: specify window in mark related APIMarc André Tanner
This should also fix coverity issue 157024.
2017-07-17vis: fix coverity issue 157025Marc André Tanner
The static analyzer can currently not infere that there always exists at least one selection.
2017-07-14man: update manual page with recent developmentsMarc André Tanner
2017-07-14vis: restore s / S normal mode bindingsMarc André Tanner
They were removed in 78d6ae87398bb90aa6067b0747934d55961e1efb to make room for the selection manipulation primitives. But by now we use `m` and `M` to save/restore selections. I still think these mappings are rather useless and they might well disappear again in the future. See also #593
2017-07-14vis: remove useless mappings which interfere with jumplistMarc André Tanner
2017-07-14vis: use distinct mark to save last selectionsMarc André Tanner
This partially reverts f9e2b884c15919757651db8b10c033a344a19e75 further jumps after leaving visual mode should not break `gv`.
2017-07-14vis: always reduce selections when not in visual modeMarc André Tanner
For now we only allow singleton selections in normal mode, this might change in the future.
2017-07-14vis-lua: make selection first class primitives in Lua APIMarc André Tanner
2017-07-13test/lua: adapt tests to changes in Lua APIMarc André Tanner
2017-07-11vis: handle further input after mark and register specifiersMarc André Tanner
This fixes #531 in a more robust way. The key handling functions should be able to handle additional input passed to them as is for example the case when processing the `gv` mapping.
2017-07-11Revert "vis: process aliased key sequences individually"Marc André Tanner
This reverts commit 54ca598fcccff8844bfbe494cd3b325b2fea487f. The key handling functions are called too often. This for example causes problems for `r` (replace char) in combination with :langmap.
2017-07-11vis: cleanup register related APIMarc André Tanner
Also expose all register slots through the Lua API.
2017-07-11vis-lua: represent marks as array of rangesMarc André Tanner
2017-07-10test: updateMarc André Tanner
2017-07-10vis: remove change listMarc André Tanner
This was completely broken since 71eab6d5d72145f17ab3d4c87945ac12176ae8e9 and even before never really worked as one would expect. If anything it should be implemented like the jump list using marks.
2017-07-10vis: let '^ mark point to top of jump listMarc André Tanner
2017-07-10vis: implement jump list in terms of marksMarc André Tanner
2017-07-10array: add helper functions for LIFO usageMarc André Tanner
2017-07-10vis: simplify and fix pairwise selection intersectionMarc André Tanner
2017-07-10vis: simplify selection complement and minus implementationMarc André Tanner
2017-07-10vis: rename default mark to 'Marc André Tanner
2017-07-09Add Myrddin lexer and filetypes entryMichael Forney
2017-07-09test/vis: add more tests for selection operationsMarc André Tanner
2017-07-08test: updateMarc André Tanner
2017-07-08test/sam: add simple search replace unicode regression testMarc André Tanner
2017-07-08vis: perform more renames cursor -> selectionMarc André Tanner
To fix compilation you need to update (or remove) config.h.
2017-07-08view: keep but clear primary selection if instructed to replace allMarc André Tanner
Previously the last selection was kept implicitly to statisfy the invariant that at least one selection needs to exist.
2017-07-08test/vis: add tests for set operations on selectionsMarc André Tanner
Also rename some files and adjust to new mark key bindings.
2017-07-08vis: cleanup marks implementationMarc André Tanner
We now use ' to refer to marks. Mark a is set using 'am and restored using 'aM while this is slightly harder to type than ma and 'a it is consistent with register usage for yank/put and allows a default mark to be used which is handy for quick selection manipulation primitives.
2017-07-07vis: use marks instead of registers to store selectionsMarc André Tanner
The key binding remain the same, but the selections are now stored on a per-buffer basis.
2017-07-05text: limit write(2) calls to INT_MAX bytesMarc André Tanner
Otherwise this fails on macOS. Fix #578
2017-07-05vis: make sure all selections have same anchored stateMarc André Tanner
With the current model the differences between normal and visual mode is that in the latter selections are anchored (meaning one endpoint remains fixed), while in normal mode both endpoints can in principle be updated simultaneously (currently they are always colapsed to a singleton selection, giving the impression of cursors).
2017-07-04Remove conditional initialization from MakefileGeorge Brown
No longer needed after standalone build target was removed.
2017-07-04vis: implement `gv` by means of new "^ registerMarc André Tanner
This window local register holds the last active selections.
2017-07-04vis: process aliased key sequences individuallyMarc André Tanner
While the complete alias is added to the input queue, the called key bindings should only see the keys they have asked for. Previously a mapping such as: :map! normal gv \"^Sv did not work as expected because the key binding for the register did reject an invalid multi letter register name. Might also influence #581
2017-07-03Fix Unicode regex searches for libtre buildsMarc André Tanner
Fix #566
2017-06-27man: Fix a typoTwoFinger
2017-06-27vis: properly set initial window ui optionsMarc André Tanner
This should keep the EOF markers visible when another option is enabled. The whole UI option handling is a bit of a mess. In the longterm more of the drawing code should be moved into Lua.
2017-06-27Merge branch 'show-eof' of https://github.com/p-e-w/visMarc André Tanner
Conflicts: view.c view.h
2017-06-27Merge branch 'theme-tweaks-2' of https://github.com/p-e-w/visMarc André Tanner
Conflicts: view.c
2017-06-19test: updateMarc André Tanner
2017-06-19test/vis: adapt to new trim selection key bindingMarc André Tanner
2017-06-15vis: enable new selection manipulation primitivesMarc André Tanner
This is still very much work in progress. You will have to remove (or update) your local config.h file.