On Sun, Oct 28, 2018 at 8:51 PM Bram Moolenaar <[email protected]> wrote: > Vim has many features that plugin authors can use to achieve their goal. But > what is still missing? What could be simplified? What is currently impossible? > > Please use one comment for each suggestion. Use the thumbs-up and thumbs-down > to express whether you agree with a specific answer/request (you can find > that in the header of the comment on the top right, looks like a smiley face). > > (I tried starting this on stackoverflow, but apparently opinions are not > welcome there)
I don't know if it's possible for github to sort the comments by the thumbs up count, so here's a way to do it: paste the following in the javascript console for https://github.com/vim/vim/issues/3573: (() => { let p, i, a = []; document.querySelectorAll('div.js-timeline-item').forEach(e=>{ e.score = 0; a.push(e) let plusones = e.querySelectorAll('button g-emoji[alias="+1"]'); if (plusones.length < 2) return; let thumbsup = plusones[1].nextSibling.textContent.trim(); if (thumbsup) e.score = parseInt(thumbsup, 10); }); a.sort((a,b)=>b.score-a.score); p = a[0].parentNode; a.forEach(e=>p.appendChild(p.removeChild(e))); })() nazri -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
