Changeset 38487 for lang/javascript
- Timestamp:
- 09/19/10 08:13:03 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/twittperator.js
r38486 r38487 1767 1767 Twitter.favorite(m[0]); 1768 1768 }, 1769 timelineCompleter: true, 1769 1770 completer: Completers.id(rejectMine) 1770 1771 }), … … 1777 1778 Twitter.unfavorite(m[1]); 1778 1779 }, 1780 timelineCompleter: true, 1779 1781 completer: Completers.name_id_text(rejectMine) 1780 1782 }), … … 1789 1791 } 1790 1792 }, 1793 timelineCompleter: true, 1791 1794 completer: Completers.name() 1792 1795 }), … … 1795 1798 description: "Twitter search", 1796 1799 action: function(arg) Twittperator.showTwitterSearchResult(arg), 1800 timelineCompleter: true, 1797 1801 completer: Completers.text() 1798 1802 }), … … 1801 1805 description: "Open link", 1802 1806 action: function(arg) Twittperator.openLink(arg), 1807 timelineCompleter: true, 1803 1808 completer: Completers.text(function(s) /https?:\/\//(s.text)) 1804 1809 }), … … 1811 1816 Twitter.destroy(m[0]); 1812 1817 }, 1818 timelineCompleter: true, 1813 1819 completer: Completers.id(seleceMine) 1814 1820 }), … … 1833 1839 history.filter(function(st) st.id === id).map(dtdd).forEach(liberator.echo); 1834 1840 }, 1841 timelineCompleter: true, 1835 1842 completer: Completers.id() 1836 1843 }), … … 1843 1850 completer: function (context, args) { 1844 1851 if (setting.trackWords) 1845 context.completions = [ setting.trackWords, "from global variable"];1852 context.completions = [[setting.trackWords, "Global variable"]]; 1846 1853 } 1847 1854 }), … … 1876 1883 (this.match(desc.user.screen_name) || this.match(desc.text)); 1877 1884 1878 context.createRow = function(item, highlightGroup) { 1879 let desc = item[1] || this.process[1].call(this, item, item.description); 1880 1881 if (desc && desc.user) { 1885 function setTimelineCompleter() { 1886 context.createRow = function(item, highlightGroup) { 1887 let desc = item[1] || this.process[1].call(this, item, item.description); 1888 1889 if (desc && desc.user) { 1890 return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap"> 1891 <li highlight="CompDesc"> 1892 <img src={desc.user.profile_image_url} style="max-width: 24px; max-height: 24px"/> 1893  {desc.user.screen_name}: {desc.text} 1894 </li> 1895 </div>; 1896 } 1897 1882 1898 return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap"> 1883 <li highlight="CompDesc"> 1884 <img src={desc.user.profile_image_url} style="max-width: 24px; max-height: 24px"/> 1885  {desc.user.screen_name}: {desc.text} 1886 </li> 1899 <li highlight="CompDesc">{desc} </li> 1887 1900 </div>; 1888 } 1889 1890 return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap"> 1891 <li highlight="CompDesc">{desc} </li> 1892 </div>; 1893 }; 1901 }; 1902 1903 context.filters = [statusObjectFilter]; 1904 } 1894 1905 1895 1906 let len = 0; … … 1898 1909 let [subCmd, m] = findSubCommand(args.literalArg) || []; 1899 1910 if (subCmd) { 1911 if (subCmd.timelineCompleter) 1912 setTimelineCompleter(); 1900 1913 context.title = ["Hidden", "Entry"]; 1901 1914 subCmd.completer(context, args); … … 1903 1916 } 1904 1917 } else { 1918 setTimelineCompleter(); 1905 1919 let m; 1906 1920 if (m = args.literalArg.match(/(RT\s+)@.*$/)) { … … 1917 1931 context.title = ["Name#ID", "Entry"]; 1918 1932 context.offset += len; 1919 context.filters = [statusObjectFilter];1920 1933 // XXX 本文でも検索できるように、@ はなかったことにする 1921 1934 context.filter = context.filter.replace(/^@/, "");
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)