Re: Find In Files - file patterns

From: Vais Salikhov <>
Date: Wed, 11 Feb 2009 23:50:00 -0500

Well, Mitchell, I am aware of this option, but that means another
dialog to click through whether you like it or not. Sometimes (most of
the time) you wouldn't care, but you would have to click through it
anyway. This makes it a sub-optimal solution IMHO.

I know this is a tough one. Any other ideas on a find string format
that would interfere the least with the normal Find string
functionality? Keep in mind, specifying a file pattern is an
exception, not a rule.


On Feb 11, 2009, at 11:17 PM, mitchell <> wrote:

> Vais,
>> 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.
> -Mitchell;
> >
Received on Wed 11 Feb 2009 - 23:50:00 EST

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