5 ms·
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
by kaushalmodi 10y ago
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!
- nprescott 10y agoNot 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]. [0] https://github.com/marsmining/ox-twbs https://github.com/marsmining/ox-twbs
- kaushalmodi 10y agoThanks! 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.
- YPCrumble 10y agoWhat are the benefits of ripgrep over ag?
- burntsushi 10y agoripgrep's README will tell you: https://github.com/BurntSushi/ripgrep 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/ http://blog.burntsushi.net/ripgrep/
- mbrt 10y agoIndeed 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.