Re:Ripgrep code review
by kaushalmodi on Saturday December 03, 2016 @03:57PM
(#13097457)
I love the ripgrep utility, and it is slowly replacing ag for me. But I am more interested in your blog design. I am an Emacs and Org enthusiast. Would you like to share your blog generation setup? I'd like to learn how you creates the TOC at the end of the page (looks like that on phone) and see if I can recreate that in hugo. Thanks!
[ Parent
| on HN ]
Not the author but if you view source or follow their linked github you can find generation is the result of org-mode and org-twbs[0].
Re:Ripgrep code review
by kaushalmodi on Saturday December 03, 2016 @06:31PM
(#13098012)
Thanks! I was going to do that on getting to a computer. That confirms.. I had seen ox-twbs exported sites before, but not on a phone. It's interesting that the TOC is still retained but put at the bottom.
Indeed it's a default org-twbs export. I have manually adjusted some stuff like the navigation at the top. Yeah the TOC is at the bottom, but on a desktop is on the right. It's bootstrap behavior when you have two columns with div 'col-md-9' and 'col-md-3': on a mobile you get the second column after the first. I couldn't find a way to customize it within Emacs, so I just used it as is. Otherwise I'd have put the TOC at the top, for sure.
What are the benefits of ripgrep over ag?
Re:Ripgrep code review
by burntsushi on Sunday December 04, 2016 @11:46AM
(#13100539)
ripgrep's README will tell you: https://github.com/BurntSushi/ripgrep
The short version:
1. It's faster.
2. It's not just faster on code repos, it's also faster than grep itself on single files, so you can use ripgrep in lieu of both ag and grep.
3. It has Unicode support. (More importantly, its Unicode support is fast, and doesn't exhibit huge slow downs like GNU grep does.)
4. Its support for reading gitignore files is quite a bit less buggy than ag.
5. I've heard folks tell me ag was hard to install on Windows, but ripgrep provides first class support for Windows. I've never personally tried ag on Windows, so take that with a grain of salt.
The (much) longer version is my blog post, which goes into a lot more detail, specifically on 1+2+3: http://blog.burntsushi.net/ripgrep/