| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 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. | |||||
| 2017-02-23 | vis: remove `gf` and `<C-w>gf` functionality | Marc André Tanner | 2 | -38/+0 | |
| This can also be implemented using Lua, if desired. | |||||
| 2017-02-23 | text-object: remove text_object_number | Marc André Tanner | 2 | -25/+0 | |
| This was only used by the number increment/decrement action. The same functionality (and more) can be implemented in lua using something like: vis:textobject_new("in", function(win, pos) return win.file:match_at(vis.lexers.integer + vis.lexers.float, pos, 64) end, "Number text object") | |||||
| 2017-02-23 | vis: remove number increment/decrement functionality | Marc André Tanner | 2 | -61/+0 | |
| By now we should have the necessary Lua API to implement this as an extension. | |||||
| 2017-02-23 | vis-lua: use shorter type names | Marc André Tanner | 2 | -11/+11 | |
| 2017-02-23 | vis-lua: cleanup type checks by using #define's | Marc André Tanner | 1 | -68/+80 | |
| 2017-02-23 | vis-lua: make vis:count assignable | Marc André Tanner | 1 | -0/+10 | |
| 2017-02-22 | vis-lua: expose current count specifier as vis:count | Marc André Tanner | 1 | -0/+13 | |
| 2017-02-22 | lua: add file:match_at method to match LPeg pattern around a position | Marc André Tanner | 1 | -0/+31 | |
| 2017-02-22 | vis-lua: expose type meta tables through vis.types | Marc André Tanner | 1 | -5/+25 | |
| This should allow the Lua code to add new methods even if it has no existing object references. | |||||
| 2017-02-22 | lua: expose vis:module_exist method, load lexer and lpeg module during startup | Marc André Tanner | 3 | -25/+31 | |
| 2017-02-22 | vis-lua: check for nil return value of text object callback | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-22 | test: update | Marc André Tanner | 1 | -5/+5 | |
| 2017-02-22 | vis: simplify `r` implementation and fix cursor positioning | Marc André Tanner | 2 | -11/+3 | |
| 2017-02-22 | vis: add exact count motion flag | Marc André Tanner | 3 | -3/+14 | |
| Some motions should fail (i.e. keep the initial position) when the specified count can not be satisfied exactly. Examples include t, f, T, and F. Fix #497 | |||||
