aboutsummaryrefslogtreecommitdiffstats
path: root/notifier/subject_wassr.js
diff options
context:
space:
mode:
authorJagua2011-06-22 19:50:49 +0900
committerJagua2011-06-22 19:50:49 +0900
commit// ==VimperatorPlugin== // @name yet mappings // @description display the keys that are not mapped yet. // @description-ja まだマップされていないキーを表示する // @license Creative Commons 2.1 (Attribution + Share Alike) // @version 1.0 // @author anekos (anekos@snca.net) // @maxVersion 2.0 // @minVersion 2.0pre // ==/VimperatorPlugin== // // Usage: // :yetmap[pings] [<KEYS>] // :ymap [<KEYS>] // // Links: // http://d.hatena.ne.jp/nokturnalmortum/20081109#1226223461 // (function () { const other = '! @ # $ % ^ & * ( ) _ + | ~ { } : " < > ? - = \\ ` [ ] ; \' , . /'.
compatible with Fx5.0 (rename class identifier)
Diffstat (limited to 'notifier/subject_wassr.js')
0 files changed, 0 insertions, 0 deletions
s2">">")); const alpha = 'a b c d e f g h i j k l m n o p q r s t u v w x y z'.split(/\s/); const keys = alpha.concat(alpha.map(String.toUpperCase)).concat(other).concat(special); function exists (modes, key) (mappings.getCandidates(modes, key).length || mappings.get(modes, key)); function getYetMappings (pre) keys.filter(function (key) (!exists([modes.NORMAL], pre + key))); commands.addUserCommand( ['yetmap[pings]', 'ymap'], 'display the keys that are not mapped yet.', function (arg) { liberator.echo(getYetMappings(arg.string || '').join(' ')); }, { argCount: '*' }, true ); liberator.plugins.yet_mappgins = { get: getYetMappings }; })();