aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
AgeCommit message (Collapse)Author
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* diff:lang/javascript/vimperator-plugins/trunk/twitter.js@9207:9244 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9266 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* backed out to r9207 due to a links in the text. (temporary) * ... and fixed a typo. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9246 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* ステータスが複数行で表示されてしまうので行末から続く空文字をカット git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9244 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* oops. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9243 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* インデントを修整しました。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9242 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* CDATA を外し忘れていた。 * アッー! こちらこそすんません、mattn さん。あざっす! git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9241 d0d07461-0603-4401-acd4-de1884942a52
2008-04-10lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* fx3b5では動かなかったので修正。 どう修正されようとしていたのかが分かりませんでした。すみません drryさん git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9240 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:drry
* fixed a typo "tyep". * et cetera... git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9229 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* しまったotsuneさんのuser_timelineのままだった>< git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9207 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* 制御終了文字で対応 (ref: http://twitter.com/otsune/statuses/785702748) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9206 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* アンカーがvimperatorと競合してしまうのでリンクにするのはやめ git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9205 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* 逆文字対策(ref: http://twitter.com/otsune) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9203 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* インデント修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9201 d0d07461-0603-4401-acd4-de1884942a52
2008-04-09lang/javascript/vimperator-plugins/trunk/twitter.js:mattn
* 「:twitter」だけで実行した場合はfollower statusを表示する様修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9199 d0d07461-0603-4401-acd4-de1884942a52
2008-03-21lang/javascript/vimperator-plugins/trunk: 08/03/19のCVS HEADに対応trapezoid
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8231 d0d07461-0603-4401-acd4-de1884942a52
2008-03-20lang/javascript/vimperator-plugins/trunkshunirr
lang/javascript/vimperator-plugins/tags/0.5.3 - mkdir trunk, tags - mv some files git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8221 d0d07461-0603-4401-acd4-de1884942a52
="p">(events, 'onEscape', function(){ if (ubiquityManager.panel.state == 'open') gUbiquity.closeWindow(); }); var focusedWindow = null; var focusedElement = null; preExec(commandline, 'open', function(){ focusedWindow = document.commandDispatcher.focusedWindow; focusedElement = document.commandDispatcher.focusedElement; }); // XXX:選択範囲が必要な操作が現状上手く動かない.不便であればコメントアウトしてください. preExec(gUbiquity, 'openWindow', function(anchor, flag){ if(!flag) { commandline.open(':', 'ubiquity ', modes.EX); return false; } }); // ------------------------------------------------- // Command // ------------------------------------------------- commands.addUserCommand(['ubi[quity]'], 'Vimperator Ubiquity Glue', function(args){ if (!args){ gUbiquity.openWindow(getBrowser(), true); return; } ubiquityManager.execute(args); }, { completer: function(context, arg, special){ ubiquityManager.completer(context, arg.string) } }, true ); // ------------------------------------------------- // Public Section // ------------------------------------------------- var ubiquityManager = { get panel(){ return gUbiquity.__msgPanel; }, get cmdManager(){ return gUbiquity.__cmdManager; }, get nlParser(){ return this.cmdManager.__nlParser; }, get commands(){ return this.cmdManager.__cmdSource.getAllCommands(); }, execute: function(cmds){ var context = this.getContext(); this.nlParser.updateSuggestionList(cmds, context); if (this.nlParser.getNumSuggestions() == 0){ liberator.echoerr('No such command'); return false; } var parsedSentence = this.nlParser.getSentence(0); try { parsedSentence.execute(context); } catch (e) { liberator.echoerr(e); } }, completer: function(context, args){ var matches = args.match(/(\S+)(?:\s+(.+)$)?/); var suggestions = []; for (let cmd in this.commands){ suggestions.push([cmd, this.commands[cmd].description]); } context.title = ['Command','Description']; if (!matches){ context.completions = suggestions; return; } var [cmd, arg] = [matches[1], matches[2]]; if (arg || (cmd && cmd in this.commands) ){ if ( (cmd in this.commands) && this.commands[cmd].preview){ this.getContext(); gUbiquity.__textBox.value = args; if (this.panel.state == 'closed') { gUbiquity.openWindow(getBrowser(), true); } gUbiquity.__updatePreview(); } } else if (cmd){ context.completions = suggestions.filter(function(command){return command[0].indexOf(cmd) == 0;}); return; } return [0, []]; }, getContext: function(){ gUbiquity.__focusedWindow = focusedWindow; gUbiquity.__focusedElement = focusedElement; return gUbiquity.__makeContext(); } }; return ubiquityManager; })(); // vim:ts=4 sw=4 et: