Contents

_M.textadept.snapopen

Snapopen for the textadept module.

Examples

local snapopen = _M.textadept.snapopen.open

-- Show all files in PATHS.
snapopen()

-- Show all files in the current file's directory.
snapopen(buffer.filename:match('^(.+)[/\\]'), nil, true)

-- Show all Lua files in PATHS.
snapopen(nil, '!%.lua$')

-- Ignore the project's 'images' folder and HTML pages.
snapopen('/path/to/project', {
           folders = { 'images' },
           extensions = { 'html' }
         }, true)

Fields


DEFAULT_DEPTH (number)

Maximum directory depth to search. The default value is 4.


MAX (number)

Maximum number of files to list. The default value is 1000.


Functions


open (utf8_paths, filter, exclude_PATHS, exclude_FILTER, depth)

Quickly open a file in set of directories.

Parameters:

Usage:


Tables


FILTER

Default file and directory filters.


PATHS

Table of default UTF-8 paths to search.