aboutsummaryrefslogtreecommitdiff
path: root/data/core/init.lua
AgeCommit message (Collapse)Author
2022-08-20Added a smoothing and strikethrough option to font loading. (#1087)Aqil Contractor
* Added a smoothing option to font loading. * Added a font strikethrough option to font loading. * Fixed underline applying incorrectly in cases of non-underlined fallback fonts being used. Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2022-07-15Add font style options in user modulecisoun
2022-06-28Fix opening `LogView` when reloading customizationsGuldoman
As `reload_customizations` was called during save operations, opening the `LogView` changed `core.active_view` which caused some errors to be thrown.
2022-06-07initial documentation for better code completionjgmdev
2022-06-07Merge pull request #1022 from Guldoman/PR_annoy_on_reload_errorJefferson González
Open `LogView` on user/project module reload error
2022-06-07Merge pull request #1010 from Guldoman/PR_improve_multiproject_treeviewJefferson González
`TreeView` improvements for multi-project
2022-06-05Open `LogView` on user/project module reload errorGuldoman
2022-06-02style: move default colors to its own style filejgmdev
2022-06-01Add `common.is_absolute_path`Guldoman
2022-05-31Merge pull request #1005 from Guldoman/PR_improve_logsJefferson González
Add `warn` log level and backtraces
2022-05-31plugins: only check mod versionjgmdev
2022-05-31Expose function to create custom log entriesGuldoman
2022-05-31Add `warn` log levelGuldoman
2022-05-31Always show backtrace for `error` log entriesGuldoman
2022-05-05plugins: add load priority support with '--priority:###'jgmdev
2022-05-02core: expose rescan_project_directories and configure_borderless_windowjgmdev
2022-05-02Merge pull request #966 from adamharrison/check-plugin-load-timeGuldoman
Added plugin load-time log.
2022-04-30Added in log to show total time.Adam Harrison
2022-04-28Send `mouseleft` event when the mouse leaves the window (#928)Guldoman
* Send `mouseleft` event when the mouse leaves the window * Call `View:on_mouse_left` when the mouse leaves the `View` Previously `View:on_mouse_left` was called only when the mouse left the window, and it was called on every visible `View`. Now it gets also called when the mouse "changes" `View`, and only the last `View` the mouse was on will receive the event.
2022-04-28Added plugin load-time log.Adam Harrison
2022-04-28Check if `USERDIR` doesn't exist in `core.delete_temp_files`Guldoman
2022-04-26TreeView Changes (#898)Adam
* Change to 1 click as per RFC on discord, with 100% in favour. * Added in the ability to specify as a view name, so it doesn't modify the title, and also fixed a bug where if you clicked *over* the amount of times your config says, it wouldn't regsiter. * Changed plugin to use keymap.
2022-04-26Asynchronous Reads for Dirmonitor (#930)Adam
Change dirmonitor reads to be synchronous, in a secondary thread.
2022-04-18Add `DATADIR` and `USERDIR` explanation in created user moduleGuldoman
2022-03-28core: fixes and changes to temp filesjgmdev
* fix delete_temp_files() deleting in EXEDIR but temp_filename() was creating temp files in USERDIR * make delete_temp_files() public so it can be used by plugins * add optional `dir` parameter to both delete_temp_files() and temp_filename() to allow specifying a different directory, this is for example useful when generting markdown previews, the temp file should be generated in the project dir in case the readme references images that are relative to it, so the web browser can find them.
2022-03-18Allow opening non existing files from argumentsGuldoman
2022-03-10config: added skip_plugins_versionjgmdev
This new config flag ignores the plugins version check at startup which helps a lot when working on new or old plugins that doesn't match the mod or lite-xl version and you still desire to load them to fix them by checking with lite-xl it self which errors need to be corrected.
2022-03-09config overwritten on user/project modules savejgmdev
When a user modifies and saves the init.lua or a project module file the reload_customizations() function was performing unnecessary reloading of core.config and core.style. This resulted on the replacement of config tables with new tables, breaking all active references been used by the consumers of this config options. Been redundant this means that every consumer was using its own copy of a configuration table different from the one referenced on core.config and user changes not taking place.
2022-03-08Fixed some issues with inotify and multiple events at the same time. (#872)Adam
* Fixed some issues with inotify and multiple events at the same time. Seems to be working now. * Cleaned up and simplified function, and commented, and fixed a number of bugs. * Simplifying and fixing further. * Improved performance for skipping large amounts of files. * Added in extra checks, and changed paths. We should probably unify these path styles. * Fixed stutter. * Removed extraneous functions. * Cleaned up more, added more testing; dealt with multiple sequential events correctly.
2022-03-06init: also load default nodes and commands before user plugins and project ↵jgmdev
module.
2022-03-06init: load core views before user pluginsjgmdev
2022-03-06Load project module on startupGuldoman
2022-03-06Fix Project Scanning (#746)Adam
Removed dmon, and replaced with logic that works across Linux, Mac, FreeBSD and Windows. Have tested on all platforms, and seems to work. Co-authored-by: Jan200101 <sentrycraft123@gmail.com>
2022-02-15Allow intercepting `filedropped` eventsGuldoman
The event is first sent to the underlying `View`; if not handled, it's managed as before.
2022-02-11Fix again bug with invalid ignore_files patternsFrancesco Abbate
The pattern cannot be tested in advance as it seems that Lua inspect the pattern only partially, the part that is actually used. We resort to use pcall to catch any error when using the pattern.
2022-01-30Merge branch 'master' of https://github.com/lite-xl/lite-xl into improvementsDheisom Gomes
2022-01-28Go back to `common.match_pattern` and use `table.unpack` directly on ↵Dheisom Gomes
function `core.add_thread`
2022-01-28Error correction getting "unpack" functionDheisom Gomes
2022-01-28Added support to use a array of regex to ignore filesDheisom Gomes
2022-01-28Added support to pass extra arguments to functions on core.add_threadDheisom Gomes
2022-01-25Do no error out on malformed ignore patternsmerge-master-2.0Francesco Abbate
2022-01-24Fix problem with project module save hookFrancesco Abbate
2022-01-22Remove unused whitespace_replacements functionFrancesco Abbate
2022-01-19Merge branch 'master-2.0'Francesco Abbate
2022-01-18Merge pull request #743 from takase1121/better-logviewAdam
multiple improvements to logging
2022-01-18Remove remaining debug messageFrancesco Abbate
2022-01-13Treat final '/' or '/$' in ignore rule as part of the patternFrancesco Abbate
Evolve the rule for directory in ignore_files to be more natural and easy to understand. When a final '/' or '/$' is found we consider the pattern to match a directory and the pattern is not modifed. In turns, is used, before matching a directory's name a final '/' is appended to its name before checking if it matches the pattern. With the previous rule a final '/' in the pattern meant also a directory but the '/' was removed from the pattern.
2022-01-12Fix project files reading with symlinkfix-dir-monitor-symlinksFrancesco Abbate
2022-01-10Ensure config.plugins are restored on new configFrancesco Abbate
When a user's or project's module configuration file is changed we make sure that the config.plugins fields are all restored so that all plugins already loaded can continue to work.
2022-01-09Ensure project rescan thread is terminatedFrancesco Abbate
When changing a project we need to ensure that the old threads are no longer run.