Improve user feedback for big directories (#223)
This commit is contained in:
@@ -3,7 +3,7 @@ local config = {}
|
||||
config.project_scan_rate = 5
|
||||
config.fps = 60
|
||||
config.max_log_items = 80
|
||||
config.message_timeout = 3
|
||||
config.message_timeout = 5
|
||||
config.mouse_wheel_scroll = 50 * SCALE
|
||||
config.file_size_limit = 10
|
||||
config.ignore_files = "^%."
|
||||
|
||||
+4
-5
@@ -173,11 +173,10 @@ local function project_scan_thread()
|
||||
if entries_count > config.max_project_files then
|
||||
core.project_files_limit = true
|
||||
core.status_view:show_message("!", style.accent,
|
||||
"Too many files in project directory: stopping reading at "..
|
||||
config.max_project_files.." files according to config.max_project_files. "..
|
||||
"Either tweak this variable, or ignore certain files/directories by "..
|
||||
"using the config.ignore_files variable in your user plugin or "..
|
||||
"project config.")
|
||||
"Too many files in project directory: stopped reading at "..
|
||||
config.max_project_files.." files. For more information see "..
|
||||
"usage.md at github.com/franko/lite-xl."
|
||||
)
|
||||
end
|
||||
dir.files = t
|
||||
core.redraw = true
|
||||
|
||||
Reference in New Issue
Block a user