Can you mass edit all files returned in a grep?
The easiest way is to have grep return just the filenames (-l instead of -n) that match the pattern. Run that in a subshell and feed the results to Vim. vim $(grep -rIl ‘xg_icon-*’ *)
The easiest way is to have grep return just the filenames (-l instead of -n) that match the pattern. Run that in a subshell and feed the results to Vim. vim $(grep -rIl ‘xg_icon-*’ *)
There may be several approaches with different implementation complexity. The easiest one is to create list of topics (like plumbing), attach bag of words (like “pipe”), identify search request by majority of keywords and search only in specified topic (you can add field topic to your elastic search documents and set it as mandatory with … Read more
:vimgrep /JFactory/ **/*.java You can replace the pattern /JFactory/ with /\<JFactory\>/ if you want full word match. :vim is shorthand for :vimgrep. If JFactory or \<JFactory\> is your current search pattern (for example you have hit * on one occurrence) you can use an empty search pattern: :vimgrep // **/*.java, it will use last search … Read more
You can either boost at index time or query time. I usually prefer query time boosting even though it makes queries a little bit slower, otherwise I’d need to reindex every time I want to change my boosting factors, which usally need fine-tuning and need to be pretty flexible. There are different ways to apply … Read more
Modern Vim Starting with Vim 8.1.1270, there’s a new feature in core to show the current match position. NeoVim enables this functionality by default, but standard Vim does not. To enable it in standard Vim, run: :set shortmess-=S Originally mentioned below in Ben’s answer, and added here for visibility. Older Versions In Vim 7.4+, the … Read more
Use lucene, http://lucene.apache.org/java/docs/ Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. It is available in java and .net. It is also in available in php in the form of a zend framework module. Lucene … Read more
For me somehow it works just by typing ./ in the files to exclude field.
IntelliJ is project based so you can only search within the open project using Ctrl + Shift + F(Windows) or Cmd + Shift + F(Mac). When I need to search across a set of projects I use Agent Ransack
I’ve come across the following resources on my travels (some already mentioned above): HTML Mark-up-focused search engines Nerdydata I’d also like to throw in the following: Huge, website crawl data archives Common Crawl – ‘years of free web page data to help change the world’ (over 250TB+) How can we analyze this crawl data? For … Read more
The customary key for jumping to the next search result is ‘n’. I’m not entirely sure what you mean about highlighting – all search results should be highlighted if hlsearch is set, and for me it makes no difference if I go to the next result with ‘n’ or with “https://stackoverflow.com/”.