From 3ff0518014a51f237d1d98ebc15c0ce4be24c2b5 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sun, 15 Jan 2012 15:40:49 +0800 Subject: Add URL pasting functions. Closes #353. --- commands.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'commands.js') diff --git a/commands.js b/commands.js index d214d2bf..c961a901 100644 --- a/commands.js +++ b/commands.js @@ -127,6 +127,9 @@ function clearKeyMappingsAndSetDefaults() { "yy": "copyCurrentUrl", "yf": "linkHints.activateModeToCopyLinkUrl", + "p": "openCopiedUrlInCurrentTab", + "P": "openCopiedUrlInNewTab", + "K": "nextTab", "J": "previousTab", "gt": "nextTab", @@ -168,9 +171,11 @@ var commandDescriptions = { reload: ["Reload the page"], toggleViewSource: ["View page source"], - copyCurrentUrl: ["Copy the current URL to the clipboard"], + copyCurrentUrl: ["Copy the current URL to the clipboard"], 'linkHints.activateModeToCopyLinkUrl': ["Copy a link URL to the clipboard"], + openCopiedUrlInCurrentTab: ["Open the clipboard's URL in the current tab", { background: true }], + openCopiedUrlInNewTab: ["Open the clipboard's URL in a new tab", { background: true }], enterInsertMode: ["Enter insert mode"], @@ -220,7 +225,8 @@ var commandGroups = { ["scrollDown", "scrollUp", "scrollLeft", "scrollRight", "scrollToTop", "scrollToBottom", "scrollToLeft", "scrollToRight", "scrollPageDown", "scrollPageUp", "scrollFullPageUp", "scrollFullPageDown", - "reload", "toggleViewSource", "copyCurrentUrl", "linkHints.activateModeToCopyLinkUrl", "goUp", + "reload", "toggleViewSource", "copyCurrentUrl", "linkHints.activateModeToCopyLinkUrl", + "openCopiedUrlInCurrentTab", "openCopiedUrlInNewTab", "goUp", "enterInsertMode", "focusInput", "linkHints.activateMode", "linkHints.activateModeToOpenInNewTab", "linkHints.activateModeWithQueue", "activateBookmarkFindMode", "activateBookmarkFindModeToOpenInNewTab", -- cgit v1.2.3