From 8215ca9c01bb3a1c38afe96407e0d3413913c162 Mon Sep 17 00:00:00 2001 From: liquidev Date: Fri, 12 Mar 2021 22:27:33 +0100 Subject: updated indentguide with Lite XL support --- plugins/indentguide.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'plugins/indentguide.lua') diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua index daf7d8b..db57f9e 100644 --- a/plugins/indentguide.lua +++ b/plugins/indentguide.lua @@ -34,12 +34,16 @@ local draw_line_text = DocView.draw_line_text function DocView:draw_line_text(idx, x, y) local spaces = get_line_indent_guide_spaces(self.doc, idx) - local sw = self:get_font():get_width(" ") local w = math.ceil(1 * SCALE) local h = self:get_line_height() - for i = 0, spaces - 1, config.indent_size do + local sspaces = "" + local font = self:get_font() + local ss = font:subpixel_scale() + for _ = 0, spaces - 1, config.indent_size do local color = style.guide or style.selection - renderer.draw_rect(x + sw * i, y, w, h, color) + local sw = font:get_width_subpixel(sspaces) / ss + renderer.draw_rect(x + sw, y, w, h, color) + sspaces = sspaces .. (' '):rep(config.indent_size) end draw_line_text(self, idx, x, y) end -- cgit v1.2.3 From 5af19bb2c7ed14ba1894095fc1469e0078302d9e Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 9 Apr 2021 17:12:19 +0200 Subject: Verify and version-tag more plugins --- README.md | 4 ++-- plugins/eval.lua | 1 + plugins/exec.lua | 1 + plugins/ghmarkdown.lua | 1 + plugins/gitstatus.lua | 1 + plugins/gofmt.lua | 1 + plugins/hidelinenumbers.lua | 1 + plugins/hidestatus.lua | 1 + plugins/indentguide.lua | 1 + plugins/lastproject.lua | 29 ----------------------------- plugins/lfautoinsert.lua | 1 + plugins/linecopypaste.lua | 1 + plugins/lineguide.lua | 1 + plugins/macmodkeys.lua | 1 + plugins/markers.lua | 1 + plugins/motiontrail.lua | 1 + 16 files changed, 16 insertions(+), 31 deletions(-) delete mode 100644 plugins/lastproject.lua (limited to 'plugins/indentguide.lua') diff --git a/README.md b/README.md index e224d53..ed5b726 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ with the official version of lite, format the name in italic.* Plugin | Description -------|----------------------------------------- [`autoinsert`](plugins/autoinsert.lua?raw=1) | Automatically inserts closing brackets and quotes -*[`autosave`](plugins/autosave.lua?raw=1)* | Automatically saves files when they are changed +*[`autosave`](plugins/autosave.lua?raw=1)* | Automatically saves files when they are changed [`autowrap`](plugins/autowrap.lua?raw=1) | Automatically hardwraps lines when typing *[`bigclock`](plugins/bigclock.lua?raw=1)* | Shows the current time and date in a view with large text *([screenshot](https://user-images.githubusercontent.com/3920290/82752891-3318df00-9db9-11ea-803f-261d80d5cf53.png))* [`black`](https://git.sr.ht/~tmpod/black-lite)* | Integrates the [black](https://github.com/psf/black) Python formatter with lite @@ -73,7 +73,7 @@ Plugin | Description [`language_teal`](plugins/language_teal.lua?raw=1) | Syntax for the [Teal](https://github.com/teal-language/tl) programming language, a typed dialect of Lua. [`language_tex`](plugins/language_tex.lua?raw=1) | Syntax for the [LaTeX](https://www.latex-project.org/) typesetting language [`language_wren`](plugins/language_wren.lua?raw=1) | Syntax for the [Wren](http://wren.io/) programming language -[`lastproject`](plugins/lastproject.lua?raw=1) | Loads the last loaded project if lite is launched without any arguments +~~[`lastproject`](plugins/lastproject.lua?raw=1)~~ | Integrated with lite-xl ~~Loads the last loaded project if lite is launched without any arguments~~ [`lfautoinsert`](plugins/lfautoinsert.lua?raw=1) | Automatically inserts indentation and closing bracket/text after newline [`linecopypaste`](plugins/linecopypaste.lua?raw=1) | Copy, cut and paste the current line when nothing is selected [*`lineguide`*](plugins/lineguide.lua?raw=1) | Displays a line-guide at the line limit offset *([screenshot](https://user-images.githubusercontent.com/3920290/81476159-2cf70000-9208-11ea-928b-9dae3884c477.png))* diff --git a/plugins/eval.lua b/plugins/eval.lua index 54e08ba..2444454 100644 --- a/plugins/eval.lua +++ b/plugins/eval.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/exec.lua b/plugins/exec.lua index fe87afc..82a94c3 100644 --- a/plugins/exec.lua +++ b/plugins/exec.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/ghmarkdown.lua b/plugins/ghmarkdown.lua index 0f49c02..249e459 100644 --- a/plugins/ghmarkdown.lua +++ b/plugins/ghmarkdown.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index a58fd0f..849567d 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local config = require "core.config" local style = require "core.style" diff --git a/plugins/gofmt.lua b/plugins/gofmt.lua index 11c90b9..b730431 100644 --- a/plugins/gofmt.lua +++ b/plugins/gofmt.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/hidelinenumbers.lua b/plugins/hidelinenumbers.lua index 206bd23..7eb496d 100644 --- a/plugins/hidelinenumbers.lua +++ b/plugins/hidelinenumbers.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/hidestatus.lua b/plugins/hidestatus.lua index 5c0bb15..9dcc352 100644 --- a/plugins/hidestatus.lua +++ b/plugins/hidestatus.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local command = require "core.command" local StatusView = require "core.statusview" diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua index db57f9e..184c37f 100644 --- a/plugins/indentguide.lua +++ b/plugins/indentguide.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local style = require "core.style" local config = require "core.config" local DocView = require "core.docview" diff --git a/plugins/lastproject.lua b/plugins/lastproject.lua deleted file mode 100644 index 5fb23bd..0000000 --- a/plugins/lastproject.lua +++ /dev/null @@ -1,29 +0,0 @@ -local core = require "core" - -local last_project_filename = EXEDIR .. PATHSEP .. ".lite_last_project" - - --- load last project path -local fp = io.open(last_project_filename) -local project_path -if fp then - project_path = fp:read("*a") - fp:close() -end - - --- save current project path -local fp = io.open(last_project_filename, "w") -if nil ~= fp then - fp:write(system.absolute_path ".") - fp:close() -end - - --- restart using last project path if we had no commandline arguments and could --- find a last-project file -if #ARGS == 1 and project_path then - system.exec(string.format("%s %q", EXEFILE, project_path)) - core.quit(true) -end - diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index 0ea7b9d..d4792e0 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" local config = require "core.config" diff --git a/plugins/linecopypaste.lua b/plugins/linecopypaste.lua index eb6f375..39d18f9 100755 --- a/plugins/linecopypaste.lua +++ b/plugins/linecopypaste.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/lineguide.lua b/plugins/lineguide.lua index 7669c52..b3828bf 100644 --- a/plugins/lineguide.lua +++ b/plugins/lineguide.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local config = require "core.config" local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/macmodkeys.lua b/plugins/macmodkeys.lua index 69028ab..3f24128 100644 --- a/plugins/macmodkeys.lua +++ b/plugins/macmodkeys.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local keymap = require "core.keymap" local on_key_pressed = keymap.on_key_pressed diff --git a/plugins/markers.lua b/plugins/markers.lua index 6e397d7..c4ca9a6 100644 --- a/plugins/markers.lua +++ b/plugins/markers.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 -- Markers plugin for lite text editor -- original implementation by Petri Häkkinen diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua index e688e1b..8074f58 100644 --- a/plugins/motiontrail.lua +++ b/plugins/motiontrail.lua @@ -1,3 +1,4 @@ +-- lite-xl 1.16 local core = require "core" local config = require "core.config" local style = require "core.style" -- cgit v1.2.3 From c39bd47899c2c850813cab4e0eb0cc1aeeea389a Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sat, 22 May 2021 19:03:28 +0200 Subject: Add new tag modversion --- plugins/autoinsert.lua | 2 +- plugins/autosave.lua | 2 +- plugins/autowrap.lua | 2 +- plugins/bigclock.lua | 2 +- plugins/bracketmatch.lua | 2 +- plugins/centerdoc.lua | 2 +- plugins/colorpreview.lua | 2 +- plugins/copyfilelocation.lua | 2 +- plugins/datetimestamps.lua | 2 +- plugins/dragdropselected.lua | 2 +- plugins/eval.lua | 2 +- plugins/exec.lua | 2 +- plugins/ghmarkdown.lua | 2 +- plugins/gitstatus.lua | 2 +- plugins/gofmt.lua | 2 +- plugins/hidelinenumbers.lua | 2 +- plugins/hidestatus.lua | 2 +- plugins/indentguide.lua | 2 +- plugins/language_angelscript.lua | 2 +- plugins/language_batch.lua | 2 +- plugins/language_cmake.lua | 2 +- plugins/language_cpp.lua | 2 +- plugins/language_csharp.lua | 2 +- plugins/language_d.lua | 2 +- plugins/language_dart.lua | 2 +- plugins/language_elixir.lua | 2 +- plugins/language_elm.lua | 2 +- plugins/language_fe.lua | 2 +- plugins/language_fennel.lua | 2 +- plugins/language_gdscript.lua | 2 +- plugins/language_glsl.lua | 2 +- plugins/language_go.lua | 2 +- plugins/language_hlsl.lua | 2 +- plugins/language_hs.lua | 2 +- plugins/language_java.lua | 2 +- plugins/language_jiyu.lua | 2 +- plugins/language_jsx.lua | 2 +- plugins/language_liquid.lua | 2 +- plugins/language_make.lua | 2 +- plugins/language_meson.lua | 2 +- plugins/language_moon.lua | 2 +- plugins/language_nim.lua | 2 +- plugins/language_objc.lua | 2 +- plugins/language_odin.lua | 2 +- plugins/language_perl.lua | 2 +- plugins/language_php.lua | 2 +- plugins/language_phps.lua | 2 +- plugins/language_pico8.lua | 2 +- plugins/language_powershell.lua | 2 +- plugins/language_psql.lua | 2 +- plugins/language_ruby.lua | 2 +- plugins/language_rust.lua | 2 +- plugins/language_sass.lua | 2 +- plugins/language_sh.lua | 2 +- plugins/language_teal.lua | 2 +- plugins/language_tex.lua | 2 +- plugins/language_wren.lua | 2 +- plugins/language_zig.lua | 2 +- plugins/lfautoinsert.lua | 2 +- plugins/linecopypaste.lua | 2 +- plugins/lineguide.lua | 2 +- plugins/macmodkeys.lua | 2 +- plugins/markers.lua | 2 +- plugins/memoryusage.lua | 2 +- plugins/motiontrail.lua | 2 +- plugins/openfilelocation.lua | 2 +- plugins/openselected.lua | 2 +- plugins/rainbowparen.lua | 2 +- plugins/restoretabs.lua | 2 +- plugins/scale.lua | 2 +- plugins/scalestatus.lua | 2 +- plugins/selectionhighlight.lua | 2 +- plugins/sort.lua | 2 +- plugins/spellcheck.lua | 2 +- plugins/tabnumbers.lua | 2 +- plugins/themeselect.lua | 2 +- plugins/titleize.lua | 2 +- plugins/togglesnakecamel.lua | 2 +- plugins/unboundedscroll.lua | 2 +- 79 files changed, 79 insertions(+), 79 deletions(-) (limited to 'plugins/indentguide.lua') diff --git a/plugins/autoinsert.lua b/plugins/autoinsert.lua index 2bb0753..7af2209 100644 --- a/plugins/autoinsert.lua +++ b/plugins/autoinsert.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local translate = require "core.doc.translate" local config = require "core.config" diff --git a/plugins/autosave.lua b/plugins/autosave.lua index ef4ab19..2759ba6 100644 --- a/plugins/autosave.lua +++ b/plugins/autosave.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local config = require "core.config" local Doc = require "core.doc" diff --git a/plugins/autowrap.lua b/plugins/autowrap.lua index 9df59a5..1d5d08d 100644 --- a/plugins/autowrap.lua +++ b/plugins/autowrap.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 require "plugins.reflow" local config = require "core.config" local command = require "core.command" diff --git a/plugins/bigclock.lua b/plugins/bigclock.lua index 1419e00..ac44c9f 100644 --- a/plugins/bigclock.lua +++ b/plugins/bigclock.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local style = require "core.style" local command = require "core.command" diff --git a/plugins/bracketmatch.lua b/plugins/bracketmatch.lua index 9566c02..e6a740d 100644 --- a/plugins/bracketmatch.lua +++ b/plugins/bracketmatch.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local style = require "core.style" local command = require "core.command" diff --git a/plugins/centerdoc.lua b/plugins/centerdoc.lua index ee4bb2b..c60c2dd 100644 --- a/plugins/centerdoc.lua +++ b/plugins/centerdoc.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local config = require "core.config" local DocView = require "core.docview" diff --git a/plugins/colorpreview.lua b/plugins/colorpreview.lua index 1289357..370d1d8 100644 --- a/plugins/colorpreview.lua +++ b/plugins/colorpreview.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local common = require "core.common" local DocView = require "core.docview" diff --git a/plugins/copyfilelocation.lua b/plugins/copyfilelocation.lua index 48520b8..9f33ee1 100644 --- a/plugins/copyfilelocation.lua +++ b/plugins/copyfilelocation.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local config = require "core.config" diff --git a/plugins/datetimestamps.lua b/plugins/datetimestamps.lua index e1d7d3b..9ce425a 100644 --- a/plugins/datetimestamps.lua +++ b/plugins/datetimestamps.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local config = require "core.config" local command = require "core.command" diff --git a/plugins/dragdropselected.lua b/plugins/dragdropselected.lua index 5364fa4..aeacbd3 100644 --- a/plugins/dragdropselected.lua +++ b/plugins/dragdropselected.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 --[[ dragdropselected.lua provides basic drag and drop of selected text (in same document) diff --git a/plugins/eval.lua b/plugins/eval.lua index 2444454..ae13a14 100644 --- a/plugins/eval.lua +++ b/plugins/eval.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/exec.lua b/plugins/exec.lua index 82a94c3..d1ed6a8 100644 --- a/plugins/exec.lua +++ b/plugins/exec.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/ghmarkdown.lua b/plugins/ghmarkdown.lua index 249e459..6e81daa 100644 --- a/plugins/ghmarkdown.lua +++ b/plugins/ghmarkdown.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index 849567d..904cd38 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local config = require "core.config" local style = require "core.style" diff --git a/plugins/gofmt.lua b/plugins/gofmt.lua index b730431..fd204a6 100644 --- a/plugins/gofmt.lua +++ b/plugins/gofmt.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/hidelinenumbers.lua b/plugins/hidelinenumbers.lua index 7eb496d..5ed23b3 100644 --- a/plugins/hidelinenumbers.lua +++ b/plugins/hidelinenumbers.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/hidestatus.lua b/plugins/hidestatus.lua index 9dcc352..fc687cb 100644 --- a/plugins/hidestatus.lua +++ b/plugins/hidestatus.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local command = require "core.command" local StatusView = require "core.statusview" diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua index 184c37f..f1b7cf7 100644 --- a/plugins/indentguide.lua +++ b/plugins/indentguide.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local style = require "core.style" local config = require "core.config" local DocView = require "core.docview" diff --git a/plugins/language_angelscript.lua b/plugins/language_angelscript.lua index 48d68e1..d34a0eb 100644 --- a/plugins/language_angelscript.lua +++ b/plugins/language_angelscript.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_batch.lua b/plugins/language_batch.lua index 29de0fe..441a367 100644 --- a/plugins/language_batch.lua +++ b/plugins/language_batch.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" -- batch syntax for lite diff --git a/plugins/language_cmake.lua b/plugins/language_cmake.lua index a70298c..9f4df2f 100644 --- a/plugins/language_cmake.lua +++ b/plugins/language_cmake.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_cpp.lua b/plugins/language_cpp.lua index d1656b4..bb1f347 100644 --- a/plugins/language_cpp.lua +++ b/plugins/language_cpp.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 pcall(require, "plugins.language_c") local syntax = require "core.syntax" diff --git a/plugins/language_csharp.lua b/plugins/language_csharp.lua index 2988506..b6ee8e0 100644 --- a/plugins/language_csharp.lua +++ b/plugins/language_csharp.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_d.lua b/plugins/language_d.lua index 704fecf..a054de6 100644 --- a/plugins/language_d.lua +++ b/plugins/language_d.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_dart.lua b/plugins/language_dart.lua index 7aee8e9..2e3cfc3 100644 --- a/plugins/language_dart.lua +++ b/plugins/language_dart.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_elixir.lua b/plugins/language_elixir.lua index 280c2ce..8dd7cc9 100644 --- a/plugins/language_elixir.lua +++ b/plugins/language_elixir.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_elm.lua b/plugins/language_elm.lua index 09e474f..c5f2223 100644 --- a/plugins/language_elm.lua +++ b/plugins/language_elm.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_fe.lua b/plugins/language_fe.lua index 416ec0d..f1aeef4 100644 --- a/plugins/language_fe.lua +++ b/plugins/language_fe.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_fennel.lua b/plugins/language_fennel.lua index 62c0913..fbf1ba6 100644 --- a/plugins/language_fennel.lua +++ b/plugins/language_fennel.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- Support for the Fennel programming language: https://fennel-lang.org -- Covers all the keywords up to Fennel version 0.4.0 diff --git a/plugins/language_gdscript.lua b/plugins/language_gdscript.lua index dd40b10..c638ab9 100644 --- a/plugins/language_gdscript.lua +++ b/plugins/language_gdscript.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- Support for the GDScript programming language: https://godotengine.org/ -- Covers the most used keywords up to Godot version 3.2.x diff --git a/plugins/language_glsl.lua b/plugins/language_glsl.lua index 55f07b1..1f57a06 100644 --- a/plugins/language_glsl.lua +++ b/plugins/language_glsl.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local style = require "core.style" local common = require "core.common" diff --git a/plugins/language_go.lua b/plugins/language_go.lua index bdc8436..76289bd 100644 --- a/plugins/language_go.lua +++ b/plugins/language_go.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_hlsl.lua b/plugins/language_hlsl.lua index 428a6f1..45128d6 100644 --- a/plugins/language_hlsl.lua +++ b/plugins/language_hlsl.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local style = require "core.style" local common = require "core.common" diff --git a/plugins/language_hs.lua b/plugins/language_hs.lua index 8d7110e..5f69a5a 100644 --- a/plugins/language_hs.lua +++ b/plugins/language_hs.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_java.lua b/plugins/language_java.lua index e041fae..42ad147 100644 --- a/plugins/language_java.lua +++ b/plugins/language_java.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_jiyu.lua b/plugins/language_jiyu.lua index 788faba..a433170 100644 --- a/plugins/language_jiyu.lua +++ b/plugins/language_jiyu.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_jsx.lua b/plugins/language_jsx.lua index c6d3ba5..2648c68 100644 --- a/plugins/language_jsx.lua +++ b/plugins/language_jsx.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- Almost identical to JS, with the exception that / shouldn't denote a regex. Current JS syntax highlighter will highlight half the document due to closing tags. local syntax = require "core.syntax" diff --git a/plugins/language_liquid.lua b/plugins/language_liquid.lua index f097213..5cc7573 100644 --- a/plugins/language_liquid.lua +++ b/plugins/language_liquid.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" local liquid_syntax = { diff --git a/plugins/language_make.lua b/plugins/language_make.lua index a61f609..21e9df0 100644 --- a/plugins/language_make.lua +++ b/plugins/language_make.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_meson.lua b/plugins/language_meson.lua index 97fde72..c1aa4b1 100644 --- a/plugins/language_meson.lua +++ b/plugins/language_meson.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_moon.lua b/plugins/language_moon.lua index 3e81767..ef8d3bd 100644 --- a/plugins/language_moon.lua +++ b/plugins/language_moon.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_nim.lua b/plugins/language_nim.lua index ded8792..d42cb4a 100644 --- a/plugins/language_nim.lua +++ b/plugins/language_nim.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" local patterns = {} diff --git a/plugins/language_objc.lua b/plugins/language_objc.lua index 5be940e..c2b2eee 100644 --- a/plugins/language_objc.lua +++ b/plugins/language_objc.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_odin.lua b/plugins/language_odin.lua index 58f4b39..52a24e0 100644 --- a/plugins/language_odin.lua +++ b/plugins/language_odin.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_perl.lua b/plugins/language_perl.lua index cb414d4..1332464 100644 --- a/plugins/language_perl.lua +++ b/plugins/language_perl.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_php.lua b/plugins/language_php.lua index ca6b315..0db81a3 100644 --- a/plugins/language_php.lua +++ b/plugins/language_php.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 --[[ language_php.lua provides php syntax support allowing mixed html, css and js diff --git a/plugins/language_phps.lua b/plugins/language_phps.lua index 865233f..7476a8f 100644 --- a/plugins/language_phps.lua +++ b/plugins/language_phps.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 --[[ language_phps.lua complement to language_php.lua providing the php syntax support diff --git a/plugins/language_pico8.lua b/plugins/language_pico8.lua index a1c41df..c8ba027 100644 --- a/plugins/language_pico8.lua +++ b/plugins/language_pico8.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_powershell.lua b/plugins/language_powershell.lua index 61fecd1..6cd0968 100644 --- a/plugins/language_powershell.lua +++ b/plugins/language_powershell.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_psql.lua b/plugins/language_psql.lua index dc65120..389f32a 100644 --- a/plugins/language_psql.lua +++ b/plugins/language_psql.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" -- In sql symbols can be lower case and upper case diff --git a/plugins/language_ruby.lua b/plugins/language_ruby.lua index e010f91..9661b1b 100644 --- a/plugins/language_ruby.lua +++ b/plugins/language_ruby.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index 466901f..4d0fef1 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_sass.lua b/plugins/language_sass.lua index 3f9988b..ce4aa2b 100644 --- a/plugins/language_sass.lua +++ b/plugins/language_sass.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua index 9b04008..684b070 100644 --- a/plugins/language_sh.lua +++ b/plugins/language_sh.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_teal.lua b/plugins/language_teal.lua index 8a6c560..5b46fd8 100644 --- a/plugins/language_teal.lua +++ b/plugins/language_teal.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_tex.lua b/plugins/language_tex.lua index 3ad607c..3f9a5fa 100644 --- a/plugins/language_tex.lua +++ b/plugins/language_tex.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_wren.lua b/plugins/language_wren.lua index 5940b40..62ee24f 100644 --- a/plugins/language_wren.lua +++ b/plugins/language_wren.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_zig.lua b/plugins/language_zig.lua index 40ecb01..2c098af 100644 --- a/plugins/language_zig.lua +++ b/plugins/language_zig.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index 8a9c5ba..99f7e45 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local config = require "core.config" diff --git a/plugins/linecopypaste.lua b/plugins/linecopypaste.lua index 39d18f9..a4a5e60 100755 --- a/plugins/linecopypaste.lua +++ b/plugins/linecopypaste.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/lineguide.lua b/plugins/lineguide.lua index b3828bf..2cf0b42 100644 --- a/plugins/lineguide.lua +++ b/plugins/lineguide.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local config = require "core.config" local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/macmodkeys.lua b/plugins/macmodkeys.lua index 3f24128..14f8995 100644 --- a/plugins/macmodkeys.lua +++ b/plugins/macmodkeys.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local keymap = require "core.keymap" local on_key_pressed = keymap.on_key_pressed diff --git a/plugins/markers.lua b/plugins/markers.lua index c4ca9a6..f4a70d6 100644 --- a/plugins/markers.lua +++ b/plugins/markers.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- Markers plugin for lite text editor -- original implementation by Petri Häkkinen diff --git a/plugins/memoryusage.lua b/plugins/memoryusage.lua index 2a87275..ee472dd 100644 --- a/plugins/memoryusage.lua +++ b/plugins/memoryusage.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- original implementation by AqilCont local style = require "core.style" local StatusView = require "core.statusview" diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua index 8074f58..6f448bb 100644 --- a/plugins/motiontrail.lua +++ b/plugins/motiontrail.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local config = require "core.config" local style = require "core.style" diff --git a/plugins/openfilelocation.lua b/plugins/openfilelocation.lua index 0cf26f1..48877bd 100644 --- a/plugins/openfilelocation.lua +++ b/plugins/openfilelocation.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local config = require "core.config" diff --git a/plugins/openselected.lua b/plugins/openselected.lua index f7dc917..ccaa8e3 100644 --- a/plugins/openselected.lua +++ b/plugins/openselected.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/rainbowparen.lua b/plugins/rainbowparen.lua index 6154b34..b6075ac 100644 --- a/plugins/rainbowparen.lua +++ b/plugins/rainbowparen.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local tokenizer = require "core.tokenizer" local style = require "core.style" local common = require "core.common" diff --git a/plugins/restoretabs.lua b/plugins/restoretabs.lua index 48bb6ea..9607169 100644 --- a/plugins/restoretabs.lua +++ b/plugins/restoretabs.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 -- Not perfect, because we can't actually figure out when something closes, but should be good enough, so long as we check the list of open views. -- Maybe find a better way to get at "Node"? local core = require "core" diff --git a/plugins/scale.lua b/plugins/scale.lua index 658cb98..78dc9e2 100644 --- a/plugins/scale.lua +++ b/plugins/scale.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local common = require "core.common" local command = require "core.command" diff --git a/plugins/scalestatus.lua b/plugins/scalestatus.lua index 248c8a4..2981523 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 --[[ scalestatus.lua displays current scale (zoom) in status view diff --git a/plugins/selectionhighlight.lua b/plugins/selectionhighlight.lua index adad725..fd10239 100644 --- a/plugins/selectionhighlight.lua +++ b/plugins/selectionhighlight.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/sort.lua b/plugins/sort.lua index 6912a5a..34b2b93 100644 --- a/plugins/sort.lua +++ b/plugins/sort.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local translate = require "core.doc.translate" diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua index eedf318..975ef91 100644 --- a/plugins/spellcheck.lua +++ b/plugins/spellcheck.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local style = require "core.style" local config = require "core.config" diff --git a/plugins/tabnumbers.lua b/plugins/tabnumbers.lua index 29c3f8c..70da707 100644 --- a/plugins/tabnumbers.lua +++ b/plugins/tabnumbers.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local common = require "core.common" local core = require "core" local style = require "core.style" diff --git a/plugins/themeselect.lua b/plugins/themeselect.lua index 2fab481..cafc1be 100644 --- a/plugins/themeselect.lua +++ b/plugins/themeselect.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" -- Load a specific theme when the filename of an active document does match diff --git a/plugins/titleize.lua b/plugins/titleize.lua index a9ea7a5..ac64f44 100644 --- a/plugins/titleize.lua +++ b/plugins/titleize.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" diff --git a/plugins/togglesnakecamel.lua b/plugins/togglesnakecamel.lua index 994ffd0..0ba3ce9 100644 --- a/plugins/togglesnakecamel.lua +++ b/plugins/togglesnakecamel.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/unboundedscroll.lua b/plugins/unboundedscroll.lua index 4429b61..18d26a2 100644 --- a/plugins/unboundedscroll.lua +++ b/plugins/unboundedscroll.lua @@ -1,4 +1,4 @@ --- lite-xl 1.16 +-- mod-version:1 -- lite-xl 1.16 local DocView = require "core.docview" function DocView.clamp_scroll_position() -- cgit v1.2.3