Re: Find In Files - file patterns

From: mitchell <>
Date: Wed, 11 Feb 2009 20:17:40 -0800 (PST)


> For example, when searching through Textadept source, most of the time
> I only want to search inside .lua files, not .html files. Currently,
> there is no way to do that in TA, but I think we could not only do
> that, but do one better by offering the ability to supply a Lua
> pattern to be matched against the entire file path end extension -
> this would offer limitless possibilities for narrowing down your file
> search.
> The obvious way to implement this is to add another input box to the
> Find panel. Is there another way that does not bloat the UI? I was
> thinking about two possibilities:
> 1. some notation/convention to use in the Find input itself that would
> signal to TA that part of the find string is such search metadata.
> 2. hijack the Lua input box (the one you see when you press F2) to use
> as a place to enter Find In Files metadata (this does sound like waaay
> to much of a hack to be "official' functionality)

In core/ext/find.lua you could add an additional cocoadialog inputbox
that prompts for an optional Lua pattern after selecting a directory.
Received on Wed 11 Feb 2009 - 23:17:40 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:17 EST