mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 20:15:46 +01:00
add a special version to :hardcopy to skip the print dialog and move print
related help to a dedicated page
This commit is contained in:
@@ -446,7 +446,17 @@ liberator.Buffer = function () //{{{
|
||||
|
||||
liberator.commands.add(["ha[rdcopy]"],
|
||||
"Print current document",
|
||||
function () { getBrowser().contentWindow.print(); });
|
||||
function (args, special)
|
||||
{
|
||||
// TODO: Hide the progress bar ("print.show_print_progress") when
|
||||
// the special version is called?
|
||||
var value = liberator.options.getPref("print.always_print_silent");
|
||||
liberator.options.setPref("print.always_print_silent", special);
|
||||
|
||||
getBrowser().contentWindow.print();
|
||||
|
||||
liberator.options.setPref("print.always_print_silent", value);
|
||||
});
|
||||
|
||||
liberator.commands.add(["pa[geinfo]"],
|
||||
"Show various page information",
|
||||
|
||||
@@ -382,7 +382,7 @@ const liberator = (function () //{{{
|
||||
// TODO: move files to liberator.config
|
||||
var files = ["intro.html", "tutorial.html", "starting.html", "browsing.html", "buffer.html",
|
||||
"options.html", "tabs.html", "hints.html", "map.html", "eval.html", "marks.html",
|
||||
"repeat.html", "autocommands.html", "developer.html", "various.html"];
|
||||
"repeat.html", "autocommands.html", "print.html", "developer.html", "various.html"];
|
||||
|
||||
for (var file in files)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user