1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 06:53:33 +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", "Open one or more URLs in the current tab",
function (args) function (args)
{ {
if (args.string) args = args.string;
liberator.open(args.string);
else if (args.bang) if (args)
BrowserReloadSkipCache(); liberator.open(args);
else else
BrowserReload(); liberator.open("about:blank");
}, },
{ {
bang: true,
completer: function (context) completion.url(context), completer: function (context) completion.url(context),
literal: 0 literal: 0
}); });

View File

@@ -14,6 +14,8 @@
* IMPORTANT: shifted key notation now matches Vim's behaviour. E.g. <C-a> * 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>. 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, * add extension related commands - :extadd, :extdelete, :extdisable,
:extenable, :extensions, :extoptions :extenable, :extensions, :extoptions
* add '-javascript' flag to :autocommand * add '-javascript' flag to :autocommand

View File

@@ -28,7 +28,7 @@ ________________________________________________________________________________
section:Opening{nbsp}web{nbsp}pages[opening] section:Opening{nbsp}web{nbsp}pages[opening]
|o| |:o| |:open| |o| |:o| |:open|
||:o[pen][!] [a][arg1][a], [a][arg2][a], ...|| + ||:o[pen] [a][arg1][a], [a][arg2][a], ...|| +
||o|| ||o||
________________________________________________________________________________ ________________________________________________________________________________
Open one or more URLs in the current tab. 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. available for tab completion, not for the actual command.
The items which are completed on [m]<Tab>[m] are specified in the 'complete' The items which are completed on [m]<Tab>[m] are specified in the 'complete'
option. 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] section:Opening{nbsp}web{nbsp}pages[opening]
|o| |:o| |:open| |o| |:o| |:open|
||:o[pen][!] [a][arg1][a], [a][arg2][a], ...|| + ||:o[pen] [a][arg1][a], [a][arg2][a], ...|| +
||o|| ||o||
________________________________________________________________________________ ________________________________________________________________________________
Open one or more URLs in the current tab. 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. available for tab completion, not for the actual command.
The items which are completed on [m]<Tab>[m] are specified in the 'complete' The items which are completed on [m]<Tab>[m] are specified in the 'complete'
option. option.
Without argument, reloads the current page.
Without argument but with [!], reloads the current page skipping the cache.
________________________________________________________________________________ ________________________________________________________________________________