aboutsummaryrefslogtreecommitdiffstats
path: root/umihara.js
diff options
context:
space:
mode:
Diffstat (limited to 'umihara.js')
-rw-r--r--umihara.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/umihara.js b/umihara.js
index 637fb26..49a871b 100644
--- a/umihara.js
+++ b/umihara.js
@@ -93,11 +93,17 @@
let extra = {
argCount: '+',
bang: true,
- completer: function (arg) {
+ completer: function (context, arg, bang) {
+ let last = context.contextList.slice(-1)[0];
+ context.title = ['Country Code'];
+ context.advance(last.offset - last.caret);
+ context.items = completion.filter(cl, last.filter);
+ /*
if (!(arg = commands.parseArgs(arg, extra.options, extra.argCount)))
return [0, []];
let m = arg.string.match(/\s(\w+)$/);
return [(m ? m.index : arg.string.length) + 1, m ? completion.filter(cl, m[1]) : cl];
+ */
}
};
@@ -110,7 +116,8 @@
value = eval(value);
kawase(value, clipboard, from, to);
},
- extra
+ extra,
+ true
);
})();