[TxMt] Re: Search beachballs on (very) long single-line file

Josh Bernitt jjbernitt at gmail.com
Sun Jun 5 20:26:05 UTC 2016

Are you able to open the file with TM normally?

Josh Bernitt
Sent with Airmail

On June 5, 2016 at 4:24:08 PM, Walter Lee Davis (waltd at wdstudio.com) wrote:

> On Jun 5, 2016, at 4:19 PM, Allan Odgaard <mailinglist at textmate.org>
> On 5 Jun 2016, at 22:09, Walter Lee Davis wrote:
>> Never mind, I didn't get it all the way into the root of the folder.
This gives me some ideas about restricting search within logs, or the asset
pipeline detritus.
> For changing what to search (for a given project) I suggest editing the
“matching” text field in the search window. You can prefix with ~ to
exclude items and use ** to match everything below a certain folder.
> For example to exclude all your log files use: ~logs/**
> Hint: When you search a project and you get a match from a file that you
want to exclude, simply hold ‘option’ and click the remove button for this
match, then the path of that file will be added to the current “matching
glob” (you can edit it afterward if you want to generalize it).

These are great tips, thanks!

> As for your 1MB JSON file, if I need to look into this, you need to
provide the file and what you searched for.

Sure, I can do that if you need me to.

> I did a quick test by generating a 1 MB file and appended a special
string, then searched for this string, and while there were delays, they
were sub-second delays. I think they are mainly related to generating the 1
MB text string to show in the search window, which I could probably limit
to +/- 500 bytes from where the match was found.

My search string was `title`, which occurs hundreds of times within the
file (although I wasn't actually looking for it within that file).


> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

textmate mailing list
textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160605/84b931ad/attachment.html>

More information about the textmate mailing list