aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-02-19Merge branch 'master' of https://github.com/ii8/visMarc André Tanner3-61/+192
2018-01-27lua: recognize scheme library definition filesMurray Calavera1-1/+1
2018-01-27lexers: improve scheme lexerMurray Calavera1-59/+190
* fix character literals (#\" no longer quotes the entire file etc.) * properly nest block comments and support simplified datum comment * add r7rs keywords, functions and directives * fix identifiers - pipes were not recognized as delimiters - some valid identifiers were not recognized - some were partially parsed as keywords - quoting only worked on plain alphanumeric identifiers * fix numbers (some valid numbers were not recognised) * dont parse boolean constants as functions
2018-01-27lexers: pony missing tilde for unsafe operatorsMurray Calavera1-1/+1
2018-01-27vis-complete: send whole paths for completionTwoFinger2-1/+5
text_object_word() was only sending the last part of a pathname to vis-complete. text_object_longword() is better, but sometimes may send a bit too much, so leading delimiters for some languages are stripped additionally.
2018-01-27vis-complete: Strip the common partTwoFinger1-2/+2
The previous commit would generate duplicate entries when files with the same name exist in more than one directory.
2018-01-27vis-complete: Show just basenames in vis-menuTwoFinger1-6/+8
2018-01-27vis-complete: Slight refactoringTwoFinger1-12/+7
Move the "case $PATTERN" block inside "if $COMPLETE_WORD" to make it clear that it is specific only to the "else" branch. Eliminate the $START variable - it was used only once, and using dirname(1) directly is obvious enough. Remove the comments inside the "case" block (explaining the "what") and replaced them with a single comment explaining the "why".
2018-01-26test: updateMarc André Tanner1-5/+5
2018-01-26vis: keep <C-j> mapped to <Enter> in command line windowMarc André Tanner1-0/+1
This keeps the existing testing infrastructure, which pipes newline separated commands to stdin, working.
2018-01-26vis: insert carriage return upon <C-v><C-j> in insert modeMarc André Tanner1-1/+1
Fix #656
2018-01-26vis: insert literal new line upon <C-j> in insert modeMarc André Tanner1-1/+1
2018-01-26build: abort configure scripts upon interruptsMarc André Tanner1-1/+2
Fix #607
2018-01-26lua: reap the zombie after io.popen()Casper Ti. Vector1-0/+1
Close #655
2018-01-26build: use pkg-config to find lpegTwoFinger1-4/+18
2018-01-24PHP lexer: stop line comments right before ?>pystub1-1/+1
This allows to end PHP code sections. Otherwise token is treated as part of the comment and parser continues to parse whatever is after.
2018-01-22lua: fix theme loading when lexer module is not availableMarc André Tanner4-6/+8
The color settings are currently stored in the `vis.lexers` table, make sure it is not nil even when loading the lexer module (or one of its dependencies e.g. lpeg) failed.
2018-01-05vis: remove now unused variable in prompt handling codeMarc André Tanner1-1/+0
2018-01-03vis: fix command malfunction triggered by special cursor positionCasper Ti. Vector1-5/+2
At the command prompt, commands were not recognized properly when the cursor was placed on a delimiting character (:, ?, /) while pressing enter. Fix #653
2017-12-25lexers: add ponyMurray Calavera3-1/+118
2017-12-21vis: do not override default register on delete operations in insert modeMarc André Tanner1-0/+8
Fix #644
2017-12-21vis: improve `cw` behaviorMarc André Tanner1-6/+11
Correctly handle single letter words surrounded by special symbols, e.g. [c]. Fix #643
2017-12-21Add a key combo example of mark usageJavier Olaechea1-0/+7
2017-12-09vis: make selections visible when lua support has been disabledMarc André Tanner1-2/+6
When the fore and background colors are the same, swapping them has no effect. Instead use the specified cell attributes. Previously the CELL_ATTR_REVERSE used in the default selection style was ignored. In general the default style definitions for non-Lua builds could probably be improved further. Fix #635
2017-12-08vis: let <C-c> behave as <Escape> if only one selection existsMarc André Tanner1-1/+1
This should allow the :-command prompt to be closed with <C-c><C-c> (from insert mode) or <C-c> (from normal mode). Fix #608
2017-12-07build: update alpine in docker build to version 3.7Christian Hesse1-1/+1
2017-12-02build: remove erroneous libtermkey dependencyMarc André Tanner1-1/+1
Fix #636
2017-12-01Python lexer: recognize python3's async/await keywordsСемён Марьясин1-0/+1
2017-11-21vis-lua: implement window:closeMarc André Tanner1-0/+28
2017-11-21vis-lua: do not enumerate internal windowsMarc André Tanner1-5/+8
This for example skips the command prompt window.
2017-11-20Update erlang syntax lexer.Emil Falk1-39/+20
2017-11-04vis: take symbolic keys into account when evaluating key prefixesMarc André Tanner1-6/+32
Previously `ci<` would have no immediate effect because in operator pending mode `i<` was wrongly treated as a powwible prefix of `i<Tab>`. Fix #624
2017-10-30man: remove outdated key mappingMarc André Tanner1-3/+0
Fix #622
2017-10-30lexer: associate *.conf to the ini lexerMarc André Tanner1-1/+1
2017-10-30lexer: fix file type association for xs lexerMarc André Tanner1-1/+1
2017-10-01Add `xs` lexer and mappings.David B. Lamkins2-1/+79
2017-09-15man: fix typos and grammar issuesMarc André Tanner1-7/+5
2017-09-15lexers: fix white space issue of recent php lexer changesMarc André Tanner1-40/+40
2017-09-15vis: restore old s mapping in visual modeMarc André Tanner1-0/+1
This should have been part of 4715eb3178d62f3527ae2c24092bf0c109bb570b.
2017-09-15vis: remove ! operatorMarc André Tanner5-41/+2
Use visual mode and :| to filter text through external commands. The mapping was already reused for selection complement.
2017-09-15Merge branch 'master' of https://github.com/ltobler/visMarc André Tanner1-2/+2
2017-09-14Reassign .cls file extension to latexLukas Tobler1-2/+2
Both VB and LaTex use .cls file extensions. It should be a much more reasonable default to assume LaTex syntax.
2017-09-13vis.1: Surround with quotes link-name arguments of .LkJavier Olaechea1-5/+5
As noted on mdoc(7), in groff "Lk only accepts a single link-name argument; the remainder is misformatted. The quotes makes groff treat the title as a single argument.
2017-07-27vis: ignore SIGQUITMarc André Tanner1-2/+2
Pressing Ctrl+\ should probably not terminate the editor. In previous versions libtermkey would disable signal generation by disabling termios VQUIT. However, curses probably overrides it when they both fight for terminal settings. This should probably be cleaned up at some point. Ignoring SIGQUIT seems like a good idea anyway.
2017-07-26- added php constantsSamuel1-0/+25
2017-07-26- updated php keywordsSamuel1-12/+20
2017-07-24lexers: add copyright statement to strace lexerMarc André Tanner1-0/+1
2017-07-23build: add git based version information backMarc André Tanner1-1/+1
2017-07-23build: set version to 0.4Marc André Tanner1-1/+1
2017-07-23vis: use strncpy to copy into fixed sized bufferMarc André Tanner1-1/+1
In practice this was never an issue also it is guaranteed that the terminating zero byte is already there. Fixes coverity issue 157023.