1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 12:17:58 +01:00

add an initial implementation of :sidebar

This commit is contained in:
Doug Kearns
2007-09-17 13:26:33 +00:00
parent 29eb144617
commit b261cb851a
3 changed files with 38 additions and 0 deletions

View File

@@ -1076,6 +1076,32 @@ function Commands() //{{{
completer: function(filter) { return vimperator.completion.get_options_completions(filter); }
}
));
addDefaultCommand(new Command(["sideb[ar]"],
function(args)
{
if (!args)
{
vimperator.echoerr("E471: Argument required");
return;
}
var menu = document.getElementById("viewSidebarMenu")
for (var i = 0; i < menu.childNodes.length; i++)
{
if (menu.childNodes[i].label == args)
{
eval(menu.childNodes[i].getAttribute('oncommand'))
break;
}
}
},
{
short_help: "Open the sidebar",
help: "TODO",
completer: function(filter) { return vimperator.completion.get_sidebar_completions(filter); }
}
));
addDefaultCommand(new Command(["so[urce]"],
function(args)
{