mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 17:24:13 +01:00
Return all abbreviations, by default, from the abbreviation completer.
Fixes :command -complete=abbreviation
This commit is contained in:
@@ -216,8 +216,9 @@ const Abbreviations = Module("abbreviations", {
|
|||||||
}, {
|
}, {
|
||||||
completion: function () {
|
completion: function () {
|
||||||
completion.abbreviation = function abbreviation(context, modes) {
|
completion.abbreviation = function abbreviation(context, modes) {
|
||||||
let abbrevs = abbreviations.merged.filter(function (abbr) abbr.inModes(modes));
|
let fn = modes ? function (abbr) abbr.inModes(modes) : util.identity;
|
||||||
context.completions = [[abbr.lhs, abbr.rhs] for ([, abbr] in Iterator(abbrevs))];
|
context.keys = { text: "lhs" , description: "rhs" };
|
||||||
|
context.completions = abbreviations.merged.filter(fn);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user