| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2020-08-01 | doc: fix a couple of API doc warnings | Marc André Tanner | 1 | -8/+8 | |
| In restructured text double backquotes are used for inline literals. | |||||
| 2020-01-30 | view: Fix a @param name in a comment | TwoFinger | 1 | -1/+1 | |
| 2017-07-14 | vis-lua: make selection first class primitives in Lua API | Marc André Tanner | 1 | -1/+1 | |
| 2017-07-05 | vis: make sure all selections have same anchored state | Marc André Tanner | 1 | -2/+3 | |
| With the current model the differences between normal and visual mode is that in the latter selections are anchored (meaning one endpoint remains fixed), while in normal mode both endpoints can in principle be updated simultaneously (currently they are always colapsed to a singleton selection, giving the impression of cursors). | |||||
| 2017-07-04 | vis: implement `gv` by means of new "^ register | Marc André Tanner | 1 | -10/+0 | |
| This window local register holds the last active selections. | |||||
| 2017-06-27 | Merge branch 'show-eof' of https://github.com/p-e-w/vis | Marc André Tanner | 1 | -0/+2 | |
| Conflicts: view.c view.h | |||||
| 2017-06-15 | view: add functions to save/restore arbitrary ranges | Marc André Tanner | 1 | -0/+3 | |
| 2017-06-15 | view: add functions to get/set all selections | Marc André Tanner | 1 | -0/+13 | |
| 2017-06-15 | view: disallow setting of invalid selections | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: introduce view_selections_normalize | Marc André Tanner | 1 | -0/+2 | |
| Dispose all invalid and merge all overlapping selections. | |||||
| 2017-06-15 | vis: rename uses of Cursor to Selection | Marc André Tanner | 1 | -37/+36 | |
| 2017-06-15 | view: rename view_cursors_column | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_selection_anchored | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_column{,count,next} | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_number | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_count | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_next | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_prev | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: view_cursors_selection_restore | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_save | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_start | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_swap | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_clear | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_selections_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 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_clear | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursor_disposed | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_dispose | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_new | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: remove view_cursors_multiple | Marc André Tanner | 1 | -2/+0 | |
| 2017-06-15 | view: clean up and add documentation | Marc André Tanner | 1 | -118/+292 | |
| 2017-06-15 | vis: promote selections to first class primitives | Marc André Tanner | 1 | -16/+6 | |
| This unifies cursors and selections. The cursor are now represendted as singleton selections. | |||||
| 2017-06-04 | Add option to hide EOF marker | Philipp Emanuel Weidmann | 1 | -0/+2 | |
| 2017-04-20 | vis: start cleaning up register related code | Marc André Tanner | 1 | -1/+0 | |
| 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-19 | vis: restructure register handling | Marc André Tanner | 1 | -2/+0 | |
| Decouple register content from cursors. Previously each cursor had exactly one corresponding register. Now each register can save a list of values whose lifetime is not tied to the cursor. If multiple cursors exist and a put with a register holding only a single value is performed, then this value is inserted at every cursor location. If there are fewer values available than cursors, then only the matching ones will be used. If a register holding multiple values is inserted in a single cursor context, only the first value will be used. Another option would be to join all existing values. The details of this behavior might be changed in the future. <C-r> in insert mode has not yet been adapted and register handling in general needs to be cleaned up further. Fix #527 | |||||
| 2017-03-22 | view: rename view_dirty to view_invalidate | Marc André Tanner | 1 | -1/+1 | |
| 2017-03-14 | Restructure display code | Marc André Tanner | 1 | -17/+12 | |
| Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces. | |||||
| 2017-01-31 | view: add back link from selection to corresponding cursor | Marc André Tanner | 1 | -1/+1 | |
| Can be NULL if no cursor is associated with the given selection (this is currently never the case). Avoids a loop through all cursors when clearing selections. | |||||
| 2017-01-13 | view: add infrastructure for delayed cursor destruction | Marc André Tanner | 1 | -0/+7 | |
| At least one cursor (referred to as primary or main cursor) has always to exist. In the sam command language implementation we might want to dispose a cursor even if it is the primary one before later commands will create different ones (e.g. `:x/pattern/ { i/>>>/ a/<<</ }`). This commit introduces view_cursors_dispose_force. If called on the last remaining cursor, its selection is cleared and it is marked for destruction as soon as a new cursor is created. view_cursor_disposed returns the cursor marked for deletion (if any) and clears the descruction flag. | |||||
| 2016-10-03 | vis: improve cursor positioning after scrolling | Marc André Tanner | 1 | -0/+4 | |
| Make cursor placement after scrolling (half) pages up/down less arbitrary. Close #390, fix #391 | |||||
| 2016-05-22 | vis: refactor status line handling | Marc André Tanner | 1 | -1/+1 | |
| Make window status bar content configurable via Lua. | |||||
| 2016-05-22 | vis: consider :set horizon setting when syntax highlighting | Marc André Tanner | 1 | -2/+0 | |
| 2016-05-22 | vis: move syntax highlighting to pure Lua code | Marc André Tanner | 1 | -12/+10 | |
| 2016-05-22 | view: add functions to style a file range | Marc André Tanner | 1 | -0/+3 | |
| 2016-05-22 | ui: s/UiStyles/UiStyle/g | Marc André Tanner | 1 | -1/+1 | |
| 2016-05-04 | vis: clean up cursor column display | Marc André Tanner | 1 | -7/+2 | |
| 2016-04-27 | view: change view_cursors_place to take 1 based column number | Marc André Tanner | 1 | -0/+1 | |
| This should fix inconsistency in the Lua API. | |||||
| 2016-04-19 | vis: add :set horizon option | David B. Lamkins | 1 | -0/+2 | |
| Can be used to specify the number of bytes before the visible area to consider for syntax highlighting. Defaults to 32K for now, whereas before it was 16K. | |||||
