diff options
author | pekepeke | 2008-11-26 15:02:44 +0000 |
---|---|---|
committer | pekepeke | 2008-11-26 15:02:44 +0000 |
commit | d6b875f602e3646109f54fd3461b516b1585afea (patch) | |
tree | a0d55c0ec45e88dc72088bbc9e7f899a9d247479 /encodingSwitcherCommand.js | |
parent | 1fe141a3390e785d5de12537aad18d5df81a342a (diff) | |
download | vimperator-plugins-d6b875f602e3646109f54fd3461b516b1585afea.tar.bz2 |
2.0pre対応
refcontrol, autoproxychanger 追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24976 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'encodingSwitcherCommand.js')
-rw-r--r-- | encodingSwitcherCommand.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/encodingSwitcherCommand.js b/encodingSwitcherCommand.js index bf3cba6..8071313 100644 --- a/encodingSwitcherCommand.js +++ b/encodingSwitcherCommand.js @@ -96,8 +96,10 @@ liberator.modules.commands.addUserCommand(['fileencoding','fenc'],'set the chara } }, { - completer: function(filter) - [0,completion( encodings, filter)] + completer: function(context, arg, special){
+ let filter = context.filter;
+ context.completions = completion( encodings, filter); + } } ); liberator.modules.commands.addUserCommand(['autodetector','audet'],'set auto detect character encoding', function(args) { @@ -126,8 +128,10 @@ liberator.modules.commands.addUserCommand(['autodetector','audet'],'set auto det } }, { - completer: function(filter) - [0,completion( detectors, filter)] + completer: function(context, arg, special){
+ let filter = context.filter;
+ context.completions = completion( detectors, filter); + } } ); function listCharset(arg, current, list){ @@ -153,8 +157,10 @@ liberator.modules.commands.addUserCommand(['listencoding','lsenc'],'list all enc var arg = args.string == undefined ? args: args.string; listCharset(arg, liberator.modules.options.fileencoding, encodings); },{ - completer: function(filter) - [0,completion(encodings, filter)] + completer: function(context, arg, special){
+ let filter = context.filter;
+ context.completions = completion( encodings, filter); + } } ); liberator.modules.commands.addUserCommand(['listdetector','lsdet'],'list all auto detectors', @@ -162,8 +168,10 @@ liberator.modules.commands.addUserCommand(['listdetector','lsdet'],'list all aut var arg = args.string == undefined ? args: args.string; listCharset(arg, liberator.modules.options.autodetector, detectors); },{ - completer: function(filter) - [0,completion(detectors, filter)] + completer: function(context, arg, special){
+ let filter = context.filter;
+ context.completions = completion( detectors, filter); + } } ); |