diff options
| author | Stephen Blott | 2016-04-13 06:50:43 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-13 06:50:43 +0100 |
| commit | 72ff4204655b8e87f7bdfbe8c9974376fbbc15a6 (patch) | |
| tree | 0cf92a9f1484666294b7a329919e598efac6e5cc /content_scripts/mode_visual.coffee | |
| parent | f144c7c9d3f141636ce6a3856db3abf08a4fc063 (diff) | |
| download | vimium-72ff4204655b8e87f7bdfbe8c9974376fbbc15a6.tar.bz2 | |
Add <c-y> and <c-e> for visual mode.
Fixes #2092.
Diffstat (limited to 'content_scripts/mode_visual.coffee')
| -rw-r--r-- | content_scripts/mode_visual.coffee | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/content_scripts/mode_visual.coffee b/content_scripts/mode_visual.coffee index 8c1fb5a4..97ad5ca6 100644 --- a/content_scripts/mode_visual.coffee +++ b/content_scripts/mode_visual.coffee @@ -223,8 +223,12 @@ class VisualMode extends KeyHandlerMode keyMapping[keys[0]] ?= {} extend keyMapping[keys[0]], "#{keys[1]}": command: movement - # Aliases. - extend keyMapping, "B": keyMapping.b, "W": keyMapping.w + # Aliases and complex bindings. + extend keyMapping, + "B": keyMapping.b + "W": keyMapping.w + "<c-e>": command: (count) -> Scroller.scrollBy "y", count * Settings.get("scrollStepSize"), 1, false + "<c-y>": command: (count) -> Scroller.scrollBy "y", -count * Settings.get("scrollStepSize"), 1, false super extend options, name: options.name ? "visual" |
