mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:28:00 +01:00
document :hardcopy >{filename}...since it was committed
This commit is contained in:
committed by
Kris Maglione
parent
abf6bafaf7
commit
6e9262ef64
@@ -468,14 +468,18 @@ function Buffer() //{{{
|
|||||||
"Print current document",
|
"Print current document",
|
||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
|
let arg = args[0];
|
||||||
|
|
||||||
|
// FIXME: arg handling is a bit of a mess, check for filename
|
||||||
|
if (arg && (liberator.has("Win32") || arg[0] != ">"))
|
||||||
|
return liberator.echoerr("E488: Trailing characters");
|
||||||
|
|
||||||
options.temporaryContext(function () {
|
options.temporaryContext(function () {
|
||||||
if (args[0])
|
if (arg)
|
||||||
{
|
{
|
||||||
if (args[0][0] != ">")
|
|
||||||
return liberator.echoerr("E488: Trailing characters");
|
|
||||||
options.setPref("print.print_to_file", "true");
|
options.setPref("print.print_to_file", "true");
|
||||||
options.setPref("print.print_to_filename", io.getFile(args[0].substr(1)).path);
|
options.setPref("print.print_to_filename", io.getFile(arg.substr(1)).path);
|
||||||
liberator.echomsg("Printing to file: " + args[0].substr(1));
|
liberator.echomsg("Printing to file: " + arg.substr(1));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -488,8 +492,8 @@ function Buffer() //{{{
|
|||||||
getBrowser().contentWindow.print();
|
getBrowser().contentWindow.print();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (args[0])
|
if (arg)
|
||||||
liberator.echomsg("Printed: " + args[0].substr(1));
|
liberator.echomsg("Printed: " + arg.substr(1));
|
||||||
else
|
else
|
||||||
liberator.echomsg("Print job sent.");
|
liberator.echomsg("Print job sent.");
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
VimperatorLeave respectively
|
VimperatorLeave respectively
|
||||||
* IMPORTANT: 'verbose' is now by default at 1, set to 0 to not show any status messages
|
* IMPORTANT: 'verbose' is now by default at 1, set to 0 to not show any status messages
|
||||||
|
|
||||||
|
* :hardcopy now supports output redirection to a file on Unix and MacUnix
|
||||||
* add ";f" extended hint mode to focus a frame
|
* add ";f" extended hint mode to focus a frame
|
||||||
* add "r", "l", and "b" to 'guioptions' to toggle the scrollbars.
|
* add "r", "l", and "b" to 'guioptions' to toggle the scrollbars.
|
||||||
* remove spaces and newlines when open urls starting with http:// or similar
|
* remove spaces and newlines when open urls starting with http:// or similar
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ number of copies, orientation, etc. When used with [!], the dialog is skipped
|
|||||||
and the default printer used.
|
and the default printer used.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
||:ha[rdcopy][!] >{filename}|| +
|
||||||
|
________________________________________________________________________________
|
||||||
|
As above, but write the output to {filename}.
|
||||||
|
________________________________________________________________________________
|
||||||
|
|
||||||
section:Firefox{nbsp}printing{nbsp}dialogs[firefox-print-dialogs]
|
section:Firefox{nbsp}printing{nbsp}dialogs[firefox-print-dialogs]
|
||||||
|
|
||||||
The "Print Preview" and "Page Setup" dialogs can be opened via the :dialog command
|
The "Print Preview" and "Page Setup" dialogs can be opened via the :dialog command
|
||||||
|
|||||||
Reference in New Issue
Block a user