1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 21:34:12 +01:00

new g0/g$ mappings

This commit is contained in:
Martin Stubenschrott
2007-12-03 06:03:41 +00:00
parent aaf457c3aa
commit eb535ff8bf
3 changed files with 10 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
2007 (most recent donators first): 2007 (most recent donators first):
* Cillian de Roiste (2x)
* David Thompson * David Thompson
* Christian Walther * Christian Walther
* Ivo-Jose Jimenez-Ramos * Ivo-Jose Jimenez-Ramos
@@ -19,7 +20,6 @@
* Stefan Krauth * Stefan Krauth
* Robert Heckel * Robert Heckel
* Miron Tewfik * Miron Tewfik
* Cillian de Roiste
* Sjoerd Siebinga * Sjoerd Siebinga
* Ben Klemens * Ben Klemens
* Andrew Pantyukhin * Andrew Pantyukhin

1
NEWS
View File

@@ -9,6 +9,7 @@
removed the following hint options: 'hintchars' 'maxhints' removed the following hint options: 'hintchars' 'maxhints'
added the following hint options: 'hinttimeout' added the following hint options: 'hinttimeout'
* IMPORTANT: changed 'I' key to Ctrl-Q to also work in textboxes * IMPORTANT: changed 'I' key to Ctrl-Q to also work in textboxes
* new g0 and g$ mappings to go to the first/last tab
* new 'history' option for specifying the number of Ex commands and * new 'history' option for specifying the number of Ex commands and
search patterns to store in the commandline history search patterns to store in the commandline history
* new ctrl-x and ctrl-a mappings to increment the last number in the URL * new ctrl-x and ctrl-a mappings to increment the last number in the URL

View File

@@ -554,6 +554,14 @@ vimperator.Mappings = function () //{{{
help: "Works like <code class=\"mapping\">P</code>, but inverts the <code class=\"option\">'activate'</code> option." help: "Works like <code class=\"mapping\">P</code>, but inverts the <code class=\"option\">'activate'</code> option."
} }
)); ));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["g0", "g^"],
function (count) { vimperator.tabs.select(0); },
{ shortHelp: "Go to the first tab" }
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["g$"],
function (count) { vimperator.tabs.select("$"); },
{ shortHelp: "Go to the last tab" }
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["gt", "<C-n>", "<C-Tab>", "<C-PageDown>"], addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["gt", "<C-n>", "<C-Tab>", "<C-PageDown>"],
function (count) { vimperator.tabs.select(count > 0 ? count - 1: "+1", count > 0 ? false : true); }, function (count) { vimperator.tabs.select(count > 0 ? count - 1: "+1", count > 0 ? false : true); },
{ {