aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/ipc.lua
AgeCommit message (Collapse)Author
2025-06-27Add REPL and run commands to the CLI (#280)Jefferson González
* New basic `repl` command useful to interactively execute Lua code with access to the Pragtical API. Supports single and multiple line expressions and includes some useful (maybe) built-in commands. * New `run` command that allows executing Lua files or Lua code strings with access to the Pragtical API. * Flags and commands list help output is now padded and wrapped. * The current terminal columns width is detected for padding and wrapping. * Now only treat as files the cli unhandled arguments. * Support fetching value of single char flags when no spaces, eg: -Fvalue * Support for insensitive true or false on boolean flags. * Added new `edit` command to explicitly open a new editor instance by skipping the IPC system.
2025-06-26Lua doc comment improvements for better API reference generation (#185)Jefferson González
Improvements to the Lua doc comments that allows improved generation of the Lua API reference using the gendocs plugin.
2024-09-02IPC Plugin: restore current project working dir (#167)Jefferson González
On startup we chdir to the initial working directory to properly resolve the absolute path of given arguments. If no ipc method is called we just chdir back to currently loaded project.
2024-07-28Fix for IPC plugin to open relative path (#125)Jefferson González
This fix restores opening of a relative path from within the IPC plugin which was broken by #93
2024-07-11Fix use of no longer valid core.add_project_directory (#121)Jefferson González
This corrects the remanent of old function name to the new core.add_project().
2024-06-25Rebase window creation and management to Lua (#108)Jefferson González
* move window creation and management to Lua (#1751) * remove scaling logic from font code for the time being its been hardcoded to 1 for the non SDL Renderer basewin setup, so nothing is lost for non MacOS users. will be revisited in the future when scaling is improved with SDL3 and moved into scripts. * remove unused window_renderer argument from font functions * move window logic to lua, pass window via argument * rename window creation functions `*_create`, `*_destroy`, add real init * Set active window when processing frame * get size directly from RenWindow, get active window size from renderer * correct reverted draw calls * fix window not reappearing on restart * add simple logic to persist the core window * fix style * add renwindow documentation * make windows hidden by default again * reorder ren_update_rects execution, add comment to note future work * Adapt code that calls system.win functions * Remove scale detection from start.lua * Trimmed spaces from renwindow docs * Enable darkmode on window creation and added min win size --------- Co-authored-by: Jan <sentrycraft123@gmail.com>
2023-10-28Fixed IPC plugin shmem not detected on MacOSjgmdev
2023-07-30Merged Project Rework lite-xl/lite-xl#1455Adam Harrison
* Initial commit to clean up projects; spun off find-file to its own plugin, removed project limit, removed the concept of a project maintaining an ordered list of files, and allowed treeview to see things like hidden files and files not actually in the project. * Normalizing things, fixed typo. * Abstracted root project, and made things more in line with current master behaviour. * Removed unused legacy code, as well as ensured that we use absolute paths. * Fixed issue with backslahes on linux, will look at windows at some point. * Removed stray print. * Removed orphaned function. * Removed extraneous command. * Fixed the ability to close project folders. * Adaptations for project rework. * Removed superceded function. * Applied jgm's suggestions.
2023-06-05Added support for background threads (#5)Jefferson González
2023-05-23ipc plugin: force draw on core.tab_drag_receivedjgmdev
2023-05-21Project rebrandingjgmdev
2023-05-20Added IPC plugin with shmem supportjgmdev