mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 18:37:58 +01:00
add :sbclose to close the sidebar and :sbar, :sbopen aliases for :sidebar
This commit is contained in:
2
NEWS
2
NEWS
@@ -2,7 +2,7 @@
|
|||||||
2007-xx-xx:
|
2007-xx-xx:
|
||||||
* version 0.6
|
* version 0.6
|
||||||
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
* 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
|
* added 'more' and standard more-prompt key mappings to control
|
||||||
behaviour of the message list pager
|
behaviour of the message list pager
|
||||||
* added 'hlsearchstyle' option to allow for user CSS styling of the
|
* added 'hlsearchstyle' option to allow for user CSS styling of the
|
||||||
|
|||||||
1
TODO
1
TODO
@@ -18,7 +18,6 @@ BUGS:
|
|||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
9 :command for new commands
|
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)
|
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 add an interface for navigating document relationships
|
||||||
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
||||||
|
|||||||
@@ -1076,7 +1076,27 @@ function Commands() //{{{
|
|||||||
completer: function(filter) { return vimperator.completion.get_options_completions(filter); }
|
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)
|
function(args)
|
||||||
{
|
{
|
||||||
if (!args)
|
if (!args)
|
||||||
|
|||||||
Reference in New Issue
Block a user