| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2017-03-05 | lua: reimplement word and file name completion in lua | Marc André Tanner | 3 | -0/+47 | |
| The file name completion does not yet behave the same way as the previous C code because the completion prefix is currently simply calculated using the `iw` text object which does not handle common path elements (e.g. `.`, `/`, `~`, etc). | |||||
| 2017-03-05 | vis-lua: expose vis:pipe function | Marc André Tanner | 1 | -0/+35 | |
| 2017-03-05 | vis: add file argument to vis_pipe_collect | Marc André Tanner | 2 | -3/+3 | |
| 2017-03-05 | vis: remove word and file name completion from editor core | Marc André Tanner | 2 | -79/+0 | |
| 2017-03-04 | test: update | Marc André Tanner | 1 | -5/+5 | |
| 2017-03-04 | vis: process command line options when reading from stdin | Marc André Tanner | 1 | -6/+7 | |
| Previously the following had no effect: $ echo foo | vis +"set syntax markdown" - Fix #512 | |||||
| 2017-03-03 | travis: fix luarocks invocation | Marc André Tanner | 1 | -1/+2 | |
| It can only install one package at a time. | |||||
| 2017-03-03 | build: add luacheck make target | Marc André Tanner | 2 | -1/+9 | |
| 2017-03-03 | travis: try to run busted based test on macOS | Marc André Tanner | 2 | -6/+6 | |
| 2017-03-03 | vis-lua: add vis:exit function | Marc André Tanner | 2 | -0/+24 | |
| 2017-03-02 | lua: fix luacheck warnings in plugins | Marc André Tanner | 1 | -3/+0 | |
| 2017-03-02 | vis-lua: fix bogus URL in LDoc comment | Marc André Tanner | 1 | -1/+1 | |
| 2017-03-02 | vis: remove :bdelete command | Marc André Tanner | 3 | -24/+0 | |
| It does not really fit into the style of the rest of the command language. Eventually we should be able to express this kind of thing using a looping construct based on the `X` and `Y` commands. | |||||
| 2017-03-02 | lua: use goto label to mimic continue statement | Marc André Tanner | 1 | -41/+36 | |
| This is a Lua 5.2 feature supported by LuaJIT. | |||||
| 2017-03-02 | lua: let number increment/decrement handle next number | Marc André Tanner | 1 | -37/+47 | |
| Operate on the next number to the right of the cursor, for now the matches are not restricted to the current line. Based on a patch from Denis Warsow. Close #509 | |||||
| 2017-03-01 | vis-lua: fix invalid LDoc tag | Marc André Tanner | 1 | -1/+1 | |
| 2017-03-01 | lua: return nil for invalid text objects | Marc André Tanner | 1 | -2/+2 | |
| 2017-03-01 | vis-lua: make cursor.pos return nil if cursor position is invalid | Marc André Tanner | 2 | -8/+15 | |
| It remains to be seen whether that is a good idea, but at least it will reveal possible bugs. | |||||
| 2017-03-01 | vis-lua: document cursor behavior | Marc André Tanner | 1 | -0/+50 | |
| 2017-02-28 | view: fix display when inserting text at start of file | Marc André Tanner | 1 | -2/+9 | |
| Before cebb24b36ac45cc7c6912481cacd29ef9d5c68b9 a mark at the start of the file was treated specially to always return position zero. Since this was no longer the case the following would insert text before the visible area: <PageDown><PageUp><PageUp>ifoo | |||||
| 2017-02-28 | vis: improve cursor positioning after shift operators | Marc André Tanner | 1 | -11/+17 | |
| There are still issues with left shifts starting from characterwise visual mode when the selection boundaries are deleted. For now this is considered a pilot error. Fix #508 | |||||
| 2017-02-28 | lua: reimplement number increment <C-a> and decrement <C-x> | Marc André Tanner | 2 | -0/+55 | |
| Based on a patch by Denis Warsow. Stuff which could probably be improved: - in vim the cursor does not need to be on top of the number, it suffices to be on the same line. - decrementing beyond zero does not work for hexadecimal and octal numbers, vim seems to wrap around in this case. 0x00000000 <C-x> becomes 0xffffffff Close #506 | |||||
| 2017-02-28 | lua: move digraph handling to separate 'plugin' | Marc André Tanner | 3 | -24/+27 | |
| Load a standard plugins directly from vis-std.lua. | |||||
| 2017-02-28 | vis-lua: correctly treat return value of input event handler | Marc André Tanner | 1 | -1/+1 | |
| Returning true from the event handler, indicating that the keys were consumed, should now prevent insertion as mentioned in the documentation. vis.events.subscribe(vis.events.INPUT, function(key) if key == ' ' then -- do something fancy here return true end end) | |||||
| 2017-02-28 | vis-lua: fix wrong return value when setting vis.count | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-28 | Merge branch 'master' of https://github.com/arames/vis | Marc André Tanner | 1 | -0/+5 | |
| 2017-02-27 | vis-lua: make vis:win assignable | Alexandre Rames | 1 | -0/+5 | |
| 2017-02-27 | Honor user's umask when saving files | Michael Forney | 1 | -2/+2 | |
| If the user wants new files to be created as 600, they will have set their umask to 077 in their environment. vis shouldn't restrict this further than the user has configured. | |||||
| 2017-02-27 | Remove unnecessary umask change in text_save_begin_inplace | Michael Forney | 1 | -2/+0 | |
| POSIX says that The mkstemp() function shall use the resulting pathname to create the file, and obtain a file descriptor for it, as if by a call to: open(pathname, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR) So this umask change didn't do anything in practice, unless the original umask was more restrictive than 0177. | |||||
| 2017-02-27 | Fix a couple typos | Michael Forney | 1 | -1/+1 | |
| 2017-02-27 | vis: allow useage of file dialog for :read command | Marc André Tanner | 2 | -13/+18 | |
| Fix #505 | |||||
| 2017-02-27 | view: reposition cursor after restoring selection | Marc André Tanner | 1 | -0/+1 | |
| This should fix selection changes after shift operators in visual mode. The problem was that the NOP motion which is executed when switching back into visual-line mode destroys the selection if the cursor is not already placed on a selection boundary. Fix #501 | |||||
| 2017-02-25 | test: update | Marc André Tanner | 1 | -11/+5 | |
| 2017-02-25 | lexers: sync with scintillua changeset 594 rev 6e29a8d2a783 | Marc André Tanner | 26 | -60/+71 | |
| Stuff which was left out / our local changes include: - lexer.lua: different loading mechanism and style handling - ansi_c.lua: for now we keep the separate token definitions with references to the respective standards. This should highlight file names after #include directives. It will also treat simple, non-nested occurrences of #if 0 ... #endif as a comment. - pkgbuild.lua: the arch specific fields have been kept - all scintilla $(style variables) have been replaced | |||||
| 2017-02-25 | build: try to enable compiler flags to minimize binary size | Marc André Tanner | 1 | -3/+3 | |
| 2017-02-25 | vis: tweak handling of end inclusiveness | Marc André Tanner | 1 | -2/+3 | |
| Only extend end of range when the motion did so too. As an example this prevents motions like `$dg_` from deleting the newline which was the starting position. | |||||
| 2017-02-25 | vis: mark 0, ^, g_ and $ as idempotent | Marc André Tanner | 1 | -1/+4 | |
| 2017-02-25 | vis: fix $ motion for lines containing \r | Marc André Tanner | 1 | -2/+2 | |
| 2017-02-25 | text: add iterator accessor function which translates \r\n to \n | Marc André Tanner | 2 | -0/+14 | |
| 2017-02-25 | vis: make ^ and g_ only skip blank (spaces+tabs) characters | Marc André Tanner | 1 | -2/+3 | |
| 2017-02-25 | vis: add vis- prefix to pseudo editor keys | Marc André Tanner | 2 | -166/+166 | |
| 2017-02-24 | vis: remove unused struct member | Marc André Tanner | 2 | -5/+3 | |
| The macro replay code has since been refactored, making this obsolete. There is only ever one input queue from which keys are interpreted. | |||||
| 2017-02-24 | vis: make help texts optional to produce a smaller binary | Marc André Tanner | 9 | -275/+311 | |
| $ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system. | |||||
| 2017-02-24 | vis: fix ^ motion for blank lines terminated by \r\n | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-24 | vis: fix display after newline insertion at the start of viewport | Marc André Tanner | 1 | -2/+8 | |
| Previously the window content would not be scrolled down when inserting a newline exactly at the start of the display area as in the case when a file starts with an empty line and the following is performed: <PageDown><PageUp><PageUp>o | |||||
| 2017-02-23 | vis: improve handling of \r\n line endings | Marc André Tanner | 1 | -6/+21 | |
| Change the text_iterator_char_{prev,next} functions to treat them as a single character, meaning cursor motions will skip both bytes at the same time. | |||||
| 2017-02-23 | view: make sure viewport remains valid when scrolling up | Marc André Tanner | 1 | -1/+1 | |
| In a file with windows style \r\n line endings scrolling up would wrap around to the end of the file. | |||||
| 2017-02-23 | vis: unify error path of command registration functions | Marc André Tanner | 1 | -6/+10 | |
| 2017-02-23 | test: update | Marc André Tanner | 1 | -5/+11 | |
| 2017-02-23 | build: skip configure check for built-in lpeg if lua is not found | Marc André Tanner | 1 | -1/+1 | |
| $ ./configure --disable-lua will no longer look for liblpeg. | |||||
