Re: [code] [textadept] Feature Request: Whitelist for 'find_in_files'

From: Mitchell <m.att.foicica.com>
Date: Tue, 16 Oct 2018 08:47:39 -0400 (EDT)

Hi Johannes,

On Tue, 16 Oct 2018, johannes wrote:

> Hi Mitchell,
>
> is it possible to add some kind of whitelist to the filter of 'find_in_files'
> ? E.g. parameters like 'included_dirs' and 'included_extensions'.
>
> For example if you have a library folder to search through, e.g.
> dir='/path/to/lib'. Then only files with extension in 'included_extensions'
> and dirs in 'included_dirs' would be take into account. 'included_dirs' would
> be like this: {'/path/to/lib/subfolder1', '/path/to/lib/subfolder2'}.
>
> As an alternative it would be ok, to add an boolean parameter 'whitelist' to
> the filter. If false, then the filter behaviour is like now. If true, all
> filters would be inverted.

Yes, I think something like this is reasonable. Honestly, the concept of filters confuses me sometimes too. I'll do some rethinking on this subject when I have some time and also take into account what you have suggested.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 16 Oct 2018 - 08:47:39 EDT

This archive was generated by hypermail 2.2.0 : Wed 17 Oct 2018 - 06:38:02 EDT