Re: [code] [textadept] Proposed API Changes

From: Mitchell <m.att.foicica.com>
Date: Mon, 25 Mar 2013 12:17:57 -0400 (Eastern Daylight Time)

Hi,

On Tue, 19 Mar 2013, Mitchell wrote:

> Hi,
>
> I've been contemplating changes to the API:
>
> + Add lfs.dir_foreach(utf8_dir, f, filter, exclude_FILTER)
> Iterates over all files and sub-directories in the directory
> *utf8_dir*, calling function *f* on each file found.
> *filter* and *exclude_FILTER* are identical to
> _M.textadept.snapopen.open()'s respective parameters.
> [...]
> If *f* returns `false` explicitly, iteration ceases.
> + Add io.MAX or io.SNAPOPEN_MAX
> Same documentation as _M.textadept.snapopen.MAX
> + Add io.snapopen(utf8_paths, filter, exclude_FILTER)
> Same documentation as _M.textadept.snapopen.open.
> - Remove _M.textadept.snapopen.DEFAULT_DEPTH
> It was 99 anyway and MAX is probably more useful.
> - Remove _M.textadept.snapopen
> Moved functionality into core `io`.
> ? io.snapopen's *utf8_paths* should be a '\n' separated string of
> paths and no longer accepts a table (pass result of table.concat()
> instead). This is consistent with io.open_file() which also accepts
> '\n' separated files and not a table.

These changes are now in hg[1].

Cheers,
Mitchell

[1]: http://foicica.com/hg/textadept/rev/7ea7650f4e2c

-- 
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 Mon 25 Mar 2013 - 12:17:57 EDT

This archive was generated by hypermail 2.2.0 : Tue 26 Mar 2013 - 06:39:37 EDT