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

merge :sbclose and viewSidebarMenu menuitem additions

This commit is contained in:
Doug Kearns
2007-09-18 08:49:49 +00:00
parent b261cb851a
commit d8ad3a2d94
4 changed files with 54 additions and 5 deletions

View File

@@ -1076,7 +1076,27 @@ function Commands() //{{{
completer: function(filter) { return vimperator.completion.get_options_completions(filter); }
}
));
addDefaultCommand(new Command(["sideb[ar]"],
// TODO: sclose instead?
addDefaultCommand(new Command(["sbcl[ose]"],
function(args)
{
if (args)
{
vimperator.echoerr("E488: Trailing characters");
return;
}
document.getElementById("sidebar-box").hidden = true;;
document.getElementById("sidebar-splitter").hidden = true;;
},
{
short_help: "Close the sidebar",
help: "TODO"
}
));
// TODO: sopen instead? Separate :sidebar from :sbopen and make them behave
// more like :cw, :cope etc
addDefaultCommand(new Command(["sideb[ar]", "sb[ar]", "sbope[n]"],
function(args)
{
if (!args)