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:
@@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user