Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

cannot limit matching only to file contents #64

Open
adrian-herscu opened this issue Feb 18, 2015 · 5 comments
Open

cannot limit matching only to file contents #64

adrian-herscu opened this issue Feb 18, 2015 · 5 comments

Comments

@adrian-herscu
Copy link

It is not clear how to make it search matches only in the file contents.
Tried with text:foo and with body:foo and didn't work.

@ajermakovics
Copy link
Owner

Hi,
you can search inside a particular file with

name:FileName searchstring 

@adrian-herscu
Copy link
Author

Unfortunately that does not help :( I need to find some text in a large number of files -- that's what search tools should do?

@ajermakovics
Copy link
Owner

By default it searches in file contents of all workspace files.

@adrian-herscu
Copy link
Author

ok... suppose having the following files and contents:

  1. file-foo
    blah blah file trah
  2. file-bar
    other garbage
  3. file-baz
    yet other garbage

Now searching for "file", I would expect to get just file-foo with the relevant line highlighted.
Instead I get also file-bar and file-baz even that those do not contain "file" (besides in their name, which is not important).

@ajermakovics
Copy link
Owner

Right, see what you mean now. Try: contents:foo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants