| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2020-09-20 | Merge branch 'csi_event' of https://github.com/ezdiy/vis into master | Marc André Tanner | 1 | -0/+21 | |
| 2020-09-17 | vis-lua: provide vis.mark property | Marc André Tanner | 1 | -0/+17 | |
| 2020-09-17 | vis-lua: use utility function to translate mark names | Marc André Tanner | 1 | -9/+7 | |
| 2020-09-17 | vis-lua: provide vis.register property | Marc André Tanner | 1 | -0/+17 | |
| 2020-09-17 | vis-lua: use utility function to translate register names | Marc André Tanner | 1 | -9/+7 | |
| 2020-09-17 | vis-lua: fix mark_names Lua doc indentation | Marc André Tanner | 1 | -3/+3 | |
| 2020-09-17 | Pass up terminal CSI as events to Lua. | Ez Diy | 1 | -0/+21 | |
| 2020-08-14 | vis-lua: fix redraw method name in API documentation | Marc André Tanner | 1 | -1/+1 | |
| 2020-08-14 | vis-lua: make file.modified assignable | Marc André Tanner | 1 | -1/+22 | |
| We fake a modification by doing an insertion followed by a deletion which does not actually change the buffer content. Close #855 | |||||
| 2020-02-24 | vis-lua: implement vis:redraw() | Marc André Tanner | 1 | -0/+13 | |
| 2020-02-24 | lua: fix documentation typos and errors | Georgi Kirilov | 1 | -2/+2 | |
| 2020-02-10 | vis-lua: avoid string memory leaks in error case | Marc André Tanner | 1 | -6/+3 | |
| The function lua_pushstring can throw an error, meaning it will setjmp(3) out thereby leaking the allocated memory. By using lua_newuserdata we let Lua free the memory during a GC run. | |||||
| 2020-02-07 | lua: add <plugin>/init.lua to package.path | Georgi Kirilov | 1 | -2/+4 | |
| 2020-02-04 | vis: make core code more robust | Marc André Tanner | 1 | -1/+1 | |
| The core vis code was originally written under the assumption that there always exists at least one window. However, when being called from the Lua configuration file during start up this is not yet the case. In general, Lua code should always be placed within appropriate event handlers e.g. vis.events.INIT for global configuration. Invoking API functions depending on an active window from top level statements is not supported. Where before the editor simply crashed, these changes turn such code sections into NOPs. Fix #561 | |||||
| 2018-05-17 | vis: simplify C status bar drawing code | Marc André Tanner | 1 | -11/+7 | |
| 2018-05-17 | vis: display count/input queue content in status bar | Marc André Tanner | 1 | -0/+7 | |
| Fix #695 | |||||
| 2018-05-17 | vis-lua: expose current input_queue content | Marc André Tanner | 1 | -0/+9 | |
| 2018-05-16 | vis: remove v and V in operator pending mode | Marc André Tanner | 1 | -1/+1 | |
| 2018-01-01 | vis-open: fix for absolute and non-existent paths | Kelsey Judson | 1 | -0/+9 | |
| When the shell cannot find any matching files, the glob is not expanded, and vis-open will return the absolute path of the current working directory (because dirname outputs '.'), followed by the filename, followed by a literal '*'. This commit checks that the final path actually exists, and if not, exits with status 1. It also uses text_object_longword for the range to match, so that absolute paths are accepted, and replaced properly (else it only works back to the first '/'). | |||||
| 2017-11-21 | vis-lua: implement window:close | Marc André Tanner | 1 | -0/+28 | |
| 2017-11-21 | vis-lua: do not enumerate internal windows | Marc André Tanner | 1 | -5/+8 | |
| This for example skips the command prompt window. | |||||
| 2017-07-23 | vis-lua: move marks array to window object | Marc André Tanner | 1 | -27/+29 | |
| Some marks (only '^ right now) are window specific while others have file file scope. This distinction is currently hidden in the API. Before this commit file.marks[...] would always operate on the currently active window. | |||||
| 2017-07-17 | vis: specify window in mark related API | Marc André Tanner | 1 | -2/+2 | |
| This should also fix coverity issue 157024. | |||||
| 2017-07-14 | vis-lua: make selection first class primitives in Lua API | Marc André Tanner | 1 | -83/+111 | |
| 2017-07-11 | vis: cleanup register related API | Marc André Tanner | 1 | -15/+30 | |
| Also expose all register slots through the Lua API. | |||||
| 2017-07-11 | vis-lua: represent marks as array of ranges | Marc André Tanner | 1 | -21/+34 | |
| 2017-07-08 | vis: cleanup marks implementation | Marc André Tanner | 1 | -2/+2 | |
| We now use ' to refer to marks. Mark a is set using 'am and restored using 'aM while this is slightly harder to type than ma and 'a it is consistent with register usage for yank/put and allows a default mark to be used which is handy for quick selection manipulation primitives. | |||||
| 2017-07-07 | vis: use marks instead of registers to store selections | Marc André Tanner | 1 | -6/+14 | |
| The key binding remain the same, but the selections are now stored on a per-buffer basis. | |||||
| 2017-06-27 | Merge branch 'theme-tweaks-2' of https://github.com/p-e-w/vis | Marc André Tanner | 1 | -13/+14 | |
| Conflicts: view.c | |||||
| 2017-06-15 | view: do not automatically anchor selections when setting range | Marc André Tanner | 1 | -2/+4 | |
| 2017-06-15 | vis: rename uses of Cursor to Selection | Marc André Tanner | 1 | -36/+36 | |
| 2017-06-15 | view: rename view_cursors | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_number | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_count | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_next | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_selection_clear | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_get | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_primary_{get,set} | Marc André Tanner | 1 | -4/+4 | |
| 2017-06-10 | More theme improvements | Philipp Emanuel Weidmann | 1 | -13/+14 | |
| 2017-05-27 | vis-lua: avoid nil values in table returned by vis:mapping | Marc André Tanner | 1 | -1/+2 | |
| Also fix compilation with ./configure --disable-help. | |||||
| 2017-05-27 | vis-lua: expose functions to unmap key bindings | Marc André Tanner | 1 | -0/+40 | |
| 2017-05-27 | vis-lua: expose currently active key bindings through API | Marc André Tanner | 1 | -0/+38 | |
| Close #563 | |||||
| 2017-05-03 | text: remove text_insert_newline function | Marc André Tanner | 1 | -2/+2 | |
| This is no longer needed because we always insert \n never \r\n. | |||||
| 2017-04-20 | vis: start cleaning up register related code | Marc André Tanner | 1 | -3/+1 | |
| Now that register.h is no longer used by view.h we can move the struct and function declarations to vis-core.h. | |||||
| 2017-04-09 | vis: remove handling of \r\n line endings | Marc André Tanner | 1 | -22/+0 | |
| Use something like dos2unix(1) and unix2dos(1), if you need to edit such files. | |||||
| 2017-03-25 | Merge branch 'master' of https://github.com/joshaw/vis | Marc André Tanner | 1 | -1/+10 | |
| 2017-03-24 | vis: properly redraw status bar of windows displaying internal files | Marc André Tanner | 1 | -3/+3 | |
| 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. | |||||
| 2017-03-24 | vis-lua: register a panic handler | Marc André Tanner | 1 | -1/+31 | |
| The intention here is to catch any errors in unprotected mode, close the lua state and jump back to the mainloop to give the user the opportunity to take care of unsaved changes. We abuse the infrastructure Lua provides for custom memory allocators to associate our vis instance pointer with the lua state. In the panic handler we can then use lua_getallocf to get our context back. The actual memory allocater is equivalent to the one used by default and just forwards everything to the libc. | |||||
| 2017-03-24 | vis-lua: use better name for error handling function | Marc André Tanner | 1 | -2/+2 | |
| 2017-03-24 | vis-lua: adjust return value validation of called lua functions | Marc André Tanner | 1 | -3/+7 | |
| While the invoked Lua functions are executed in protected mode, the validation of the return values currently happens in unprotected mode. Thus an invaid return value triggers a lua error and because we currently do not have a global panic handler registered this will terminate the editor process. This commit changes the return value validation to silently fall back to default values instead of raising errors. If we want to provide user friendly stack traces showing the origin of the offending value we would have to move the validation into the Lua code. | |||||
