diff --git a/data/core/config.lua b/data/core/config.lua index c535a371..a9f106f6 100644 --- a/data/core/config.lua +++ b/data/core/config.lua @@ -6,6 +6,7 @@ config.max_log_items = 80 config.message_timeout = 3 config.mouse_wheel_scroll = 50 * SCALE config.file_size_limit = 10 +config.ignore_files = "^%." config.symbol_pattern = "[%a_][%w_]*" config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-" config.undo_merge_timeout = 0.3 diff --git a/data/core/init.lua b/data/core/init.lua index 13c9c3a5..777dd4e4 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -1,4 +1,5 @@ require "core.strict" +local common = require "core.common" local config = require "core.config" local style = require "core.style" local command @@ -34,7 +35,7 @@ local function project_scan_thread() local dirs, files = {}, {} for _, file in ipairs(all) do - if not file:find("^%.") then + if not common.match_pattern(file, config.ignore_files) then local file = path .. PATHSEP .. file local info = system.get_file_info(file) if info and info.size < size_limit then