diff --git a/content/editor.js b/content/editor.js index 6bca188c..025f8937 100644 --- a/content/editor.js +++ b/content/editor.js @@ -929,29 +929,29 @@ liberator.Editor = function () //{{{ else // list all (for that filter {i,c,!}) { var searchFilter = (filter == "!") ? "!ci" : filter + "!"; // ! -> list all, on c or i ! matches too) + XML.prettyPrinting = false; - let list = <>; + let list = ; for (let tmplhs in abbrev) { abbrev[tmplhs].forEach(function (abbr) { if (searchFilter.indexOf(abbr[0]) > -1) { - list += - - - - ; + list.* += + + + + ; } }); } - if (!list.length()) + if (!list.*.length()) { liberator.echoerr("No abbreviations found"); return; } - list =
{abbr[0]}{tmplhs}{abbr[1]}
{abbr[0]}{tmplhs}{abbr[1]}
{list}
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE); } }, diff --git a/content/options.js b/content/options.js index dbd1f3b2..4da2eb27 100644 --- a/content/options.js +++ b/content/options.js @@ -269,16 +269,19 @@ liberator.Options = function () //{{{ if (!args) { XML.prettyPrinting = false; - var str = <>; + var str = for (let [i, value] in Iterator(liberator.globalVariables)) { let prefix = typeof value == "number" ? "#" : typeof value == "function" ? "*" : " "; - str += ; + str.* += + + + ; } - if (str.length()) - liberator.echo(
{i}{prefix}{value}
{i}{prefix}{value}
{str}
, liberator.commandline.FORCE_MULTILINE); + if (str.*.length()) + liberator.echo(str, liberator.commandline.FORCE_MULTILINE); else liberator.echo("No variables found"); return; diff --git a/content/tabs.js b/content/tabs.js index d4e45032..19f85b88 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -711,7 +711,7 @@ liberator.Tabs = function () //{{{ { // TODO: move this to liberator.tabs.get() - let items = <>; + let items = for (let [i, item] in Iterator(liberator.completion.buffer("")[1])) { if (i == liberator.tabs.index()) @@ -722,7 +722,7 @@ liberator.Tabs = function () //{{{ indicator = " "; let [number, title] = item[0].split(/:\s+/, 2); - items += + items.* +=
{number} {indicator}