summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-19vis: restructure register handlingMarc André Tanner
Decouple register content from cursors. Previously each cursor had exactly one corresponding register. Now each register can save a list of values whose lifetime is not tied to the cursor. If multiple cursors exist and a put with a register holding only a single value is performed, then this value is inserted at every cursor location. If there are fewer values available than cursors, then only the matching ones will be used. If a register holding multiple values is inserted in a single cursor context, only the first value will be used. Another option would be to join all existing values. The details of this behavior might be changed in the future. <C-r> in insert mode has not yet been adapted and register handling in general needs to be cleaned up further. Fix #527
2017-04-19array: implement array_resizeMarc André Tanner
2017-04-19array: implement array_truncateMarc André Tanner
2017-04-18buffer: simplify buffer_content0Marc André Tanner
2017-04-18array: implement array_capacityMarc André Tanner
2017-04-18vis: rename vis_register_set to vis_registerMarc André Tanner
2017-04-14build: install miscellaneous documentationDavid B. Lamkins
2017-04-14vis: make certain operations interruptible with <C-c>Marc André Tanner
As currently implemented this will only work for operations which are individually fast, but repeated many times (e.g. `1000000itext<Escape>`).
2017-04-12sam: fix negative count specifiers from visual modeMarc André Tanner
2017-04-12man: document new count specifier for `g` and `v` commandsMarc André Tanner
A few examples: :x g1 selects the first line :x g-1 selects the last line :x g-3, selects the last three lines :x g2,4 selects lines 2, 3 and 4 :x g,5 selects all lines up and including the fifth :x g6, selects all lines starting from the sixth :x g%2 selects all even lines :x v%2 selects all odd lines
2017-04-12sam: support %n count specifier matching every n-th selectionMarc André Tanner
2017-04-12sam: add support for negative count specifierMarc André Tanner
2017-04-12sam: add support for count specifier to `g` and `y` commandsMarc André Tanner
2017-04-12sam: distinguish between empty // and no regexMarc André Tanner
2017-04-12sam: reject command names containing digits or ending with a hyphenMarc André Tanner
The current implementation will also reject consecutive hyphens.
2017-04-11build: update libtermeky to version 0.20Marc André Tanner
Fix #537
2017-04-11build: tweak CFLAGS for profiling targetMarc André Tanner
2017-04-11text: do not redefine _GNU_SOURCEMarc André Tanner
Fix #536
2017-04-09text: use MB_LEN_MAX instead of MB_CUR_MAXMarc André Tanner
2017-04-09vis: reject invalid register name when recording a macroMarc André Tanner
Fix #534
2017-04-09vis: remove handling of \r\n line endingsMarc André Tanner
Use something like dos2unix(1) and unix2dos(1), if you need to edit such files.
2017-04-09text: drop special handling of \r\n line endingsMarc André Tanner
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner
These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl.
2017-04-08text: adjust iterator position when switching to adjacent piecesMarc André Tanner
2017-04-08text: simplify \r\n handlingMarc André Tanner
2017-04-08text: introduce text_char_get which converts \r\n to \nMarc André Tanner
2017-04-08text: fix iterator semantics regarding windows style newlinesMarc André Tanner
At some point we might drop this mess and ask users to rely upon dos2unix(1) and unix2dos(1), respectively.
2017-04-06test: updateMarc André Tanner
2017-04-06vis: fix memory leak in selection rotation codeMarc André Tanner
2017-04-06sam: properly free transcript in error caseMarc André Tanner
2017-04-06Fix formatting in man pageTwoFinger
2017-04-04vis: remove unused struct memberMarc André Tanner
2017-04-04vis: do not remove indentation of non-empty linesMarc André Tanner
Fix #532
2017-04-04vis: add motions to move by codepointsMarc André Tanner
Some people might prefer this for <Backspace> behavior. Except for that and debugging purposes using `ga` and `g8` it is not yet that useful.
2017-04-04vis: automatically dispose invalid cursorsMarc André Tanner
2017-04-04vis: reject multi letter mark and register namesMarc André Tanner
Fix #531
2017-04-02Fix Debian package lintian warningsMarc André Tanner
https://mentors.debian.net/package/vis
2017-03-31text: Add missing va_end() whenRaúl Peñacoba
vsnprintf fails
2017-03-31vis: improve tab completion in command promptMarc André Tanner
At some point it should probably be possible to add command prompt bindings from within Lua. Currently there is no easy/realiable way to detect the prompt window. Should improve #526.
2017-03-31lexers: sync with scintillua changeset 600 rev fdeca0b808bfMarc André Tanner
I think the default value for the cache argument to the lexer load function should be true, not false. Optimize for the common case. This makes the API ugly/harder to use. But for now we follow upstream.
2017-03-31vis: add non-default actions for vi compatible n/N motionsMarc André Tanner
The following key mappings should result in the vi behavior: :map! normal n <vis-motion-search-repeat> :map! normal N <vis-motion-search-repeat-reverse> The default remains unchanged, that is `n` (`N`) always searches towards the end (start) of the file. Fix #470
2017-03-31vis: rename search related constantsMarc André Tanner
2017-03-31Add more wiki references to the READMEMarc André Tanner
2017-03-31Use a minimal POSIX shar implementation for self extracting executableMarc André Tanner
This only requires POSIX shell utilies for extraction. The resulting archive is bigger (it is not gzip compressed) and startup will be slower due to many spawned processes.
2017-03-27Prefer Lua 5.3Klemens Nanni
2017-03-27build: add git based version information backMarc André Tanner
2017-03-25build: set version to 0.3Marc André Tanner
2017-03-25Merge branch 'master' of https://github.com/joshaw/visMarc André Tanner
2017-03-24lexers: fix perl pattern for horrible regex linesS. Gilles
Under presently-not-precise circumstances, regex patterns longer than a screenful can cause first_match_pos to be nil. In this sutation, evaluating `first_match_pos - 1' will be an error, so jump to matchless case.
2017-03-24vis: properly redraw status bar of windows displaying internal filesMarc André Tanner
Currently the only "internal window" with a status bar is the information window used to display Lua stack traces. We do not want to trigger events for it, because that could result in further Lua errors. Nonetheless its status bar should be properly redrawn to avoid display artifacts. That is why we fall back to the built-in default status bar as used by non-Lua builds.