aboutsummaryrefslogtreecommitdiffstats
path: root/commands.js
diff options
context:
space:
mode:
authorint32010-04-17 10:29:02 +0800
committerint32010-06-12 23:34:54 +0800
commitc3649ada9fb51f09cf4d229a2589955ad96d7413 (patch)
tree09000bcc3c95f27bc76bb1523daa35c044e6f22c /commands.js
parent626d7be7d10884dd401996ef7b88049b420f42f9 (diff)
downloadvimium-c3649ada9fb51f09cf4d229a2589955ad96d7413.tar.bz2
Add 'goUp' function. However, it does not support command repetition.
Diffstat (limited to 'commands.js')
-rw-r--r--commands.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands.js b/commands.js
index de6ce701..2a180966 100644
--- a/commands.js
+++ b/commands.js
@@ -95,6 +95,7 @@ function clearKeyMappingsAndSetDefaults() {
mapKeyToCommand('H', 'goBack');
mapKeyToCommand('L', 'goForward');
+ mapKeyToCommand('gu', 'goUp');
mapKeyToCommand('zi', 'zoomIn');
mapKeyToCommand('zo', 'zoomOut');
@@ -150,6 +151,9 @@ addCommand('performBackwardsFind', 'Cycle backward to the previous find match');
addCommand('goBack', 'Go back in history');
addCommand('goForward', 'Go forward in history');
+// Navigating the URL hierarchy
+addCommand('goUp', 'Go up the URL hierarchy');
+
// Manipulating tabs:
addCommand('nextTab', 'Go one tab right', true);
addCommand('previousTab', 'Go one tab left', true);