Tomer
Tomer

Reputation: 17940

Sublime text 2 search does not work

I have ST2 installed on Win7 and for some reason the global 'Find in Files' (ctrl+shift+f) stopped working (it worked before). Now all i get is :

Searching 0 files for "capbSectionac"

0 matches across 0 files

The regular search in the currently opened file is working correctly.

I tried re-installing it but to no avail :(

Anyone encountered it? Any solution?

Upvotes: 6

Views: 4988

Answers (5)

Lowkase
Lowkase

Reputation: 5699

I am new to Sublime Text 3, so when I first tried to use Find In Files (shift+command+y) it yielded nothing but 0 search results.

I brought up Find (command + f) and I noticed alot of spaces before my search term.

I cleared out those extra spaces and left my search term. Brough back up Find In Files and the search worked properly.

Upvotes: 1

ankit yadav
ankit yadav

Reputation: 11

Press ctrl F . then in left side of search bar, enable Wrap. with inverted reload sign

Upvotes: 1

Linus
Linus

Reputation: 4783

I had the same problem. At some time I noticed that the Where: field (below Find:) didn't show any placeholder text ("Open files and folders"), as it is supposed to when it's empty. It turns out that the Where: field wasn't empty and therefore the search was like happening nowhere. As I cleared this field, the search worked again.

Upvotes: 5

matiascelasco
matiascelasco

Reputation: 1395

Note that it says "Searching 0 files".

In the second field "Where:", make sure you don't have a folder selected. You should see the placeholder text "Open files and folders" which means that it will search in the whole project. If you don't see this placeholder, even if the "Where" field is empty try clicking on the "..." button and then click on "Clear".

source: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=12611

Upvotes: 5

user1634074
user1634074

Reputation: 681

I keep having this problem in Unbuntu. The solution I found was just to delete the folder

/home/<user>/.config/sublime-text-2/Packages/User/Package Control.cache

I think this happens because I have file synchronization on save but can't be sure.

Upvotes: 0

Related Questions