6 ms·
Until you need a solid search that spans across the nested directories then you start wasting significant time with regular expression and complex commands.
by realstuff 10y ago
Until you need a solid search that spans across the nested directories then you start wasting significant time with regular expression and complex commands.
- greenspot 10y agoFZF? Works in Vim and on the command line. https://github.com/junegunn/fzf https://github.com/junegunn/fzf
- realstuff 10y agoLooks like it searches the filenames, I am referring to file contents. Does it support that?
- greenspot 10y agoNo, but what about locate, grep and find? Locate is the fastest, find is the slowest and grep is the most complex but also the most versatile one of these since you can use regexes. It's the shell and you can use anything you want.
- realstuff 10y agoLocate searches the filenames, too.
- atmosx 10y agoGNU grep should be able to handle a few hundred small files easily for a few MB of free ram...
- realstuff 10y agoYeah, but it's not as convenient as a GUI search in, say, Sublime.
- icebraining 10y agoThat's debatable. For me, typing "gr <expression>" (my abbreviation for recursive grep) is quite fast and convenient.
- gkelly 10y agoI really like ack over grep, and there's a vim plugin too. https://github.com/mileszs/ack.vim https://github.com/mileszs/ack.vim
- pmiller2 10y agoNope. https://github.com/ggreer/the_silver_searcher https://github.com/ggreer/the_silver_searcher