aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-04-13 13:43:27 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-04-13 13:43:27 -0400
commit4d61548017affb260ac4bd6a5fd37a02c5d8c014 (patch)
tree1d61ed20556d125463d6f6658ede1e99d0c3ead2 /core/file_io.lua
parent1a08d256d40dea3d63c877eda7828109ff5fb9d4 (diff)
downloadtextadept-4d61548017affb260ac4bd6a5fd37a02c5d8c014.tar.gz
textadept-4d61548017affb260ac4bd6a5fd37a02c5d8c014.zip
Added `symlink` filter option for ignoring symlinked files and directories.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua17
1 files changed, 13 insertions, 4 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index ba84b65e..14637891 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -383,10 +383,19 @@ io.snapopen_filters = {}
-- obtained from `io.get_project_root()`.
-- Files shown in the dialog do not match any pattern in either string or table
-- *filter* or, unless *exclude_FILTER* is `true`, in `lfs.FILTER`. A filter
--- table contains Lua patterns that match filenames to exclude, an optional
--- `folders` sub-table that contains patterns matching directories to exclude,
--- and an optional `extensions` sub-table that contains raw file extensions to
--- exclude. Any patterns starting with '!' exclude files and directories that do
+-- table contains:
+--
+-- + Lua patterns that match filenames to exclude.
+-- + Optional `folders` sub-table that contains patterns matching directories
+-- to exclude.
+-- + Optional `extensions` sub-table that contains raw file extensions to
+-- exclude.
+-- + Optional `symlink` flag that when `true`, excludes symlinked files (but
+-- not symlinked directories).
+-- + Optional `folders.symlink` flag that when `true`, excludes symlinked
+-- directories.
+--
+-- Any filter patterns starting with '!' exclude files and directories that do
-- not match the pattern that follows. The number of files in the list is capped
-- at `SNAPOPEN_MAX`. If *filter* is `nil` and *paths* is ultimately a string,
-- the filter from the `io.snapopen_filters` table is used. In that case, unless