aboutsummaryrefslogtreecommitdiffstats
path: root/commands.js
diff options
context:
space:
mode:
authorJez Ng2012-01-15 15:40:49 +0800
committerJez Ng2012-01-15 17:39:29 +0800
commit3ff0518014a51f237d1d98ebc15c0ce4be24c2b5 (patch)
treea97defdd480879cf297d22d8a23435172ca16596 /commands.js
parent4ca60a80f0e3d5c4818d05417c869bde6340d792 (diff)
downloadvimium-3ff0518014a51f237d1d98ebc15c0ce4be24c2b5.tar.bz2
Add URL pasting functions. Closes #353.
Diffstat (limited to 'commands.js')
-rw-r--r--commands.js10
1 files changed, 8 insertions, 2 deletions
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",