3 ms·
I use Sublime, but mainly because its search features are the best I've seen in any text editor. I can grep the entire codebase I'm working with for a specific
by kylec 12y ago
I use Sublime, but mainly because its search features are the best I've seen in any text editor. I can grep the entire codebase I'm working with for a specific string or pattern, or limit the search to specific kinds of files or files in specific directories, and see the results listed one after another in the find tab. Click on the result I want and I'm editing that file in that spot.
I've considered trying out other editors (Emacs, Vim, etc) but I haven't seen much in the way of first-party multi-file grep like I have with Sublime.
- icebraining 12y agohttp://vim.wikia.com/wiki/Find_in_files_within_Vim http://vim.wikia.com/wiki/Find_in_files_within_Vim http://seesparkbox.com/foundry/demystifying_multi_file_searches_in_vim_and_the_command_line http://seesparkbox.com/foundry/demystifying_multi_file_searc...
- S4M 12y ago> I've considered trying out other editors (Emacs, Vim, etc) but I haven't seen much in the way of first-party multi-file grep like I have with Sublime. In emacs you have M-x rgrep (M is the metakey, alt most likely). It greps all the file in your project, I don't know if Sublime's grep is different.
- omni 12y agoEmacs has all of this as part of the popular projectile package for project management. https://github.com/bbatsov/projectile https://github.com/bbatsov/projectile Some of the more advanced stuff is generally included in the search-specific packages, e.g. grep or ag.
- 1000hz 12y agoI don't like how Sublime opens the search results as a text file in a new tab. TextMate2 has all of these search features too, except it's all in a nice dialog window. Also, its Find & Replace feature live-previews your changes inside the dialog. It's really nice.
- ben336 12y agoNot all "first-party" but Vim has a very very rich set of search and file management features: http://benmccormick.org/2014/11/10/vim-workflows-file-switching-strategies/ http://benmccormick.org/2014/11/10/vim-workflows-file-switch...
- pmoriarty 12y agoJust a small sampling of what's out there that could search just as well or better: For emacs: helm-ack[1] helm-ag[2] helm-git-grep[3] For vim: ctrlp[4] unite[5] [1] - https://github.com/syohex/emacs-helm-ack https://github.com/syohex/emacs-helm-ack [2] - https://github.com/syohex/emacs-helm-ag https://github.com/syohex/emacs-helm-ag [3] - https://github.com/yasuyk/helm-git-grep https://github.com/yasuyk/helm-git-grep [4] - https://github.com/kien/ctrlp.vim https://github.com/kien/ctrlp.vim [5] - https://github.com/Shougo/unite.vim https://github.com/Shougo/unite.vim
- subsection1h 12y agoeproject[1] by Jonathan Rockway[2] supports project-based grepping. [1] https://github.com/jrockway/eproject https://github.com/jrockway/eproject [2] https://news.ycombinator.com/user?id=jrockway https://news.ycombinator.com/user?id=jrockway