mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +01:00
if no argument is given to :winopen open about:blank in the new window
This commit is contained in:
@@ -780,10 +780,10 @@ function Commands() //{{{
|
|||||||
"and the first word is the name of a search engine (<code class=\"command\">:open wikipedia linus torvalds</code> " +
|
"and the first word is the name of a search engine (<code class=\"command\">:open wikipedia linus torvalds</code> " +
|
||||||
"will open the wikipedia entry for linus torvalds). The short name of a search engine is automatically guessed from its name. " +
|
"will open the wikipedia entry for linus torvalds). The short name of a search engine is automatically guessed from its name. " +
|
||||||
"If you want to set a custom name, open the $FIREFOX_PROFILE/searchplugins/*.xml file of the search engine, and add/change " +
|
"If you want to set a custom name, open the $FIREFOX_PROFILE/searchplugins/*.xml file of the search engine, and add/change " +
|
||||||
"<Alias>myalias</Alias> </li>" +
|
"<Alias>myalias</Alias></li>" +
|
||||||
" <li>Opened with the default search engine or keyword (specified with the <code class=\"option\">'defsearch'</code> option) " +
|
"<li>Opened with the default search engine or keyword (specified with the <code class=\"option\">'defsearch'</code> option) " +
|
||||||
"if the first word is no search engine (<code class=\"command\">:open linus torvalds</code> will open a Google search for linux torvalds).</li>" +
|
"if the first word is no search engine (<code class=\"command\">:open linus torvalds</code> will open a Google search for linux torvalds).</li>" +
|
||||||
" <li>Passed directly to Firefox in all other cases (<code class=\"command\">:open www.osnews.com, www.slashdot.org</code> will " +
|
"<li>Passed directly to Firefox in all other cases (<code class=\"command\">:open www.osnews.com, www.slashdot.org</code> will " +
|
||||||
"open OSNews in the current, and Slashdot in a new background tab).</li>" +
|
"open OSNews in the current, and Slashdot in a new background tab).</li>" +
|
||||||
"</ol>" +
|
"</ol>" +
|
||||||
"You WILL be able to use <code class=\"command\">:open [-T \"linux\"] torvalds<Tab></code> to complete bookmarks " +
|
"You WILL be able to use <code class=\"command\">:open [-T \"linux\"] torvalds<Tab></code> to complete bookmarks " +
|
||||||
@@ -1222,7 +1222,13 @@ function Commands() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"],
|
addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"],
|
||||||
function(args) { vimperator.open(args, vimperator.NEW_WINDOW); },
|
function(args)
|
||||||
|
{
|
||||||
|
if (args)
|
||||||
|
vimperator.open(args, vimperator.NEW_WINDOW);
|
||||||
|
else
|
||||||
|
vimperator.open("about:blank", vimperator.NEW_WINDOW);
|
||||||
|
},
|
||||||
{
|
{
|
||||||
usage: ["wino[pen] [url] [, url]"],
|
usage: ["wino[pen] [url] [, url]"],
|
||||||
short_help: "Open one or more URLs in a new window",
|
short_help: "Open one or more URLs in a new window",
|
||||||
|
|||||||
Reference in New Issue
Block a user