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).
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).
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).
- 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.
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)
- 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
* 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
* 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)
* 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)
* common: allow / and \ as PATHSEP on Windows when fuzzy matching files
* common: fix PLATFORM == Windows
(cherry picked from commit 5d6ae412e76e69181a3b46c79b8408fbd55183c9)
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)
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)
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)
* 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)
* Update css plugin to support more units
* Fixed spacing.
---------
Co-authored-by: Adam Harrison <adamdharrison@gmail.com>
(cherry picked from commit 7a4260600509e26337e67ce65ff3c66eec79d3b6)