aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_visual.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-22 05:08:39 +0000
committerStephen Blott2015-01-22 05:08:39 +0000
commitbf5797207fffdb47714d91282d5ce314314e65f6 (patch)
tree6860a56230b4508302adc4b69b00467f63df57a2 /content_scripts/mode_visual.coffee
parent7044838e934e5f717335bdd73c91823807463071 (diff)
downloadvimium-bf5797207fffdb47714d91282d5ce314314e65f6.tar.bz2
Visual/edit modes: consolidate both modes in a single file.
These modes turn out to be almost identical. So they're better off in a single file.
Diffstat (limited to 'content_scripts/mode_visual.coffee')
-rw-r--r--content_scripts/mode_visual.coffee26
1 files changed, 0 insertions, 26 deletions
diff --git a/content_scripts/mode_visual.coffee b/content_scripts/mode_visual.coffee
deleted file mode 100644
index 64463a67..00000000
--- a/content_scripts/mode_visual.coffee
+++ /dev/null
@@ -1,26 +0,0 @@
-
-class VisualMode extends Movement
- constructor: (options = {}) ->
- defaults =
- name: "visual"
- badge: "V"
- exitOnEscape: true
- exitOnBlur: options.targetElement
- alterMethod: "extend"
-
- keypress: (event) =>
- @alwaysContinueBubbling =>
- unless event.metaKey or event.ctrlKey or event.altKey
- switch String.fromCharCode event.charCode
- when "y"
- chrome.runtime.sendMessage
- handler: "copyToClipboard"
- data: window.getSelection().toString()
- @exit()
- # TODO(smblott). Suppress next keyup.
-
- super extend defaults, options
- @debug = true
-
-root = exports ? window
-root.VisualMode = VisualMode