| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2017-07-14 | vis: use distinct mark to save last selections | Marc André Tanner | 1 | -2/+2 | |
| This partially reverts f9e2b884c15919757651db8b10c033a344a19e75 further jumps after leaving visual mode should not break `gv`. | |||||
| 2017-07-14 | vis-lua: make selection first class primitives in Lua API | Marc André Tanner | 1 | -2/+2 | |
| 2017-07-10 | vis: let '^ mark point to top of jump list | Marc André Tanner | 1 | -2/+2 | |
| 2017-07-04 | vis: implement `gv` by means of new "^ register | Marc André Tanner | 1 | -2/+4 | |
| This window local register holds the last active selections. | |||||
| 2017-06-15 | vis: rename uses of Cursor to Selection | Marc André Tanner | 1 | -7/+7 | |
| 2017-06-15 | view: rename view_cursors | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_next | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_selection_start | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_selections_clear | Marc André Tanner | 1 | -2/+2 | |
| 2017-05-27 | vis-lua: expose currently active key bindings through API | Marc André Tanner | 1 | -1/+1 | |
| Close #563 | |||||
| 2017-04-04 | vis: do not remove indentation of non-empty lines | Marc André Tanner | 1 | -1/+2 | |
| Fix #532 | |||||
| 2017-03-16 | vis: remove unnecessary status bar redraw | Marc André Tanner | 1 | -2/+0 | |
| There is no longer a need to explicitly redraw the window status bar upon a mode change, it will happen anyway during the next UI update. | |||||
| 2017-02-24 | vis: make help texts optional to produce a smaller binary | Marc André Tanner | 1 | -1/+3 | |
| $ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system. | |||||
| 2017-02-17 | vis: cleanup error paths in key action handling code | Marc André Tanner | 1 | -6/+10 | |
| 2017-01-28 | vis: deindent blank autoindented lines when leaving insert mode | Marc André Tanner | 1 | -0/+16 | |
| Does not work for the current implementation of `O` because the "lookbehind" i.e. second to last processed key is `<Up>` and not `<Enter>`. Fix #383 | |||||
| 2017-01-26 | vis: do not repeat insertion while showing prompt | Marc André Tanner | 1 | -1/+2 | |
| Previously something like `5ifoo<Escape>:<Escape>` would insert foo into the command prompt. | |||||
| 2017-01-20 | vis: slightly cleanup repeat code, always set dot register | Marc André Tanner | 1 | -4/+1 | |
| 2017-01-19 | vis: simplify count handling for insertion | Marc André Tanner | 1 | -15/+11 | |
| 2017-01-18 | vis: fix count handling for append | Marc André Tanner | 1 | -0/+7 | |
| Fix #371 | |||||
| 2017-01-18 | vis: support count for insertion and replacement | Marc André Tanner | 1 | -1/+10 | |
| Fix #372 | |||||
| 2017-01-18 | vis: unify insert/replace mode enter handler | Marc André Tanner | 1 | -18/+4 | |
| 2017-01-18 | vis: unify insert/replace mode leave handler | Marc André Tanner | 1 | -18/+9 | |
| 2017-01-18 | vis: do not take undo snaphots while replaying a macro | Marc André Tanner | 1 | -3/+3 | |
| The vis_keys_feed function is currently unaffected by this change. It still creates individual undo points. While this is probably undesirable from an API point of view, it keeps the lua based tests that use undo points working. | |||||
| 2017-01-16 | vis: change key input handling model | Marc André Tanner | 1 | -2/+2 | |
| Previously if you had a mapping for both `a` and `ab` the latter would in effect be unreachable because the greedy search would always match and then execute the former. With the new behavior we keep reading keys until we have a non ambigious sequence. That is after pressing `a` nothing will happen, if the next key is a `b` we will execute the `ab` mapping otherwise we will perform `a` and whatever the action is for the next key. Close #386 | |||||
| 2017-01-15 | vis: do not crash when given insufficient arguments to :map | Marc André Tanner | 1 | -1/+1 | |
| Fix #459 | |||||
| 2017-01-14 | vis-lua: allow mode changes by setting vis.mode | Marc André Tanner | 1 | -1/+2 | |
| 2017-01-06 | vis: simplify mode lookup for :map and :unmap | Marc André Tanner | 1 | -1/+11 | |
| 2016-12-29 | vis: cleanup key action lifetime management | Marc André Tanner | 1 | -7/+38 | |
| 2016-12-29 | vis: unmap all conflicting bindings of a forced map command | Marc André Tanner | 1 | -17/+2 | |
| 2016-12-27 | vis: properly free dynamic key bindings | Marc André Tanner | 1 | -0/+29 | |
| The handling of :unmap needs to be revisited at some point. | |||||
| 2016-11-09 | vis: perform undo snapshotting more rarerly | Marc André Tanner | 1 | -6/+8 | |
| Do not take snapshots after every operation in insert/replace mode. As an example up until now we would take a snapshot after every <Backspace>/<Delete> press, hence when undoing changes each character would be restored individually. The same applies for <C-w> and related actions. From now on we only snaphost when: - transitioning from insert/replace mode to normal mode (but not when switching to operator pending mode) - an operation takes place from normal mode - an idle time expires in normal/replace mode | |||||
| 2016-11-09 | vis: unify VIS_OP_{INSERT,REPLACE} implementation | Marc André Tanner | 1 | -2/+4 | |
| They both perform a motion before changing mode. | |||||
| 2016-08-24 | vis: add vis_mode_get function | Marc André Tanner | 1 | -0/+4 | |
| 2016-08-24 | vis: improve dot (repeat) command implmentation | Marc André Tanner | 1 | -4/+12 | |
| Do not override implicit operator macro in command mode. Fix #334 | |||||
| 2016-05-22 | vis: refactor status line handling | Marc André Tanner | 1 | -6/+6 | |
| Make window status bar content configurable via Lua. | |||||
| 2016-05-13 | vis: clean up key mapping implementation | Marc André Tanner | 1 | -20/+34 | |
| 2016-04-28 | vis: reject key mappings for which a prefix is already mapped | Marc André Tanner | 1 | -1/+1 | |
| `<` needs a special treatment because it is used to denote symbolic keys without it the shift left operator would not work. | |||||
| 2016-04-06 | vis: fix vi filter operators ! and = | Marc André Tanner | 1 | -1/+2 | |
| 2016-02-20 | vis: reject obviously recursive key bindings | Marc André Tanner | 1 | -0/+3 | |
| This does only detect the simplest cases. | |||||
| 2016-02-12 | vis: respect window local mappings for child modes | Marc André Tanner | 1 | -0/+6 | |
| Since commit 197ab824206335eab7ceed774ddeccac18fafc09 visual line and replace modes are child modes, hence we also have to consider the window local key bindings of their respective parent modes. For example in replace mode the key lookup chain is now as follows: window local replace mode -> global replace mode -> window local insert mode -> global insert mode This fixes <Enter> behaviour in prompt for replace and visual line modes. | |||||
| 2016-02-10 | vis: simplify modes implementation | Marc André Tanner | 1 | -0/+2 | |
| Make replace mode a child of insert mode and visual line a child of visual mode. This means any key binding for the former is automatically available in the latter. Also keys can not be unmapped solely from the child modes. | |||||
| 2016-01-27 | vis: remove unused struct Mode member 'is_user' | Marc André Tanner | 1 | -7/+1 | |
| 2016-01-18 | vis: do not move cursor when entering visual line mode | Marc André Tanner | 1 | -1/+1 | |
| Switching to character wise visual mode is still different than in vim because we do not distinguish between line wise and charwise selections. Close #149 | |||||
| 2016-01-14 | vis: more cleanups | Marc André Tanner | 1 | -1/+5 | |
| 2016-01-14 | vis: s/ops/vis_operators/g | Marc André Tanner | 1 | -2/+2 | |
| 2016-01-13 | Implement command/search prompt history as a regular file | Marc André Tanner | 1 | -53/+8 | |
| 2016-01-13 | vis: add infrastructure to support per window key bindings | Marc André Tanner | 1 | -6/+27 | |
| 2016-01-13 | vis: cleanup key binding definitions | Marc André Tanner | 1 | -62/+6 | |
| This removes the tree based mode structures and instead merges all keybindings in flat modes which uses some more memory but will allow (per mode) run-time configurable key bindings. Make sure to update/remove config.h. | |||||
| 2015-11-28 | vis: add namespace prefix for MARK_SELECTION_{START,END} | Marc André Tanner | 1 | -4/+4 | |
| 2015-11-28 | vis: improve switching to prompt mode | Marc André Tanner | 1 | -6/+20 | |
| 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. | |||||
