Commit Graph
2385 Commits
Author SHA1 Message Date
vhaudiquet 56ef7344f0 Vendor selectionhighlight, bracketmatch, colorpreview, navigate, editorconfig (2.1.8-7)
Five more plugins from lite-xl-plugins @ 31eef29, all default VSCode
behaviors:

- selectionhighlight: highlights other occurrences of the selected word
- bracketmatch: highlights the bracket matching the one under the cursor
- colorpreview: inline swatches for #hex/rgb()/hsl() color literals
- navigate: Go Back / Go Forward cursor history (alt+left/right)
- editorconfig: applies .editorconfig files; vendored as the whole
  upstream directory (parser + test harness, lite-xl test editorconfig);
  builds on the bundled trimwhitespace plugin

All depend on core only (editorconfig additionally on trimwhitespace,
already shipped). Verified against the built package: all plugins load,
navigate registers its commands, and an .editorconfig with
indent_size = 2 is applied to an opened file.

Pinned to lite-xl-plugins @ 31eef29 (see debian/extra/README.source).
2026-09-17 11:18:20 +02:00
vhaudiquet 273965ef0b Vendor ephemeral_tabs (2.1.8-6)
VSCode-style preview tabs: files opened from the treeview with a single
click open in a preview tab (titled "~ name ~") that is reused for the
next file opened and becomes a permanent tab as soon as it is edited,
double-clicked or dragged.

Verified against the running editor: single-click opens preview, opening
another file replaces it, editing promotes it to a permanent tab.

Pinned to lite-xl-plugins @ 31eef29 (see debian/extra/README.source).
2026-09-17 11:03:42 +02:00
vhaudiquet 597d8a42f6 Vendor gitpanel 0.3.0 (2.1.8-5)
Git panel integrated into the treeview pane: uncommitted changes with
diff stats, staging, commits and history, toggled from a git-branch
button in the treeview toolbar or the status bar. History is pinned to
the bottom half of the panel; commit patches open with diff syntax
highlighting from the already bundled language_diff.

Pinned to lite-xl-gitpanel @ 0731a63 (see debian/extra/README.source).
2026-09-17 01:45:03 +02:00
vhaudiquet b8feb4f4db Fix vendored nerdicons rendering; keep status bar always visible
- the vendored nerdicons.lua was the pristine upstream copy, so installs
  relying on the packaged plugin lost the tuned icon rendering (fractional
  glyph size and default hinting made icons feel soft and uneven). Apply
  the same tuning as the user config: whole-pixel icon size, hinting off,
  scale-aware chevron offset.
- default config (skel + first-run template) and this repo's users keep
  the status bar permanently visible: shown at startup, and the
  status-bar:hide/toggle commands are no-ops.
2026-09-16 23:02:28 +02:00
vhaudiquet 3bae6fd448 Bundle curated community plugins (2.1.8-4)
Vendored from upstream, pinned by commit (see debian/extra/README.source):
- gitstatus, gitopen, fontconfig, open_ext, select_colorscheme,
  smoothcaret, nerdicons (font mapping patched to DATADIR, Ships the
  Symbols Nerd Font Mono TTF, SIL OFL 1.1)
- lite-xl-lsp (complete LSP client; idle until a language server is
  configured) plus the lite-xl-widgets library it requires
- 104 language syntax plugins (none duplicate the nine bundled in core)

settings GUI left out upstream is broken: it requires a
libraries.widget.fonts widget that does not exist in
lite-xl-widgets at any revision.

Co-developed-with: ZCode (Z.ai)
2026-09-16 22:45:02 +02:00
vhaudiquet a693cb645c Ship out-of-the-box VSCode-style config and sharp rendering defaults
- quilt patch: first-run user init.lua template now writes a tuned
  default config (Dark Modern theme, JetBrains Mono with grayscale AA,
  line-height/indent guides, compact treeview with hover highlight)
- new theme module usr/share/lite-xl/colors/vscode_dark.lua
- default config in /etc/skel/.config/lite-xl/ for new users
- desktop: launch via SDL software renderer with LITE_SCALE=1.5 so text
  renders 1:1 on fractional-scaled Wayland outputs and avoids panfrost
  GPU artifacts
- depend on fonts-jetbrains-mono for the default code font
2026-09-16 21:52:46 +02:00
vhaudiquet ad7256b4fb debian: initial packaging work 2026-09-16 21:43:25 +02:00
takase1121 0af4dae0e2 chore: bump versions [skip ci] 2025-06-09 06:45:20 +08:00
takase1121 b5ee18c966 chore: update changelogs [skip ci] 2025-06-09 06:45:20 +08:00
takase1121 85c2c3fdc8 main: keep PLATFORM consistent between SDL2 and SDL3 2025-06-05 11:03:45 +08:00
takase1121 b5317c5318 core: make project_dir detection more robust
On macOS, listing / can silently fail due to SIP. We try to default to ~ if there's no choice.
2025-06-05 11:03:45 +08:00
takase1121 7a2214ae0e main: fix not receiving text input 2025-05-19 08:52:43 +08:00
takase1121 94b2b28377 subprojects: fix freetype2 bzip2 dep issue 2025-05-19 08:52:41 +08:00
takase1121 409d2cd00b main: set the correct SDL_HINT_IME_IMPLEMENTED_UI 2025-05-19 08:47:47 +08:00
takase1121 fceb773d96 build.sh: update SDL3 version 2025-05-19 08:47:47 +08:00
takase1121 ceea55e97d appstream: fix screenshot link 2025-05-18 23:22:57 +08:00
takase1121 8664245843 build.sh: fix LTO option parsing 2025-05-18 23:16:10 +08:00
Takase 9511f55fc4 postrelease: ignore RC builds (#2082) 2025-05-18 23:16:10 +08:00
takase1121 d8f7b6e1be system: update window scale on scale changes 2025-05-18 23:16:09 +08:00
Jan200101andtakase1121 affb56e817 replace memory functions with SDL equivalent 2025-05-18 23:16:09 +08:00
Janandtakase1121 9408dddb37 feat: add SDL App Metadata (#2068)
* add SDL App Metadata

* prefix define with LITE
2025-05-18 23:16:09 +08:00
Adam Harrisonandtakase1121 1ce31b2a00 Fixed dirmonitor. 2025-05-18 23:16:09 +08:00
Takase 6d686e78db build.sh: build SDL3 with CMake (#2060)
* build.sh: support building SDL3 with cmake

* ci: install cmake

* ci: make msvc use bash to build again

* ci: use get-command to get link.exe

* build.sh: revert back to CMAKE_INSTALL_PREFIX

* ci: hardcode CMAKE_INSTALL_LIBDIR

* ci: set cc_ld to not step on cmake

* build.sh: less messing with cwd

* build.sh: fix prefix once and for all

* ci: skip installing cmake on macos to avoid warnings

* build.sh: pass MACOSX_DEPLOYMENT_TARGET to cmake

* build.sh: remove extra .. in configure command

* build.sh: remove unused variable

* build.sh: allow SIMD runtime detection

* build.sh: propagate LTO to SDL3
2025-05-18 23:16:07 +08:00
Ildar Mulyukovandtakase1121 5ff596aff2 language_lua: add files with rockspec extenstion 2025-05-18 22:55:30 +08:00
Guldomanandtakase1121 48153edb5d fix: don't go down the directory tree in system.list_dir (#2059)
* fix: don't go down the directory tree in `system.list_dir`

* feat: use `lua_rawlen` instead of `luaL_len` in `list_dir` callback

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

* refactor: remove unneeded `lua_pop` in `list_dir`

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

---------

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
(cherry picked from commit e5a25dc6aa45e3ab4884c46066a447a27128f196)
2025-05-18 22:55:30 +08:00
takase1121 bb05cf3e4d SDL3 port (#1756)
* update to SDL 3.2.0

* remove SDL wrap

* fix darwin and windows CI

* update build box, correct msys sdl3 dependency

* port leftovers from renderer backend to SDL3

* remove SDL main dep
the main implementation is now included in a header

* main.c: use SDL_main.h

This needs to be included to work.

* ci: use vcpkg and pkgconf to support SDL3 on MSVC

* ci: use 7z to create zip

* renwindow: create texture and surface suitable for the display

* system: remove trailing whitespace

* renderer: fix trailing whitespace

* system: fix checking the wrong argument

* system: port rmdir and stat to SDL3 API

* system: remove unneeded API level check

* system: fix wrong parameter index

* system: make set_window_hit_test and set_window_bordered accept a window

* docs/system: update docs

* system: restore some comments

* docs/system: add missing documentation for system.text_input

* system: use SDL_setenv_unsafe

* system: add back comment for setenv

* system,renderer: remove unnecessary SDL_ClearError calls

---------

Co-authored-by: takase1121 <20792268+takase1121@users.noreply.github.com>
(cherry picked from commit 2716f14b6903f055f6bdf010a7e4a3d040cf059d)
2025-05-18 22:55:30 +08:00
takase1121 16d81d0b9c ci: enable LTO for CI builds
(cherry picked from commit 75261a98a6723ce734360c0a3004c9e5cab04540)
2025-05-18 22:55:30 +08:00
takase1121 4ad47c1180 build.sh: add LTO support
(cherry picked from commit 3eab686fc16e836d05c28d352f45e1f14b8f2ebe)
2025-05-18 22:55:30 +08:00
Takase 1ada01e7b0 Update InnoSetup files (#1988)
* inno: update visual style to modern; support hidpi

* inno: fix add to PATH and add banner images

* inno: fix arch specification and default to x64compatible

* scripts: actually use x64compatible in package-innosetup.sh

* inno: fix unsupported windows warning

* gitignore: add trailing newline

(cherry picked from commit 819fa9d30e2c0e737fad519fbff63ce2baff4456)
2025-05-18 22:55:29 +08:00
Takase 590367a6e5 syntax: warn against malformed patterns and disable them (#2029)
(cherry picked from commit 3501f3d0bb6ee399ecb7cdf04cff8cf138b1ca02)
2025-05-18 22:55:29 +08:00
Takase 026d2a4271 language_cpp: add back digit separators (#2026)
* language_cpp: add back digit separators

* language_cpp: rewrite number matching in regex

* language_c: port digit separators over from language_cpp

(cherry picked from commit 8ea0393800bb59a214e8a6efd5b9fb69282803a9)
2025-05-18 22:55:29 +08:00
Guldomanandtakase1121 d5aa9ddad7 fix: use correct charmap and glyphmap sizes (#1999)
(cherry picked from commit 87ee3799610354fc90617ec8206337fedeee39f5)
2025-05-18 22:55:29 +08:00
Takase 0d9431857e common: allow / and \ as PATHSEP on Windows when fuzzy matching files (#1992)
* common: allow / and \ as PATHSEP on Windows when fuzzy matching files

* common: fix PLATFORM == Windows

(cherry picked from commit 5d6ae412e76e69181a3b46c79b8408fbd55183c9)
2025-05-18 22:55:28 +08:00
Takase dec272d051 ci: add postrelease workflow to update docs and release winget packages (#1983)
(cherry picked from commit c61d5dd5c631a173d691121ebc6c7d4ec7279218)
2025-05-18 22:55:28 +08:00
takase1121 7a68eaa165 fix: use current char to determine col in DocView:get_x_offset_col (#1946)
Previously it would use the last char position, which resulted in incorrect values when the next char had a different size than the current one.

(cherry picked from commit f066c88e186a02b9912d7f102b541f514ae1aa35)
2025-05-18 22:55:20 +08:00
takase1121 52393aa75e move dependency resolving into source file (#1937)
These are only needed for building the actual project and not for managing resources or setting various flags.
Gets rid of the double `source-only` check and moves it closer to the consumer

(cherry picked from commit 64420f4366a290b3c3f48f0131a8f77312def595)
2025-05-18 22:54:39 +08:00
Takase 42cf5a630e renderer: pass errors via SDL_SetError (#1919)
(cherry picked from commit 90cce5edee579575025c388d995eed637c4ad0bf)
2025-05-18 22:54:39 +08:00
Takase 025e19d88e renderer: defer bitmap rendering when possible (#1856)
ren_font_group_get_width() is getting called a lot while not 100% of the
glyphs loaded from this function will be actually rendered. We can defer
the bitmap rendering to ren_draw_text.

(cherry picked from commit 1659f63dfc6fec7893673e7e95bbcd844ec0bda4)
2025-05-18 22:54:38 +08:00
Takase a23866511d Better wasm support again (#1779)
* wasm: add shell file for loading wasm module

* wasm: disable pcre2 jit

* wasm: add more configuration options

* cross/wasm: more build options

(cherry picked from commit 6575c297b50417eff0b82fd80340a192ba016b99)
2025-05-18 22:54:38 +08:00
ThaCuberandtakase1121 ce16538903 add a __tostring method to every object (#1534)
* added a stupid __tostring to every object

* moved every __tostring to just after the :extend() call

---------

Co-authored-by: Adam <adamdharrison@gmail.com>
(cherry picked from commit 880e7f1fa1521cdf176f44627a27c901e187058e)
2025-05-18 22:54:38 +08:00
Takase fdd5ab8ed0 common.sh: support OSTYPE == cygwin for MSYS2 (#2028)
(cherry picked from commit f30214464c0613c281c91be192c2ef8360f3543e)
2025-05-18 22:54:38 +08:00
Adamandtakase1121 3479e31a4e Added in stdlib as per #2014. (#2017)
(cherry picked from commit 9b70aec31de3d7c179fc8425d7af7babd96be2c5)
2025-05-18 22:54:38 +08:00
Programutoxandtakase1121 15123e4054 Update CSS plugin to support more units (#2010)
* Update css plugin to support more units

* Fixed spacing.

---------

Co-authored-by: Adam Harrison <adamdharrison@gmail.com>
(cherry picked from commit 7a4260600509e26337e67ce65ff3c66eec79d3b6)
2025-05-18 22:54:37 +08:00
takase1121 f1ab7de4ea chore: bump versions to v2.1.7 2024-12-05 22:22:30 +08:00
takase1121 9a3ade1bdd chore: update changelogs for v2.1.7 2024-12-05 22:20:46 +08:00
takase1121 2f208d452f process: call poll_process when getting returncode 2024-12-05 22:18:39 +08:00
Guldomanandtakase1121 f87617f829 fix: only allow backslash as path separator in Windows in common.path_suggest (#1976) 2024-12-04 13:02:07 +08:00
Takase ad628da44d process: do not return nil until process exited (#1973) 2024-12-04 13:02:07 +08:00
takase1121 acf1daed7c ci: update docs on release 2024-12-04 13:02:06 +08:00
takase1121 ccf7383c34 ci: add winget releaser workflow 2024-12-04 13:02:06 +08:00