Author Topic: Search *without* context  (Read 1764 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Search *without* context
« on: August 15, 2018, 08:14:55 PM »
I often want to search for instances of something but I do not care about where it is found.

Case 1: Extracting data.
   Delete-search and keep-search take care of this need for a single file.
   They do not work on multiple files though :-(

 
Case 2: Finding unique instances of something.
For example, what are all of the unique instances of "import com.foo.bar." in my java sources?
(Sometimes I also do this with "list matches only" as well when I don't want the rest of the line with a match).
To do this, I have to:
FiF for "import com.foo.bar." in *.java.
In results,
   Align Columns
   select all
   copy
File->New
   Paste
   Sort
   Using column select, remove the line/col prefix and the "File..." lines.
   Sort again, removing duplicate.

All pretty tedious - much of it because Search returns more information than I need.