diff --git a/NEWS b/NEWS index a73c7f3e..89f3237f 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,7 @@ 2007-xx-xx: * version 0.6 * THIS VERSION ONLY WORKS WITH FIREFOX 3.0 - * added a new :sidebar command + * added new :sidebar and :sbclose commands * added 'more' and standard more-prompt key mappings to control behaviour of the message list pager * added 'hlsearchstyle' option to allow for user CSS styling of the diff --git a/TODO b/TODO index 71bc9078..4e300f40 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,6 @@ BUGS: FEATURES: 9 :command for new commands -9 :sidebar {addons/bookmarks/history/downloads/...} command with tab completion 9 make hints smarter, not only with characters from from hintchars, but use "NE" or "NP" for 'new posts' e.g. (might be too slow) 8 add an interface for navigating document relationships 8 middleclick in content == p, and if command line is open, paste there the clipboard buffer diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 2754437f..2602852e 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -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)