diff --git a/data/core/config.lua b/data/core/config.lua index efbe1f1b..87837439 100644 --- a/data/core/config.lua +++ b/data/core/config.lua @@ -7,7 +7,16 @@ config.mouse_wheel_scroll = 50 * SCALE config.animate_drag_scroll = false config.scroll_past_end = true config.file_size_limit = 10 -config.ignore_files = { "^%." } +config.ignore_files = { + -- folders + "^%.svn/", "^%.git/", "^%.hg/", "^CVS/", "^%.Trash/", "^%.Trash%-.*/", + "^node_modules/", "^%.cache/", "^__pycache__/", + -- files + "%.pyc$", "%.pyo$", "%.exe$", "%.dll$", "%.obj$", "%.o$", + "%.a$", "%.lib$", "%.so$", "%.dylib$", "%.ncb$", "%.sdf$", + "%.suo$", "%.pdb$", "%.idb$", "%.class$", "%.psd$", "%.db$", + "^desktop%.ini$", "^%.DS_Store$", "^%.directory$", +} 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 a9ce4459..44e114e8 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -495,7 +495,6 @@ local style = require "core.style" -- key binding: -- keymap.add { ["ctrl+escape"] = "core:quit" } - ------------------------------- Fonts ---------------------------------------- -- customize fonts: @@ -535,6 +534,21 @@ local style = require "core.style" -- -- disable detectindent, otherwise it is enabled by default -- config.plugins.detectindent = false + +---------------------------- Miscellanous -------------------------------------- + +-- modify list of files to ignore when indexing the project: +-- config.ignore_files = { +-- -- folders +-- "^%.svn/", "^%.git/", "^%.hg/", "^CVS/", "^%.Trash/", "^%.Trash%-.*/", +-- "^node_modules/", "^%.cache/", "^__pycache__/", +-- -- files +-- "%.pyc$", "%.pyo$", "%.exe$", "%.dll$", "%.obj$", "%.o$", +-- "%.a$", "%.lib$", "%.so$", "%.dylib$", "%.ncb$", "%.sdf$", +-- "%.suo$", "%.pdb$", "%.idb$", "%.class$", "%.psd$", "%.db$", +-- "^desktop%.ini$", "^%.DS_Store$", "^%.directory$", +-- } + ]]) init_file:close() end