From d9462e5d1e3ebb8f2fedc400b05c4c545fada142 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 24 Jan 2015 07:16:37 +0000 Subject: 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. --- background_scripts/main.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'background_scripts') 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 -- cgit v1.2.3