| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2015-12-26 | vis: refactor Lua integration | Marc André Tanner | 1 | -103/+15 | |
| Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1. | |||||
| 2015-12-20 | vis: fix forceful redraw <C-l> | Marc André Tanner | 1 | -0/+4 | |
| 2015-11-28 | vis: do not switch to normal mode when leaving ? and / prompt | Marc André Tanner | 1 | -1/+1 | |
| 2015-11-28 | view: remove ViewEvent infrastructure | Marc André Tanner | 1 | -14/+2 | |
| The only used event handler was used to update the '< and '> marks which is now taken care of by the leave handler of the visual modes. | |||||
| 2015-11-28 | vis: improve switching to prompt mode | Marc André Tanner | 1 | -5/+5 | |
| A call to vis_prompt_show will now automatically switch to prompt mode. Within the prompt leave/enter handlers the focused window (vis->win) will still point to the document window not the one referring to the prompt. The selection marks '< and '> are now only updated when a visual mode is left. | |||||
| 2015-11-28 | vis: add cmd argument to VIS_OP_FILTER | Marc André Tanner | 1 | -5/+19 | |
| 2015-11-27 | vis: implement filter operator ! | Marc André Tanner | 1 | -5/+17 | |
| It currently works by switching to visual mode and then opening the command prompt with a default range which refers to the currently active selection. | |||||
| 2015-11-27 | vis: change semantics of operator implementation return value | Marc André Tanner | 1 | -3/+3 | |
| The return value of operator implementations denoting the new cursor position is interpreted in the following way: - EPOS dispose the cursor - [0, text_size] place the cursor accordingly - otherwise i.e. > text_size keep the cursor position unchanged The newly introduced last case is useful for operators which are called from visual mode, but do not want to change the current selection. | |||||
| 2015-11-23 | vis: improve replacement of combining characters | Marc André Tanner | 1 | -6/+1 | |
| 2015-11-08 | Update year numbers in Copyright clause | Marc André Tanner | 1 | -1/+1 | |
| 2015-11-08 | Remove trailing white space from source files | Marc André Tanner | 1 | -4/+4 | |
| 2015-11-08 | ui: load syntax theme based on the number of supported colors | Marc André Tanner | 1 | -1/+0 | |
| The theme to use can be overriden via the $VIS_THEME environment variable. $ VIS_THEME=solarized vis | |||||
| 2015-11-08 | vis: introduce vis namespace for lua objects | Marc André Tanner | 1 | -2/+6 | |
| For now the vis table has only one member "lexers". | |||||
| 2015-11-08 | vis: try to support all lua versions >= 5.1 | Marc André Tanner | 1 | -1/+1 | |
| Make lpeg module table explicitly global, which should work with the different module loading semantics. | |||||
| 2015-11-08 | vis: factor out syntax highlighting code | Marc André Tanner | 1 | -0/+3 | |
| The view_draw function renders the text into the cells array and resyncs the cursor position. The syntax highlighting is applied in view_update, which also instructs the ui to update. | |||||
| 2015-11-08 | vis: implement :set theme | Marc André Tanner | 1 | -3/+25 | |
| 2015-11-08 | vis: experimental support for lua/lpeg based syntax highlighting | Marc André Tanner | 1 | -3/+81 | |
| The lua based lexers are searched in the following order: $VIS_PATH/lexers $HOME/.vis/lexers /usr/share/vis/lexers followed by the standard lua package.path | |||||
| 2015-11-08 | vis: remove regex based syntax highlighting | Marc André Tanner | 1 | -49/+1 | |
| 2015-11-08 | vis: more comments and cleanups | Marc André Tanner | 1 | -19/+13 | |
| 2015-11-07 | vis: prefix enum VisMotion values with VIS_ | Marc André Tanner | 1 | -30/+30 | |
| 2015-11-07 | vis: tweak enum VisTextObject names | Marc André Tanner | 1 | -26/+26 | |
| 2015-11-07 | vis: prefix enum VisOperator values with VIS_ | Marc André Tanner | 1 | -19/+19 | |
| 2015-11-07 | vis: API documentation and cleanup | Marc André Tanner | 1 | -11/+8 | |
| 2015-11-07 | vis: introduce vis_cancel API | Marc André Tanner | 1 | -4/+8 | |
| 2015-11-07 | vis: move modes into separate file | Marc André Tanner | 1 | -282/+1 | |
| 2015-11-07 | vis: move operators to separate file | Marc André Tanner | 1 | -238/+13 | |
| 2015-11-07 | vis: move motions to separate file | Marc André Tanner | 1 | -262/+0 | |
| 2015-11-07 | vis: move :-commands into their own file | Marc André Tanner | 1 | -1206/+4 | |
| 2015-11-06 | vis: fix cursor position after charwise paste | Marc André Tanner | 1 | -0/+7 | |
| p and P should leave the cursor on the last inserted character to ease repetition. Closes #92 | |||||
| 2015-11-06 | vis: do something reasonable upon visual repeat | Marc André Tanner | 1 | -0/+4 | |
| We do currently deliberately not support visual repeat. However when there exist multiple cursors, repeating an operator, which acted on a previous visual selection, should not collapse the cursors. | |||||
| 2015-11-06 | vis: fix operators to correctly handle multiple selections | Marc André Tanner | 1 | -4/+8 | |
| Operators must not switch modes, they might be called multiple times (once for every cursor/selection). Closes #91. The concrete problem was that op_change for the first cursor switched to insert mode, which cleared all the remaining selections. Hence the other cursors had nothing to operate on. Reverts parts of d395687b. | |||||
| 2015-11-03 | vis: add vis_keys_inject to place keys into the input queue | Marc André Tanner | 1 | -6/+24 | |
| This function can only be used from within key handlers. The position argument has to point to a valid key from within the same input buffer after which the new input will be inserted. | |||||
| 2015-11-02 | vis: free input_queue at exit | Virgile Andreani | 1 | -0/+1 | |
| 2015-11-02 | vis: let keys entered via API affect macro recording | Marc André Tanner | 1 | -4/+5 | |
| 2015-11-02 | vis: make append (a and A) commands repeatable | Marc André Tanner | 1 | -2/+10 | |
| 2015-11-02 | vis: improve count handling for dot command | Marc André Tanner | 1 | -2/+12 | |
| 2015-11-02 | vis: improve dot command | Marc André Tanner | 1 | -53/+88 | |
| Use an implicit macro to make changes in insert/replace mode repeatable. | |||||
| 2015-10-27 | vis: make Vis an opaque type, hide implementaton details | Marc André Tanner | 1 | -11/+108 | |
| 2015-10-27 | vis: introduce vis_macro_recording API | Marc André Tanner | 1 | -0/+4 | |
| 2015-10-27 | vis: introduce vis_prompt_enter API | Marc André Tanner | 1 | -4/+19 | |
| This is a really bad API/abtraction but at least it allows us to hide some implementation details. | |||||
| 2015-10-27 | vis: clean up tab/newline insertion code | Marc André Tanner | 1 | -2/+42 | |
| 2015-10-27 | vis: introduce pseudo operators for put | Marc André Tanner | 1 | -9/+21 | |
| In principle put is not really an operator, however it still should be repeatable and respect count. | |||||
| 2015-10-26 | vis: introduce explicit operators for cursor creation | Marc André Tanner | 1 | -2/+7 | |
| 2015-10-26 | vis: introduce explicit operators for case changes | Marc André Tanner | 1 | -6/+19 | |
| 2015-10-26 | vis: move key handling functions to main.c | Marc André Tanner | 1 | -747/+348 | |
| 2015-10-26 | vis: merge editor.c into vis.c | Marc André Tanner | 1 | -101/+589 | |
| 2015-10-25 | vis: introduce vis_key_next API | Marc André Tanner | 1 | -5/+4 | |
| 2015-10-25 | vis: introduce vis_register_{get,set} API | Marc André Tanner | 1 | -6/+21 | |
| 2015-10-25 | vis: introduce vis_count_{get,set} API | Marc André Tanner | 1 | -9/+19 | |
| 2015-10-25 | vis: introduce vis_motion_type API | Marc André Tanner | 1 | -1/+5 | |
