aboutsummaryrefslogtreecommitdiffstats
path: root/every.js
AgeCommit message (Collapse)Author
2009-12-15初期化処理を変更anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36144 d0d07461-0603-4401-acd4-de1884942a52
2009-11-28-from -step -init オプションを追加anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36026 d0d07461-0603-4401-acd4-de1884942a52
2009-11-25Fix a typoanekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35989 d0d07461-0603-4401-acd4-de1884942a52
2009-11-22sec ↵anekos
などの単位で時間を指定できるようにした。(オプション追加) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35967 d0d07461-0603-4401-acd4-de1884942a52
2009-08-27Follow HEADanekos
for http://vimperator.org/trac/gitweb/?p=liberator.git;a=commit;h=f20c2b315bb05c2e88d0c672f07dc229cc9267d2 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35099 d0d07461-0603-4401-acd4-de1884942a52
2009-02-01updateURL 追加anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29388 d0d07461-0603-4401-acd4-de1884942a52
2009-02-01PLUGIN_INFO 対応&修正anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29387 d0d07461-0603-4401-acd4-de1884942a52
2008-11-27Follow CVS Head.anekos
etc git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25172 d0d07461-0603-4401-acd4-de1884942a52
2008-11-23follow the new completer.anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24676 d0d07461-0603-4401-acd4-de1884942a52
2008-11-01 * oops. [22557]drry
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22558 d0d07461-0603-4401-acd4-de1884942a52
2008-11-01Initial release: ↵anekos
指定の間隔で指定のコマンドを実行するためのプラグイン。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22528 d0d07461-0603-4401-acd4-de1884942a52
PLUGIN_INFO {{{ let PLUGIN_INFO = <VimperatorPlugin> <name>Yet Mappings</name> <description>Display the keys that are not mapped yet.</description> <description lang="ja">まだマップされていないキーを表示する</description> <version>1.2.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> <updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/yetmappings.js</updateURL> <minVersion>2.3</minVersion> <maxVersion>2.4</maxVersion> <detail><![CDATA[ == Usage == :yetmap[pings] [<KEYS>] :ymap [<KEYS>] :yethintmodes :ymode == Links == http://d.hatena.ne.jp/nokturnalmortum/20081109/1226223461 ]]></detail> </VimperatorPlugin>; // }}} (function () { const other = '! @ # $ % ^ & * ( ) _ + | ~ { } : " < > ? - = \\ ` [ ] ; \' , . /'.split(/\s/); const special = 'Esc Return Tab Del BS Home Insert End Left Right Up Down PageUp PageDown F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12'.split(/\s/).map(function (it) ("<" + it + ">")); 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 number = '0 1 2 3 4 5 6 7 8 9'.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, modes) keys.filter(function (key) (!exists(modes, pre + key))); function addCommand (char, modes) { commands.addUserCommand( [char + 'yetmap[pings]', char + 'ymap'], 'display the keys that are not mapped yet.', function (arg) { liberator.echo(getYetMappings(arg.string || '', modes).join(' ')); }, { argCount: '*' }, true ); } for (let [name, mode] in Iterator(modes._modeMap)) { if (!mode.char) continue; addCommand(mode.char, [modes[name]]); } addCommand('', [modes.NORMAL]); commands.addUserCommand( ['yethintmodes', 'ymode'], 'display the hint-modes that are not mapped yet.', function (arg) { const keys = alpha.concat(alpha.map(String.toUpperCase)).concat(other).concat(number); liberator.echo(keys.filter(function (m) !hints._hintModes[m]).join(' ')); }, { argCount: '0' }, true ); liberator.plugins.yet_mappgins = { get: getYetMappings }; })();