summaryrefslogtreecommitdiff
path: root/vis.lua
AgeCommit message (Collapse)Author
2016-12-06vis-lua: more extensive Lua API documentationMarc André Tanner
2016-12-03vis: use file(1) for file type detectionMarc André Tanner
File type detection works as follows: 1) strip off suffixes to be ignored and test against a set of known file extensions 2) run `file -bL --mime-type` and check against a set of known mime types 3) read out the first few bytes of the file and pass them to custom Lua file type detection functions For now the configured file extensions are literal strings which are matched against the end of the file name. Maybe we should use Lua patterns instead. We will need to add more mime types to our mapping table. For now only the `bash` file type was associated with the text/x-shellscript mime type.
2016-11-30lexer: add standard mlMurray Calavera
2016-11-15vis: move initial theme loading code to luaMarc André Tanner
2016-11-10vis: change default status bar indication for Windows style line endingsMarc André Tanner
2016-11-10vis-lua: change misnamed attribute values of `file.newlines`Marc André Tanner
Also rename underlying C code.
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-10-21Add app definitions for awk in vis.luaLarry Hynes
2016-10-07lexers: sync with scintillua changeset 571 rev 23435f1d82daMarc André Tanner
This fixes ":set syntax text" and adds a missing file association for the taskpaper lexer. The protobuf and crystal lexers were slightly reformatted, but should contain no functional changes.
2016-09-29Cosmetic changes to file detection codeMarc André Tanner
2016-09-28Replace win.file.lines with win.file:content for better performanceAlexey Dubinin
2016-09-27Better file type detection: full filename patterns, shebang, custom detector ↵Alexey Dubinin
functions
2016-05-28lexer: add lexer for Google protocol buffer IDLDavid B. Lamkins
Close #326
2016-05-24vis-lua: cleanup Lua status bar display codeMarc André Tanner
2016-05-22vis: only display mode in status bar of active windowMarc André Tanner
2016-05-22vis: load default styles even for unknown file typesMarc André Tanner
2016-05-22vis: refactor status line handlingMarc André Tanner
Make window status bar content configurable via Lua.
2016-05-22vis: consider :set horizon setting when syntax highlightingMarc André Tanner
2016-05-22vis: move syntax highlighting to pure Lua codeMarc André Tanner
2016-05-19lexer: add crystalMichel Martens
2016-05-11lexer: *.cc is a C++ file extensionMarc André Tanner
2016-05-11Merge branch 'fstab' of https://github.com/eworm-de/visMarc André Tanner
2016-05-11lexer: add fstabChristian Hesse
2016-05-11lexer: add delimiter-separated-valuesChristian Hesse
2016-05-07lexer: add networkd file LPeg lexerChristian Hesse
2016-05-07lexer: add systemd unit file LPeg lexerChristian Hesse
2016-05-07lexer: sort list of file extensionsChristian Hesse
2016-05-06lexer: assume .h is ANSI C, not C++Christian Hesse
2016-05-04vis-lua: reload all lexers after theme changeMarc André Tanner
Close #221
2016-04-29vis: move non-configuration sections out of visrc.lua into vis.luaMarc André Tanner
The intention is that vis.lua will provide parts of the Lua API not implemented in the C core. Please update your existing visrc.lua configuration file accordingly.