mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 09:07:58 +01:00
Restore :helpall.
This commit is contained in:
@@ -864,10 +864,10 @@ const liberator = (function () //{{{
|
|||||||
completion.help = function help(context, unchunked) {
|
completion.help = function help(context, unchunked) {
|
||||||
context.title = ["Help"];
|
context.title = ["Help"];
|
||||||
context.anchored = false;
|
context.anchored = false;
|
||||||
context.key = unchunked;
|
context.key = !!unchunked; // XXX: better as a precondition
|
||||||
context.completions = services.get("liberator:").HELP_TAGS;
|
context.completions = services.get("liberator:").HELP_TAGS;
|
||||||
if (unchunked)
|
if (unchunked)
|
||||||
context.keys = { text: "text", description: function () "all" };
|
context.keys = { text: 0, description: function () "all" };
|
||||||
};
|
};
|
||||||
|
|
||||||
completion.menuItem = function menuItem(context) {
|
completion.menuItem = function menuItem(context) {
|
||||||
@@ -1394,7 +1394,7 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
if (topic in services.get("liberator:").FILE_MAP)
|
if (topic in services.get("liberator:").FILE_MAP)
|
||||||
return topic;
|
return topic;
|
||||||
unchunked = !!unchunked;
|
|
||||||
let items = completion._runCompleter("help", topic, null, unchunked).items;
|
let items = completion._runCompleter("help", topic, null, unchunked).items;
|
||||||
let partialMatch = null;
|
let partialMatch = null;
|
||||||
|
|
||||||
@@ -1505,9 +1505,9 @@ const liberator = (function () //{{{
|
|||||||
*/
|
*/
|
||||||
help: function (topic, unchunked)
|
help: function (topic, unchunked)
|
||||||
{
|
{
|
||||||
if (!topic && !unchunked)
|
if (!topic)
|
||||||
{
|
{
|
||||||
let helpFile = options["helpfile"];
|
let helpFile = unchunked ? "all" : options["helpfile"];
|
||||||
if (helpFile in services.get("liberator:").FILE_MAP)
|
if (helpFile in services.get("liberator:").FILE_MAP)
|
||||||
liberator.open("liberator://help/" + helpFile, { from: "help" });
|
liberator.open("liberator://help/" + helpFile, { from: "help" });
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user