aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/detectindent.lua
AgeCommit message (Collapse)Author
2022-08-16Allow command predicates to manage parameters passed to the commandsGuldoman
When a command is performed with parameters, those are now passed to the predicate. The predicate can then return, after the validity boolean, any other value that will then be passed to the actual command. If the predicate only returns the validity boolean, the original parameters are passed through to the actual command. This allows predicates to manipulate the received parameters, and allows them to pass the result of an expensive computation to the actual command, which won't have to recalculate it. String and table predicates will now also return `core.active_view`.
2022-05-31Merge pull request #1004 from Guldoman/PR_commandview_optionsJefferson González
Add options table to `CommandView:enter`
2022-05-31plugins: dropped --lite-xl version tagjgmdev
2022-05-30Use new `CommandView:enter` options tableGuldoman
2022-04-03Bumping version numbers.Adam Harrison
2022-03-22Re-enabled comment cache.Adam Harrison
2022-03-22Fixed anonyous syntaxes.Adam Harrison
2022-03-17plugin detectindent: pre-compile regexesjgmdev
2022-03-15plugin detectident: fixes and improvementsjgmdev
* Improved performance 67x by not using the tokenizer, this means that now opening files or saving them where indentation is re-detected is much more faster. * Improved the algorithm to detect the space size.
2021-11-20Adapt `detectindent` to the new indentation architectureGuldoman
2021-09-07Add commands to manage tab styleGuldoman
2021-09-07Don't use threads in `detectindent`Guldoman
As it's execution only happens on load/save.
2021-09-07Use configured indent values if `detectindent` can't detect themGuldoman
2021-09-07Update `detectindent` cache only after saving/reloadingGuldoman
Before, if the indent wasn't fully detected, `detectindent` would try to update every second. On files with very long lines this would cause stutters. Now the indent is updated only once after saving/reloading.
2021-08-172.0 changelog and modversion updates.Adam Harrison
2021-05-27Reduce number of used lines in detectindentFrancesco Abbate
2021-05-27Use thread in detectindent pluginFrancesco Abbate
2021-05-17Fix error with previous commitFrancesco Abbate
Error was introduced with PR: https://github.com/franko/lite-xl/pull/190
2021-05-17Fixed a bug where if detectindent is paired with another plugin that hooks ↵Adam
the event, it'll overwrite the other plugin's functions. (#190)
2021-05-05Introduce new plugin versioning tag mod-versionFrancesco Abbate
New plugins should use the version tag: -- mod-version: 1 The old version tag "-- lite-xl 1.16" will be considerer equivalent to mod-version 1.
2021-04-06Add plugin verification by version tagFrancesco Abbate
2021-04-06Logical test simplification in detectindentFrancesco Abbate
2021-04-05Add hook function for Doc changesFrancesco Abbate
2021-02-20Fix indent spaces/tabs labelingFrancesco Abbate
2021-02-19Automatic keep adjusting indent sizeFrancesco Abbate
When too few lines keep adjusting indent size
2021-02-19Adjust line numbers for detect indentFrancesco Abbate
2021-02-18Improve detectindent to skip commentsFrancesco Abbate
2020-11-21Include detect-indent improved plugin into Lite XLFrancesco Abbate