aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-01-24 07:16:37 +0000
committerStephen Blott2015-01-24 14:28:11 +0000
commitd9462e5d1e3ebb8f2fedc400b05c4c545fada142 (patch)
tree702840b0033d2fe2c30e50e61ac9910080337c9c /background_scripts
parent0f96b6bf07c02704272a90a017ee14661dca8ce0 (diff)
downloadvimium-d9462e5d1e3ebb8f2fedc400b05c4c545fada142.tar.bz2
Visual/edit modes: more edit-mode commands.
- "dw", "3dw", "d3w" - "dc", "3dc", "d3c" - "D" - "C" Also refactor enterInsertMode. Also major refactor of interface between edit and visual modes.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index c1c8dfc8..37d219df 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -168,9 +168,10 @@ upgradeNotificationClosed = (request) ->
sendRequestToAllTabs({ name: "hideUpgradeNotification" })
#
-# Copies some data (request.data) to the clipboard.
+# Copies or pastes some data (request.data) to/from the clipboard.
#
copyToClipboard = (request) -> Clipboard.copy(request.data)
+pasteFromClipboard = (request) -> Clipboard.paste()
#
# Selects the tab with the ID specified in request.id
@@ -647,6 +648,7 @@ sendRequestHandlers =
upgradeNotificationClosed: upgradeNotificationClosed
updateScrollPosition: handleUpdateScrollPosition
copyToClipboard: copyToClipboard
+ pasteFromClipboard: pasteFromClipboard
isEnabledForUrl: isEnabledForUrl
saveHelpDialogSettings: saveHelpDialogSettings
selectSpecificTab: selectSpecificTab