mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +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:
1
NEWS
1
NEWS
@@ -10,6 +10,7 @@
|
|||||||
generous donation which made this behavior possible)
|
generous donation which made this behavior possible)
|
||||||
* IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just
|
* IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just
|
||||||
too unpredictable
|
too unpredictable
|
||||||
|
* add a special version to :hardcopy to skip the Print dialog
|
||||||
* add :bl[ast], :bf[irst], :br[ewind] to go to first/last tab
|
* add :bl[ast], :bf[irst], :br[ewind] to go to first/last tab
|
||||||
* add :bn[ext], :bp[revious], :bN[ext] to switch to next/previous tab
|
* add :bn[ext], :bp[revious], :bN[ext] to switch to next/previous tab
|
||||||
* add :pagestyle command to allow for switching between alternate style sheets
|
* add :pagestyle command to allow for switching between alternate style sheets
|
||||||
|
|||||||
@@ -446,7 +446,17 @@ liberator.Buffer = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["ha[rdcopy]"],
|
liberator.commands.add(["ha[rdcopy]"],
|
||||||
"Print current document",
|
"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]"],
|
liberator.commands.add(["pa[geinfo]"],
|
||||||
"Show various page information",
|
"Show various page information",
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ const liberator = (function () //{{{
|
|||||||
// TODO: move files to liberator.config
|
// TODO: move files to liberator.config
|
||||||
var files = ["intro.html", "tutorial.html", "starting.html", "browsing.html", "buffer.html",
|
var files = ["intro.html", "tutorial.html", "starting.html", "browsing.html", "buffer.html",
|
||||||
"options.html", "tabs.html", "hints.html", "map.html", "eval.html", "marks.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)
|
for (var file in files)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ section:Help{nbsp}topics[overview]
|
|||||||
recurring workflows.
|
recurring workflows.
|
||||||
- help:Autocommands[autocommands.html]: Automatically execute code on certain
|
- help:Autocommands[autocommands.html]: Automatically execute code on certain
|
||||||
events.
|
events.
|
||||||
|
- help:Print[print.html]: Printing commands.
|
||||||
- help:Developer{nbsp}information[developer.html]: How to write docs or
|
- help:Developer{nbsp}information[developer.html]: How to write docs or
|
||||||
plugins.
|
plugins.
|
||||||
- help:Various[various.html]: Other help which didn't fit into any other category.
|
- help:Various[various.html]: Other help which didn't fit into any other category.
|
||||||
|
|||||||
25
locale/en-US/print.txt
Normal file
25
locale/en-US/print.txt
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
HEADER
|
||||||
|
|
||||||
|
|printing| +
|
||||||
|
|
||||||
|
|:ha| |:hardcopy| +
|
||||||
|
||:ha[rdcopy][!]||
|
||||||
|
________________________________________________________________________________
|
||||||
|
Print current document. Open a GUI dialog where you can select the printer,
|
||||||
|
number of copies, orientation, etc. When used with [a]![a], the dialog is
|
||||||
|
skipped and the default printer used.
|
||||||
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
section:Firefox{nbsp}printing{nbsp}dialogs[firefox-print-dialogs]
|
||||||
|
|
||||||
|
The "Print Preview" and "Page Setup" dialogs can be opened via the :dialog command
|
||||||
|
|
||||||
|
:dialog printpreview
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
:dialog printsetup
|
||||||
|
|
||||||
|
respectively.
|
||||||
|
|
||||||
|
// vim: set syntax=asciidoc:
|
||||||
@@ -238,14 +238,6 @@ in a new tab. Here, downloads can be paused, canceled and resumed.
|
|||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|:ha| |:hardcopy| +
|
|
||||||
||:ha[rdcopy]||
|
|
||||||
________________________________________________________________________________
|
|
||||||
Print current document. Open a GUI dialog where you can select the printer,
|
|
||||||
number of copies, orientation, etc.
|
|
||||||
________________________________________________________________________________
|
|
||||||
|
|
||||||
|
|
||||||
|:noh| |:nohlsearch| +
|
|:noh| |:nohlsearch| +
|
||||||
||:noh[lsearch]||
|
||:noh[lsearch]||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user