Forum Archive

Searching within files

WyldKard

While there are a lot of Dropbox-based writing apps, few (like Notesy) will search within plaintext files. It'd be great if Editorial could do this too, since it's become the primary writing app of a lot of people.

Update: Oops, just found the Global Search workflow! It's not recursive, but I guess it does content search. Now to find a way to combine it with a filename search...

omz

It's not recursive, but I guess it does content search. Now to find a way to combine it with a filename search...

It is recursive, starting from the folder of the currently-open document.

WyldKard

Ah, I think the files in my sub-folders didn't have supported extensions, despite being plaintext, so they weren't coming up under the Global Search Results. Works now - thanks!

MartinPacker

@WyldKard What extensions DID they have? If the list of extensions were, ahem, extensible :-) , maybe @omz would extend it. But that would depend, at least, on how general they were.

Bricoleur

I think you can just go into the python code ("do the search" component in the workflow) and have at it...
If my memory serves I added the last entry myself, before taking a different approach to tackling TaskPaper functionality.

Line 18: valid_extensions = set(['.txt', '.md', '.markd', '.text', '.mdown', '.taskpaper'])