From b466d26ee559bf97e1cbf0cfd77ec0aa1d40a104 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Sat, 16 Feb 2013 22:39:39 +0000 Subject: Added `gU` command to go to root of page including current port and protocol --- background_scripts/commands.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'background_scripts/commands.coffee') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index d7c332f9..66e8ff4e 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -88,7 +88,7 @@ Commands = "scrollToTop", "scrollToBottom", "scrollToLeft", "scrollToRight", "scrollPageDown", "scrollPageUp", "scrollFullPageUp", "scrollFullPageDown", "reload", "toggleViewSource", "copyCurrentUrl", "LinkHints.activateModeToCopyLinkUrl", - "openCopiedUrlInCurrentTab", "openCopiedUrlInNewTab", "goUp", + "openCopiedUrlInCurrentTab", "openCopiedUrlInNewTab", "goUp", "goRoot", "enterInsertMode", "focusInput", "LinkHints.activateMode", "LinkHints.activateModeToOpenInNewTab", "LinkHints.activateModeWithQueue", "Vomnibar.activate", "Vomnibar.activateInNewTab", "Vomnibar.activateTabSelection", @@ -107,7 +107,7 @@ Commands = # from Vimium will uncover these gems. advancedCommands: [ "scrollToLeft", "scrollToRight", - "goUp", "focusInput", "LinkHints.activateModeWithQueue", + "goUp", "goRoot", "focusInput", "LinkHints.activateModeWithQueue", "goPrevious", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"] defaultKeyMappings = @@ -133,6 +133,7 @@ defaultKeyMappings = "H": "goBack" "L": "goForward" "gu": "goUp" + "gU": "goRoot" "gi": "focusInput" @@ -225,6 +226,7 @@ commandDescriptions = # Navigating the URL hierarchy goUp: ["Go up the URL hierarchy", { passCountToFunction: true }] + goRoot: ["Go to root of current URL hierarchy", { passCountToFunction: true }] # Manipulating tabs nextTab: ["Go one tab right", { background: true }] -- cgit v1.2.3