1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 23:24:12 +01:00

Make :open <noarg> behaviour match that of :tabopen/:winopen.

This commit is contained in:
Doug Kearns
2009-07-11 00:03:28 +10:00
parent c062cf48df
commit 1f7b6f4b05
4 changed files with 9 additions and 12 deletions

View File

@@ -255,15 +255,14 @@ function Browser() //{{{
"Open one or more URLs in the current tab",
function (args)
{
if (args.string)
liberator.open(args.string);
else if (args.bang)
BrowserReloadSkipCache();
args = args.string;
if (args)
liberator.open(args);
else
BrowserReload();
liberator.open("about:blank");
},
{
bang: true,
completer: function (context) completion.url(context),
literal: 0
});

View File

@@ -14,6 +14,8 @@
* IMPORTANT: shifted key notation now matches Vim's behaviour. E.g. <C-a>
and <C-A> are equivalent, to map the uppercase character use <C-S-A>.
* make :open behavior match that of :tabopen and :winopen when no argument
is specified
* add extension related commands - :extadd, :extdelete, :extdisable,
:extenable, :extensions, :extoptions
* add '-javascript' flag to :autocommand

View File

@@ -28,7 +28,7 @@ ________________________________________________________________________________
section:Opening{nbsp}web{nbsp}pages[opening]
|o| |:o| |:open|
||:o[pen][!] [a][arg1][a], [a][arg2][a], ...|| +
||:o[pen] [a][arg1][a], [a][arg2][a], ...|| +
||o||
________________________________________________________________________________
Open one or more URLs in the current tab.
@@ -59,8 +59,6 @@ tag "linux" and which contain "torvalds". Note that -tags support is only
available for tab completion, not for the actual command.
The items which are completed on [m]<Tab>[m] are specified in the 'complete'
option.
Without argument, reloads the current page.
Without argument but with [!], reloads the current page skipping the cache.
________________________________________________________________________________

View File

@@ -30,7 +30,7 @@ ________________________________________________________________________________
section:Opening{nbsp}web{nbsp}pages[opening]
|o| |:o| |:open|
||:o[pen][!] [a][arg1][a], [a][arg2][a], ...|| +
||:o[pen] [a][arg1][a], [a][arg2][a], ...|| +
||o||
________________________________________________________________________________
Open one or more URLs in the current tab.
@@ -61,8 +61,6 @@ tag "linux" and which contain "torvalds". Note that -tags support is only
available for tab completion, not for the actual command.
The items which are completed on [m]<Tab>[m] are specified in the 'complete'
option.
Without argument, reloads the current page.
Without argument but with [!], reloads the current page skipping the cache.
________________________________________________________________________________