From fb647f8f0d972e85ac323b12eb65edf9c56b48cb Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 13 Jul 2021 10:50:04 -0400 Subject: Updated all lua plugins to be compatible with 2.0. --- plugins/copyfilelocation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/copyfilelocation.lua') diff --git a/plugins/copyfilelocation.lua b/plugins/copyfilelocation.lua index 9f33ee1..0f395ea 100644 --- a/plugins/copyfilelocation.lua +++ b/plugins/copyfilelocation.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 1.16 +-- mod-version:1 -- lite-xl 2.00 local core = require "core" local command = require "core.command" local config = require "core.config" -- cgit v1.2.3 From 466798679e7a2889622a491c776530c06668ca9f Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 13 Jul 2021 10:47:39 -0400 Subject: Namespaced plugin configs. --- plugins/autoinsert.lua | 10 ++++---- plugins/autosave.lua | 6 ++--- plugins/autowrap.lua | 4 +-- plugins/bigclock.lua | 14 ++++++----- plugins/copyfilelocation.lua | 2 -- plugins/datetimestamps.lua | 23 ++++++----------- plugins/lfautoinsert.lua | 8 +++--- plugins/minimap.lua | 56 +++++++++++++++++++++--------------------- plugins/motiontrail.lua | 4 +-- plugins/openfilelocation.lua | 11 +++++---- plugins/scalestatus.lua | 4 +-- plugins/selectionhighlight.lua | 1 - plugins/spellcheck.lua | 15 +++++------ 13 files changed, 76 insertions(+), 82 deletions(-) (limited to 'plugins/copyfilelocation.lua') diff --git a/plugins/autoinsert.lua b/plugins/autoinsert.lua index fd2888a..8be47c9 100644 --- a/plugins/autoinsert.lua +++ b/plugins/autoinsert.lua @@ -7,18 +7,18 @@ local command = require "core.command" local keymap = require "core.keymap" -config.autoinsert_map = { +config.plugins.autoinsert = { map = { ["["] = "]", ["{"] = "}", ["("] = ")", ['"'] = '"', ["'"] = "'", ["`"] = "`", -} +} } local function is_closer(chr) - for _, v in pairs(config.autoinsert_map) do + for _, v in pairs(config.plugins.autoinsert.map) do if v == chr then return true end @@ -37,7 +37,7 @@ end local on_text_input = DocView.on_text_input function DocView:on_text_input(text) - local mapping = config.autoinsert_map[text] + local mapping = config.plugins.autoinsert.map[text] -- prevents plugin from operating on `CommandView` if getmetatable(self) ~= DocView then @@ -89,7 +89,7 @@ command.add(predicate, { local doc = core.active_view.doc local l, c = doc:get_selection() local chr = doc:get_char(l, c) - if config.autoinsert_map[doc:get_char(l, c - 1)] and is_closer(chr) then + if config.plugins.autoinsert.map[doc:get_char(l, c - 1)] and is_closer(chr) then doc:delete_to(1) end command.perform "doc:backspace" diff --git a/plugins/autosave.lua b/plugins/autosave.lua index e64ba0d..ef1985d 100644 --- a/plugins/autosave.lua +++ b/plugins/autosave.lua @@ -10,18 +10,18 @@ local last_keypress = os.time() local looping = false local on_text_change = Doc.on_text_change -- the approximate amount of time, in seconds, that it takes to trigger an autosave -config.autosave_timeout = 1 +config.plugins.autosave = { timeout = 1 } local function loop_for_save() while looping do - if os.difftime(os.time(), last_keypress) >= config.autosave_timeout then + if os.difftime(os.time(), last_keypress) >= config.plugins.autosave.timeout then command.perform "doc:save" -- stop loop looping = false end -- wait the timeout. may cause timeout to be slightly imprescise - coroutine.yield(config.autosave_timeout) + coroutine.yield(config.plugins.autosave.timeout) end end diff --git a/plugins/autowrap.lua b/plugins/autowrap.lua index 090e338..acfd37f 100644 --- a/plugins/autowrap.lua +++ b/plugins/autowrap.lua @@ -4,7 +4,7 @@ local config = require "core.config" local command = require "core.command" local DocView = require "core.docview" -config.autowrap_files = { "%.md$", "%.txt$" } +config.plugins.autowrap = { files = { "%.md$", "%.txt$" } } local on_text_input = DocView.on_text_input @@ -15,7 +15,7 @@ DocView.on_text_input = function(self, ...) -- early-exit if the filename does not match a file type pattern local filename = self.doc.filename or "" local matched = false - for _, ptn in ipairs(config.autowrap_files) do + for _, ptn in ipairs(config.plugins.autowrap.files) do if filename:match(ptn) then matched = true break diff --git a/plugins/bigclock.lua b/plugins/bigclock.lua index c7e2eb1..62cbc0c 100644 --- a/plugins/bigclock.lua +++ b/plugins/bigclock.lua @@ -7,9 +7,11 @@ local config = require "core.config" local View = require "core.view" -config.bigclock_time_format = "%H:%M:%S" -config.bigclock_date_format = "%A, %d %B %Y" -config.bigclock_scale = 1 +config.plugins.bigclock = { + time_format = "%H:%M:%S", + date_format = "%A, %d %B %Y" + scale = 1 +} local ClockView = View:extend() @@ -28,7 +30,7 @@ end function ClockView:update_fonts() - local size = math.floor(self.size.x * 0.15 / 15) * 15 * config.bigclock_scale + local size = math.floor(self.size.x * 0.15 / 15) * 15 * config.plugins.bigclock.scale if self.font_size ~= size then self.time_font = renderer.font.load(DATADIR .. "/fonts/font.ttf", size) self.date_font = renderer.font.load(DATADIR .. "/fonts/font.ttf", size * 0.3) @@ -40,8 +42,8 @@ end function ClockView:update() - local time_text = os.date(config.bigclock_time_format) - local date_text = os.date(config.bigclock_date_format) + local time_text = os.date(config.plugins.bigclock.time_format) + local date_text = os.date(config.plugins.bigclock.date_format) if self.time_text ~= time_text or self.date_text ~= date_text then core.redraw = true self.time_text = time_text diff --git a/plugins/copyfilelocation.lua b/plugins/copyfilelocation.lua index 0f395ea..b370090 100644 --- a/plugins/copyfilelocation.lua +++ b/plugins/copyfilelocation.lua @@ -1,8 +1,6 @@ -- mod-version:1 -- lite-xl 2.00 local core = require "core" local command = require "core.command" -local config = require "core.config" - command.add("core.docview", { ["copy-file-location:copy-file-location"] = function() diff --git a/plugins/datetimestamps.lua b/plugins/datetimestamps.lua index 4d09e27..c1b1199 100644 --- a/plugins/datetimestamps.lua +++ b/plugins/datetimestamps.lua @@ -25,32 +25,25 @@ from https://www.lua.org/pil/22.1.html %y two-digit year (98) [00-99] %% the character `%´ --]] -config.datetimestamps_format_datestamp = "%Y%m%d" -config.datetimestamps_format_datetimestamp = "%Y%m%d_%H%M%S" -config.datetimestamps_format_timestamp = "%H%M%S" +config.plugins.datetimestamps = { + format_datestamp = "%Y%m%d" + format_datetimestamp = "%Y%m%d_%H%M%S" + format_timestamp = "%H%M%S" +} local function datestamp() - - local sOut = os.date(config.datetimestamps_format_datestamp) - + local sOut = os.date(config.plugins.datetimestamps.format_datestamp) core.active_view.doc:text_input(sOut) - end local function datetimestamp() - - local sOut = os.date(config.datetimestamps_format_datetimestamp) - + local sOut = os.date(config.plugins.datetimestamps.format_datetimestamp) core.active_view.doc:text_input(sOut) - end local function timestamp() - - local sOut = os.date(config.datetimestamps_format_timestamp) - + local sOut = os.date(config.plugins.datetimestamps.format_timestamp) core.active_view.doc:text_input(sOut) - end command.add("core.docview", { diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index bbfb60c..3a8369e 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -5,7 +5,7 @@ local common = require "core.common" local config = require "core.config" local keymap = require "core.keymap" -config.lfautoinsert_map = { +config.plugins.lfautoinsert = { map = { ["{%s*\n"] = "}", ["%(%s*\n"] = ")", ["%f[[]%[%s*\n"] = "]", @@ -36,11 +36,11 @@ config.lfautoinsert_map = { ["%[%[%s*\n"] = "]]" } }, -} +} } local function get_autoinsert_map(filename) local map = {} - for pattern, closing in pairs(config.lfautoinsert_map) do + for pattern, closing in pairs(config.plugins.lfautoinsert.map) do if type(closing) == "table" then if common.match_pattern(filename, closing.file_patterns) then for p, e in pairs(closing.map) do @@ -101,7 +101,7 @@ keymap.add { return { add = function(file_patterns, map) table.insert( - config.lfautoinsert_map, + config.plugins.lfautoinsert.map, { file_patterns = file_patterns, map=map } ) end diff --git a/plugins/minimap.lua b/plugins/minimap.lua index ecae5eb..01f93c5 100644 --- a/plugins/minimap.lua +++ b/plugins/minimap.lua @@ -6,26 +6,26 @@ local style = require "core.style" local DocView = require "core.docview" -- General plugin settings -config.minimap_enabled = true -config.minimap_width = 100 -config.minimap_instant_scroll = false -config.minimap_syntax_highlight = true -config.minimap_scale = 1 - --- how many spaces one tab is equivalent to -config.minimap_tab_width = 4 - -config.minimap_draw_background = true +config.plugins.minimap = { + enabled = true, + width = 100, + instant_scroll = false, + syntax_highlight = true, + scale = 1, + -- how many spaces one tab is equivalent to + tab_width = 4, + draw_background = true +} -- Configure size for rendering each char in the minimap -local char_height = 1 * SCALE * config.minimap_scale -local char_spacing = 0.8 * SCALE * config.minimap_scale -local line_spacing = 2 * SCALE * config.minimap_scale +local char_height = 1 * SCALE * config.plugins.minimap.scale +local char_spacing = 0.8 * SCALE * config.plugins.minimap.scale +local line_spacing = 2 * SCALE * config.plugins.minimap.scale -- Overloaded since the default implementation adds a extra x3 size of hotspot for the mouse to hit the scrollbar. local prev_scrollbar_overlaps_point = DocView.scrollbar_overlaps_point DocView.scrollbar_overlaps_point = function(self, x, y) - if not config.minimap_enabled then + if not config.plugins.minimap.enabled then return prev_scrollbar_overlaps_point(self, x, y) end @@ -46,7 +46,7 @@ end -- Overloaded with an extra check if the user clicked inside the minimap to automatically scroll to that line. local prev_on_mouse_pressed = DocView.on_mouse_pressed DocView.on_mouse_pressed = function(self, button, x, y, clicks) - if not config.minimap_enabled then + if not config.plugins.minimap.enabled then return prev_on_mouse_pressed(self, button, x, y, clicks) end @@ -100,7 +100,7 @@ DocView.on_mouse_pressed = function(self, button, x, y, clicks) -- if user didn't click on the visible area (ie not dragging), scroll accordingly if not hit_visible_area then - self:scroll_to_line(jump_to_line, false, config.minimap_instant_scroll) + self:scroll_to_line(jump_to_line, false, config.plugins.minimap.instant_scroll) return end @@ -114,7 +114,7 @@ end -- since the "scrollbar" essentially represents the lines visible in the content view. local prev_on_mouse_moved = DocView.on_mouse_moved DocView.on_mouse_moved = function(self, x, y, dx, dy) - if not config.minimap_enabled then + if not config.plugins.minimap.enabled then return prev_on_mouse_moved(self, x, y, dx, dy) end @@ -143,16 +143,16 @@ end -- not juse the scrollbar. local prev_get_scrollbar_rect = DocView.get_scrollbar_rect DocView.get_scrollbar_rect = function(self) - if not config.minimap_enabled then return prev_get_scrollbar_rect(self) end + if not config.plugins.minimap.enabled then return prev_get_scrollbar_rect(self) end - return self.position.x + self.size.x - config.minimap_width * SCALE, - self.position.y, config.minimap_width * SCALE, self.size.y + return self.position.x + self.size.x - config.plugins.minimap.width * SCALE, + self.position.y, config.plugins.minimap.width * SCALE, self.size.y end -- Overloaded so we can render the minimap in the "scrollbar area". local prev_draw_scrollbar = DocView.draw_scrollbar DocView.draw_scrollbar = function(self) - if not config.minimap_enabled then return prev_draw_scrollbar(self) end + if not config.plugins.minimap.enabled then return prev_draw_scrollbar(self) end local x, y, w, h = self:get_scrollbar_rect() @@ -190,7 +190,7 @@ DocView.draw_scrollbar = function(self) line_count - max_minmap_lines)) end - if config.minimap_draw_background then + if config.plugins.minimap.draw_background then renderer.draw_rect(x, y, w, h, style.minimap_background or style.background) end -- draw visual rect @@ -206,12 +206,12 @@ DocView.draw_scrollbar = function(self) -- we try to "batch" characters so that they can be rendered as just one rectangle instead of one for each. local batch_width = 0 local batch_start = x - local minimap_cutoff_x = x + config.minimap_width * SCALE + local minimap_cutoff_x = x + config.plugins.minimap.width * SCALE local batch_syntax_type = nil local function flush_batch(type) local old_color = color color = style.syntax[batch_syntax_type] - if config.minimap_syntax_highlight and color ~= nil then + if config.plugins.minimap.syntax_highlight and color ~= nil then -- fetch and dim colors color = {color[1], color[2], color[3], color[4] * 0.5} else @@ -226,7 +226,7 @@ DocView.draw_scrollbar = function(self) end -- render lines with syntax highlighting - if config.minimap_syntax_highlight then + if config.plugins.minimap.syntax_highlight then -- keep track of the highlight type, since this needs to break batches as well batch_syntax_type = nil @@ -252,7 +252,7 @@ DocView.draw_scrollbar = function(self) batch_start = batch_start + char_spacing elseif char == " " then flush_batch(type) - batch_start = batch_start + (char_spacing * config.minimap_tab_width) + batch_start = batch_start + (char_spacing * config.plugins.minimap.tab_width) elseif batch_start + batch_width > minimap_cutoff_x then flush_batch(type) break @@ -291,9 +291,9 @@ end command.add(nil, { ["minimap:toggle-visibility"] = function() - config.minimap_enabled = not config.minimap_enabled + config.plugins.minimap.enabled = not config.plugins.minimap.enabled end, ["minimap:toggle-syntax-highlighting"] = function() - config.minimap_syntax_highlight = not config.minimap_syntax_highlight + config.plugins.minimap.syntax_highlight = not config.plugins.minimap.syntax_highlight end }) diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua index 9bbca86..f5f3a90 100644 --- a/plugins/motiontrail.lua +++ b/plugins/motiontrail.lua @@ -4,7 +4,7 @@ local config = require "core.config" local style = require "core.style" local DocView = require "core.docview" -config.motiontrail_steps = 50 +config.plugins.motiontrail = { steps = 50 } local function lerp(a, b, t) @@ -32,7 +32,7 @@ function DocView:draw(...) if last_view == self and (x ~= last_x or y ~= last_y) then local lx = x - for i = 0, 1, 1 / config.motiontrail_steps do + for i = 0, 1, 1 / config.plugins.motiontrail.steps do local ix = lerp(x, last_x, i) local iy = lerp(y, last_y, i) local iw = math.max(w, math.ceil(math.abs(ix - lx))) diff --git a/plugins/openfilelocation.lua b/plugins/openfilelocation.lua index d6c03b1..69fe9fa 100644 --- a/plugins/openfilelocation.lua +++ b/plugins/openfilelocation.lua @@ -4,12 +4,13 @@ local command = require "core.command" local config = require "core.config" +config.plugins.openfilelocation = {} if PLATFORM == "Windows" then - config.filemanager = "explorer" + config.plugins.openfilelocation.filemanager = "explorer" elseif PLATFORM == "Mac OS X" then - config.filemanager = "open" + config.plugins.openfilelocation.filemanager = "open" else - config.filemanager = "xdg-open" + config.plugins.openfilelocation.filemanager = "xdg-open" end @@ -23,9 +24,9 @@ command.add("core.docview", { local folder = doc.filename:match("^(.*)[/\\].*$") or "." core.log("Opening \"%s\"", folder) if PLATFORM == "Windows" then - system.exec(string.format("%s %s", config.filemanager, folder)) + system.exec(string.format("%s %s", config.plugins.openfilelocation.filemanager, folder)) else - system.exec(string.format("%s %q", config.filemanager, folder)) + system.exec(string.format("%s %q", config.plugins.openfilelocation.filemanager, folder)) end end }) diff --git a/plugins/scalestatus.lua b/plugins/scalestatus.lua index c9c6d58..f486310 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -10,7 +10,7 @@ local scale = require "plugins.scale" local config = require "core.config" local StatusView = require "core.statusview" -config.scalestatus_format = '%.0f%%' +config.plugins.scalestatus = { format = '%.0f%%' } local get_items = StatusView.get_items function StatusView:get_items() @@ -19,7 +19,7 @@ function StatusView:get_items() local t = { self.separator, - string.format(config.scalestatus_format, scale.get() * 100), + string.format(config.plugins.scalestatus.format, scale.get() * 100), } for _, item in ipairs(t) do diff --git a/plugins/selectionhighlight.lua b/plugins/selectionhighlight.lua index a7d2aa8..9183c82 100644 --- a/plugins/selectionhighlight.lua +++ b/plugins/selectionhighlight.lua @@ -1,7 +1,6 @@ -- mod-version:1 -- lite-xl 2.00 local style = require "core.style" local DocView = require "core.docview" -local config = require "core.config" -- originally written by luveti diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua index 3cf710e..0e5e8bf 100644 --- a/plugins/spellcheck.lua +++ b/plugins/spellcheck.lua @@ -7,11 +7,12 @@ local common = require "core.common" local DocView = require "core.docview" local Doc = require "core.doc" -config.spellcheck_files = { "%.txt$", "%.md$", "%.markdown$" } +config.plugins.spellcheck = {} +config.spellcheck.files = { "%.txt$", "%.md$", "%.markdown$" } if PLATFORM == "Windows" then - config.dictionary_file = EXEDIR .. "/words.txt" + config.plugins.spellcheck.dictionary_file = EXEDIR .. "/words.txt" else - config.dictionary_file = "/usr/share/dict/words" + config.plugins.spellcheck.dictionary_file = "/usr/share/dict/words" end @@ -22,7 +23,7 @@ local words core.add_thread(function() local t = {} local i = 0 - for line in io.lines(config.dictionary_file) do + for line in io.lines(config.plugins.spellcheck.dictionary_file) do for word in line:gmatch(word_pattern) do t[word:lower()] = true end @@ -31,7 +32,7 @@ core.add_thread(function() end words = t core.redraw = true - core.log_quiet("Finished loading dictionary file: \"%s\"", config.dictionary_file) + core.log_quiet("Finished loading dictionary file: \"%s\"", config.plugins.spellcheck.dictionary_file) end) @@ -64,7 +65,7 @@ function DocView:draw_line_text(idx, x, y) draw_line_text(self, idx, x, y) if not words - or not matches_any(self.doc.filename or "", config.spellcheck_files) then + or not matches_any(self.doc.filename or "", config.plugins.spellcheck.files) then return end @@ -120,7 +121,7 @@ command.add("core.docview", { return end if word then - local fp = assert(io.open(config.dictionary_file, "a")) + local fp = assert(io.open(config.plugins.spellcheck.dictionary_file, "a")) fp:write("\n" .. word .. "\n") fp:close() words[word] = true -- cgit v1.2.3 From 44659ba00207cecd90412b714e53c2a1b7233fb9 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 17 Aug 2021 09:53:48 -0400 Subject: Updated mod-version and made things 2.0 instead of 2.00. --- plugins/autoinsert.lua | 2 +- plugins/autosave.lua | 2 +- plugins/autosaveonfocuslost.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/ephemeraldocviews.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_bib.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_po.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_tcl.lua | 2 +- plugins/language_teal.lua | 2 +- plugins/language_tex.lua | 2 +- plugins/language_ts.lua | 2 +- plugins/language_tsx.lua | 2 +- plugins/language_v.lua | 2 +- plugins/language_wren.lua | 2 +- plugins/language_yaml.lua | 2 +- plugins/language_zig.lua | 2 +- plugins/lfautoinsert.lua | 2 +- plugins/linecopypaste.lua | 2 +- plugins/macmodkeys.lua | 2 +- plugins/markers.lua | 2 +- plugins/memoryusage.lua | 2 +- plugins/motiontrail.lua | 2 +- plugins/navigate.lua | 2 +- plugins/openfilelocation.lua | 2 +- plugins/openselected.lua | 2 +- plugins/pdfview.lua | 2 +- plugins/rainbowparen.lua | 2 +- plugins/regexreplacepreview.lua | 2 +- plugins/restoretabs.lua | 2 +- plugins/scalestatus.lua | 2 +- plugins/selectionhighlight.lua | 2 +- plugins/sort.lua | 2 +- plugins/spellcheck.lua | 2 +- plugins/tabnumbers.lua | 2 +- plugins/texcompile.lua | 2 +- plugins/themeselect.lua | 2 +- plugins/titleize.lua | 2 +- plugins/togglesnakecamel.lua | 2 +- plugins/unboundedscroll.lua | 2 +- 90 files changed, 90 insertions(+), 90 deletions(-) (limited to 'plugins/copyfilelocation.lua') diff --git a/plugins/autoinsert.lua b/plugins/autoinsert.lua index 8be47c9..638d6cc 100644 --- a/plugins/autoinsert.lua +++ b/plugins/autoinsert.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 ef1985d..e6fa21c 100644 --- a/plugins/autosave.lua +++ b/plugins/autosave.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local Doc = require "core.doc" diff --git a/plugins/autosaveonfocuslost.lua b/plugins/autosaveonfocuslost.lua index 1aa0e90..dea1e7c 100644 --- a/plugins/autosaveonfocuslost.lua +++ b/plugins/autosaveonfocuslost.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local CommandView = require "core.commandview" local DocView = require "core.docview" diff --git a/plugins/autowrap.lua b/plugins/autowrap.lua index acfd37f..38f8eb3 100644 --- a/plugins/autowrap.lua +++ b/plugins/autowrap.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 require "plugins.reflow" local config = require "core.config" local command = require "core.command" diff --git a/plugins/bigclock.lua b/plugins/bigclock.lua index 62cbc0c..e77f336 100644 --- a/plugins/bigclock.lua +++ b/plugins/bigclock.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 8bd44b2..4d1da37 100644 --- a/plugins/bracketmatch.lua +++ b/plugins/bracketmatch.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 a0f758b..a1cf5e3 100644 --- a/plugins/centerdoc.lua +++ b/plugins/centerdoc.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local config = require "core.config" local DocView = require "core.docview" diff --git a/plugins/colorpreview.lua b/plugins/colorpreview.lua index 3e4ab3b..5b16d28 100644 --- a/plugins/colorpreview.lua +++ b/plugins/colorpreview.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local common = require "core.common" local DocView = require "core.docview" diff --git a/plugins/copyfilelocation.lua b/plugins/copyfilelocation.lua index b370090..dedc188 100644 --- a/plugins/copyfilelocation.lua +++ b/plugins/copyfilelocation.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" diff --git a/plugins/datetimestamps.lua b/plugins/datetimestamps.lua index c1b1199..51d698e 100644 --- a/plugins/datetimestamps.lua +++ b/plugins/datetimestamps.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 a2635f1..4dbaa84 100644 --- a/plugins/dragdropselected.lua +++ b/plugins/dragdropselected.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 --[[ dragdropselected.lua provides basic drag and drop of selected text (in same document) diff --git a/plugins/ephemeraldocviews.lua b/plugins/ephemeraldocviews.lua index e90c3d9..cb9f53d 100644 --- a/plugins/ephemeraldocviews.lua +++ b/plugins/ephemeraldocviews.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local RootView = require "core.rootview" diff --git a/plugins/eval.lua b/plugins/eval.lua index fe3f844..bd1ff56 100644 --- a/plugins/eval.lua +++ b/plugins/eval.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" diff --git a/plugins/exec.lua b/plugins/exec.lua index b341d60..cf2d8f2 100644 --- a/plugins/exec.lua +++ b/plugins/exec.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" diff --git a/plugins/ghmarkdown.lua b/plugins/ghmarkdown.lua index 2ce297b..7dcf3cb 100644 --- a/plugins/ghmarkdown.lua +++ b/plugins/ghmarkdown.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 35a4a92..b7ff5de 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 d7d6881..02c817b 100644 --- a/plugins/gofmt.lua +++ b/plugins/gofmt.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 995e151..4494670 100644 --- a/plugins/hidelinenumbers.lua +++ b/plugins/hidelinenumbers.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/hidestatus.lua b/plugins/hidestatus.lua index 1d63c9e..6e63a81 100644 --- a/plugins/hidestatus.lua +++ b/plugins/hidestatus.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local command = require "core.command" local StatusView = require "core.statusview" diff --git a/plugins/indentguide.lua b/plugins/indentguide.lua index 747c2d0..0513be4 100644 --- a/plugins/indentguide.lua +++ b/plugins/indentguide.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 c0b2d83..d214ea0 100644 --- a/plugins/language_angelscript.lua +++ b/plugins/language_angelscript.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_batch.lua b/plugins/language_batch.lua index 99fd3ed..b01c65d 100644 --- a/plugins/language_batch.lua +++ b/plugins/language_batch.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" -- batch syntax for lite diff --git a/plugins/language_bib.lua b/plugins/language_bib.lua index 6fdb20a..96c80c7 100644 --- a/plugins/language_bib.lua +++ b/plugins/language_bib.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_cmake.lua b/plugins/language_cmake.lua index 1e3dbef..34b4d0c 100644 --- a/plugins/language_cmake.lua +++ b/plugins/language_cmake.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_cpp.lua b/plugins/language_cpp.lua index c9fc6d3..f229134 100644 --- a/plugins/language_cpp.lua +++ b/plugins/language_cpp.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 pcall(require, "plugins.language_c") local syntax = require "core.syntax" diff --git a/plugins/language_csharp.lua b/plugins/language_csharp.lua index 64f19c6..6bc6fcd 100644 --- a/plugins/language_csharp.lua +++ b/plugins/language_csharp.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_d.lua b/plugins/language_d.lua index 8300831..641aefa 100644 --- a/plugins/language_d.lua +++ b/plugins/language_d.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_dart.lua b/plugins/language_dart.lua index 5cabbb4..01bdc97 100644 --- a/plugins/language_dart.lua +++ b/plugins/language_dart.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_elixir.lua b/plugins/language_elixir.lua index 128286d..e4919da 100644 --- a/plugins/language_elixir.lua +++ b/plugins/language_elixir.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_elm.lua b/plugins/language_elm.lua index 14a38ca..4038420 100644 --- a/plugins/language_elm.lua +++ b/plugins/language_elm.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_fe.lua b/plugins/language_fe.lua index bb35159..c852124 100644 --- a/plugins/language_fe.lua +++ b/plugins/language_fe.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_fennel.lua b/plugins/language_fennel.lua index 4eb371d..de229f1 100644 --- a/plugins/language_fennel.lua +++ b/plugins/language_fennel.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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 8f2b852..5a29b97 100644 --- a/plugins/language_gdscript.lua +++ b/plugins/language_gdscript.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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 00e900b..36ceb03 100644 --- a/plugins/language_glsl.lua +++ b/plugins/language_glsl.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local style = require "core.style" local common = require "core.common" diff --git a/plugins/language_go.lua b/plugins/language_go.lua index d57e7df..8c8900e 100644 --- a/plugins/language_go.lua +++ b/plugins/language_go.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_hlsl.lua b/plugins/language_hlsl.lua index a7bffc2..0aedab0 100644 --- a/plugins/language_hlsl.lua +++ b/plugins/language_hlsl.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local style = require "core.style" local common = require "core.common" diff --git a/plugins/language_hs.lua b/plugins/language_hs.lua index f2a7352..5530f87 100644 --- a/plugins/language_hs.lua +++ b/plugins/language_hs.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_java.lua b/plugins/language_java.lua index be360ee..8c6e98e 100644 --- a/plugins/language_java.lua +++ b/plugins/language_java.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_jiyu.lua b/plugins/language_jiyu.lua index 2105211..c30cd00 100644 --- a/plugins/language_jiyu.lua +++ b/plugins/language_jiyu.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_jsx.lua b/plugins/language_jsx.lua index bca8c2f..328e2db 100644 --- a/plugins/language_jsx.lua +++ b/plugins/language_jsx.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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 bf93b3a..ffb2c96 100644 --- a/plugins/language_liquid.lua +++ b/plugins/language_liquid.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" local liquid_syntax = { diff --git a/plugins/language_make.lua b/plugins/language_make.lua index 563342d..4ce5d00 100644 --- a/plugins/language_make.lua +++ b/plugins/language_make.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_meson.lua b/plugins/language_meson.lua index 1e78099..02763a7 100644 --- a/plugins/language_meson.lua +++ b/plugins/language_meson.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_moon.lua b/plugins/language_moon.lua index eac3e11..6b5f9d2 100644 --- a/plugins/language_moon.lua +++ b/plugins/language_moon.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_nim.lua b/plugins/language_nim.lua index 7d29180..c9f3355 100644 --- a/plugins/language_nim.lua +++ b/plugins/language_nim.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" local patterns = {} diff --git a/plugins/language_objc.lua b/plugins/language_objc.lua index dfc2d5f..c0ef95e 100644 --- a/plugins/language_objc.lua +++ b/plugins/language_objc.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_odin.lua b/plugins/language_odin.lua index d95e67f..29d9868 100644 --- a/plugins/language_odin.lua +++ b/plugins/language_odin.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_perl.lua b/plugins/language_perl.lua index 45e3112..cf60849 100644 --- a/plugins/language_perl.lua +++ b/plugins/language_perl.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_php.lua b/plugins/language_php.lua index a5a94b3..4f107aa 100644 --- a/plugins/language_php.lua +++ b/plugins/language_php.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 --[[ 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 ce85f4e..082b962 100644 --- a/plugins/language_phps.lua +++ b/plugins/language_phps.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 --[[ 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 857fbf2..b8b790e 100644 --- a/plugins/language_pico8.lua +++ b/plugins/language_pico8.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_po.lua b/plugins/language_po.lua index 9da4664..54783ea 100644 --- a/plugins/language_po.lua +++ b/plugins/language_po.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_powershell.lua b/plugins/language_powershell.lua index 64edcdf..022170d 100644 --- a/plugins/language_powershell.lua +++ b/plugins/language_powershell.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_psql.lua b/plugins/language_psql.lua index 02a183f..09db99b 100644 --- a/plugins/language_psql.lua +++ b/plugins/language_psql.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 7ee5667..8b9bf33 100644 --- a/plugins/language_ruby.lua +++ b/plugins/language_ruby.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index 8b79fa5..ac25305 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_sass.lua b/plugins/language_sass.lua index 48ca851..752f5b0 100644 --- a/plugins/language_sass.lua +++ b/plugins/language_sass.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua index 82d4447..f21557d 100644 --- a/plugins/language_sh.lua +++ b/plugins/language_sh.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_tcl.lua b/plugins/language_tcl.lua index 5145a7e..a934777 100644 --- a/plugins/language_tcl.lua +++ b/plugins/language_tcl.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_teal.lua b/plugins/language_teal.lua index 4257387..f64c419 100644 --- a/plugins/language_teal.lua +++ b/plugins/language_teal.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_tex.lua b/plugins/language_tex.lua index 3976cf6..1bc08f5 100644 --- a/plugins/language_tex.lua +++ b/plugins/language_tex.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_ts.lua b/plugins/language_ts.lua index 080a368..1b322ed 100644 --- a/plugins/language_ts.lua +++ b/plugins/language_ts.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- copied from language_js, but added regex highlighting back local syntax = require "core.syntax" diff --git a/plugins/language_tsx.lua b/plugins/language_tsx.lua index 6c320c0..63eef55 100644 --- a/plugins/language_tsx.lua +++ b/plugins/language_tsx.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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_v.lua b/plugins/language_v.lua index 12747c4..526002f 100644 --- a/plugins/language_v.lua +++ b/plugins/language_v.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_wren.lua b/plugins/language_wren.lua index 293f12b..c4a6905 100644 --- a/plugins/language_wren.lua +++ b/plugins/language_wren.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_yaml.lua b/plugins/language_yaml.lua index b3ebdcd..c86f733 100644 --- a/plugins/language_yaml.lua +++ b/plugins/language_yaml.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/language_zig.lua b/plugins/language_zig.lua index 4e0a106..3c4f6fa 100644 --- a/plugins/language_zig.lua +++ b/plugins/language_zig.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" syntax.add { diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index 3a8369e..ddbec5e 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local common = require "core.common" diff --git a/plugins/linecopypaste.lua b/plugins/linecopypaste.lua index df8266f..d332cc1 100755 --- a/plugins/linecopypaste.lua +++ b/plugins/linecopypaste.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" diff --git a/plugins/macmodkeys.lua b/plugins/macmodkeys.lua index fba8576..d8c0d05 100644 --- a/plugins/macmodkeys.lua +++ b/plugins/macmodkeys.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local keymap = require "core.keymap" local on_key_pressed = keymap.on_key_pressed diff --git a/plugins/markers.lua b/plugins/markers.lua index b693029..e09fa3d 100644 --- a/plugins/markers.lua +++ b/plugins/markers.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- Markers plugin for lite text editor -- original implementation by Petri Häkkinen diff --git a/plugins/memoryusage.lua b/plugins/memoryusage.lua index d6ad20d..fcdcc29 100644 --- a/plugins/memoryusage.lua +++ b/plugins/memoryusage.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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 f5f3a90..1359c90 100644 --- a/plugins/motiontrail.lua +++ b/plugins/motiontrail.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local style = require "core.style" diff --git a/plugins/navigate.lua b/plugins/navigate.lua index d5f8714..4e6092f 100644 --- a/plugins/navigate.lua +++ b/plugins/navigate.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local common = require "core.common" diff --git a/plugins/openfilelocation.lua b/plugins/openfilelocation.lua index 69fe9fa..4b89815 100644 --- a/plugins/openfilelocation.lua +++ b/plugins/openfilelocation.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 63de3b3..a1e21a2 100644 --- a/plugins/openselected.lua +++ b/plugins/openselected.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/pdfview.lua b/plugins/pdfview.lua index 38195b1..d5d749a 100644 --- a/plugins/pdfview.lua +++ b/plugins/pdfview.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 0291e8c..52e9d50 100644 --- a/plugins/rainbowparen.lua +++ b/plugins/rainbowparen.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local tokenizer = require "core.tokenizer" local style = require "core.style" local common = require "core.common" diff --git a/plugins/regexreplacepreview.lua b/plugins/regexreplacepreview.lua index b8ffcda..1c8b845 100644 --- a/plugins/regexreplacepreview.lua +++ b/plugins/regexreplacepreview.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local keymap = require "core.keymap" local command = require "core.command" diff --git a/plugins/restoretabs.lua b/plugins/restoretabs.lua index b173d7d..5bcd977 100644 --- a/plugins/restoretabs.lua +++ b/plugins/restoretabs.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 -- 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/scalestatus.lua b/plugins/scalestatus.lua index f486310..8f3ef68 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 --[[ scalestatus.lua displays current scale (zoom) in status view diff --git a/plugins/selectionhighlight.lua b/plugins/selectionhighlight.lua index 9183c82..1cec783 100644 --- a/plugins/selectionhighlight.lua +++ b/plugins/selectionhighlight.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local style = require "core.style" local DocView = require "core.docview" diff --git a/plugins/sort.lua b/plugins/sort.lua index e683715..fd9d044 100644 --- a/plugins/sort.lua +++ b/plugins/sort.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 0e5e8bf..db58606 100644 --- a/plugins/spellcheck.lua +++ b/plugins/spellcheck.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 300c4a8..581a6b2 100644 --- a/plugins/tabnumbers.lua +++ b/plugins/tabnumbers.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local common = require "core.common" local core = require "core" local style = require "core.style" diff --git a/plugins/texcompile.lua b/plugins/texcompile.lua index 214dfc4..2f53513 100644 --- a/plugins/texcompile.lua +++ b/plugins/texcompile.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" diff --git a/plugins/themeselect.lua b/plugins/themeselect.lua index 37d1500..70bd627 100644 --- a/plugins/themeselect.lua +++ b/plugins/themeselect.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 846dfb8..edb50d2 100644 --- a/plugins/titleize.lua +++ b/plugins/titleize.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" diff --git a/plugins/togglesnakecamel.lua b/plugins/togglesnakecamel.lua index 2e61b54..b5d20d9 100644 --- a/plugins/togglesnakecamel.lua +++ b/plugins/togglesnakecamel.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 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 05888e4..a27ab25 100644 --- a/plugins/unboundedscroll.lua +++ b/plugins/unboundedscroll.lua @@ -1,4 +1,4 @@ --- mod-version:1 -- lite-xl 2.00 +-- mod-version:2 -- lite-xl 2.0 local DocView = require "core.docview" function DocView.clamp_scroll_position() -- cgit v1.2.3