To open files found with grep in Sublime Text, run the following command
subl $(grep -irl "search for text" .)
i = case insensitive
r = recursive
l = only file names
Be sure to include the l flag, otherwise you'll open a bunch of new files with no relation to what you're doing.