Commit Graph
100 Commits
Author SHA1 Message Date
Adam Harrisonandtakase1121 1ce31b2a00 Fixed dirmonitor. 2025-05-18 23:16:09 +08:00
Adamandtakase1121 3479e31a4e Added in stdlib as per #2014. (#2017)
(cherry picked from commit 9b70aec31de3d7c179fc8425d7af7babd96be2c5)
2025-05-18 22:54:38 +08:00
Adam Harrisonandtakase1121 e802239022 Additional small fixes for windows as part of the process API move to lua. 2024-11-27 20:53:33 +08:00
Adam Harrisonandtakase1121 d2586bf0c2 Fixed minor typo from merge of #1854 for windows builds. 2024-11-27 20:53:33 +08:00
Adamandtakase1121 49a1ec32b8 Add keyboard shortcut to tooltips in ToolbarView (#1880) 2024-11-25 21:28:47 +08:00
Adam Harrisonandtakase1121 1d4e01a192 Fixed a minor bug, should close issue #1680. 2023-12-29 08:47:21 +08:00
Adamandtakase1121 3bf3266ca5 Made coroutines make more sense, and fixed a bug. (#1381)
* Made coroutines make more sense, and fixed a bug.

* Fixed typo.

* Additional checking for off-cycles.

* Fixed issue with calling step too much.

* If we have no redraw, set next step time for next frame.

* Added in `now` variables to reduce calls.
2023-11-29 09:41:34 +08:00
Adam Harrisonandtakase1121 c279ef0034 Updated README.md as per PR comittee meeting #8. 2023-08-19 13:31:31 +08:00
Adam Harrisonandtakase1121 793af14dca Fixing linewrapping bug to do with wordwrapping. 2023-08-19 12:45:15 +08:00
Adamandtakase1121 6deca53303 Disable trimwhitespace and drawwhitespace via their configs (#1446)
Instead of completely disabling them, we now use their internal toggle.

Also moved `drawwhitespace` commands inside the plugin.

---

* Fixed bug where commands would show even when plugin was disbled. Also removed antiquated way of disabling.

* Fixed typos.

* Also moved trimwhitespace out of config, if it already has a default enabled value of false.

* Changed documentation.

* Clarified comments.
2023-08-19 12:39:22 +08:00
Adamandtakase1121 c8f033ec8b Fixed up some post 5.1/jit Symbols (#1385)
* Updated k functions to have appropriate method signatures for 5.3 and up.

* Fixed up some inconsistent signatures that I forgot.
2023-08-19 12:38:13 +08:00
Adamandtakase1121 017711b369 Getting rid of annoying forward slash on windows. (#1345) 2023-08-19 12:30:41 +08:00
Adam Harrisonandtakase1121 5907118683 Added missing header declaration. 2023-08-19 12:29:18 +08:00
Adam Harrisonandtakase1121 4c18cf6744 Updated dummy method signature to match prototypes. 2023-08-19 12:28:48 +08:00
AdamandGitHub 1446d95695 Update changelog.md 2022-12-22 11:52:41 -05:00
AdamandGitHub 3674a9140c Update changelog.md
Added in note about dirmonitor changes.
2022-12-22 11:52:23 -05:00
Adam Harrison 5ab8dc0275 Converted from bytes to characters, as this is what windows is expecting. 2022-12-18 14:49:59 -05:00
AdamandGitHub 9951e785b6 Getting ready for 2.1. (#1181)
* Getting ready for 2.1.

* Fixed version.

* Year.

* Manually added line as takase said to.

* Fixed minor issue at takase's behest.

* Dunno where that went.

* Updated to use a function pointer.

* OK, as discussed, adding this manually for now.

* Updated SDL.
2022-11-02 03:38:58 +01:00
Adam Harrison 3bd567f5e1 Fixed small plugin header error. 2022-11-01 21:01:25 -04:00
AdamandGitHub dd6eee1542 Fixed the common idiom of setting a plugin to true. (#1152) 2022-10-20 18:04:28 -04:00
Adam 1c5936e697 Fixup minor drawing issue. 2022-10-18 16:01:32 -04:00
AdamandGitHub d1c74f529a Changed workspace to accommodate other views. (#1121)
* Added in the ability to pull scrolls from views, as all views have the capability of scrolling now.
2022-10-09 19:55:07 -07:00
AdamandGitHub dad0f79708 Fixed process layer argument quoting; allows for strings with spaces. And added ability to specify a literal, in the style of python. (#1132) 2022-10-09 19:53:48 -07:00
AdamandGitHub 9e816154ad Added in an additional ENVVAR for setting USERDIR, and also changed / to PATHSEP. (#1139)
* Added in an additional ENVVAR for setting USERDIR, and also changed / to PATHSEP.

* Forgot a /
2022-10-08 20:48:30 +02:00
Adam e34a3ca78f Stealthy fix of list_dir on windows with single letter directories. 2022-10-04 21:06:23 -04:00
AdamandGitHub 293110feaa Fix process api detach bug (#1137)
* Added in conditional, as detaching will fail with "Operation not permitted" on linux; setsid sets a new process group anyway.

* Added in variable to check detached state on cleanup, so we don't send TERM.
2022-10-04 20:02:22 -04:00
AdamandGitHub 1580d923d3 Fixing minor bug relating to TreeView's cache. (#1136)
Reviewed by Guldo; should fix things, merging.
2022-10-04 18:26:33 -04:00
AdamandGitHub 6bb08fc68f Added in ability to have init.so as a require for cpath. (#1126) 2022-09-25 17:08:21 -04:00
AdamandGitHub 5ada80b9df Added in native modules suffixes. (#1111)
* Added in native modules with suffixes, giving priority to those with matching architectures and platforms.

* PowerPC isn't x86, and it's x86_64.

* Changed things over to allow compiler to set a tuple, makes more sense from a build perspective.

* Spelling mistake.

* Added in arm target tuples.
2022-09-18 18:27:50 -04:00
AdamandGitHub 10d810b7d7 Added in simple directory search to treeview. (#1110) 2022-09-14 00:14:13 -04:00
Adam 4f17667d42 Changed setpgrp to a more portable form. 2022-09-02 20:26:13 -04:00
AdamandGitHub 6ccc5f6dde Steps to generalize toolbar and treeview. (#1088) 2022-08-09 14:53:30 -04:00
Adam e784513222 Missing header. 2022-06-24 20:21:15 -04:00
Adam Harrison 67066fc93a Added in defaults for dirwatch. 2022-06-01 18:36:00 -04:00
Adam Harrisonandjgmdev daeb2a8e04 Made sure we redrew things, added in a contingency in 'save' for times when we load a non-existent file, and added some checks. 2022-05-15 15:25:02 -04:00
Adam Harrisonandjgmdev 5a0d213f3b Changed things over to use dirwatch. 2022-05-15 15:24:44 -04:00
Adam Harrisonandjgmdev 20dc101229 As per request from jgmdev, added in ability to show nagview always. 2022-05-15 15:24:28 -04:00
Adam Harrisonandjgmdev 173370694e Split out reload functionality to actual document, and added in a thread to check the document, in the cases where it wouldn't be covered by dirwatch. 2022-05-15 15:24:17 -04:00
Adam Harrisonandjgmdev d56f4e1ee5 Modified autoreload to use new dirwatch infrastructure, and added in nagview to verify that fs changes don't stomp on our changes, unless you want them to. 2022-05-15 15:23:59 -04:00
AdamandGitHub 36c4d5d9ed Autoreload Nagview (#942)
* Modified autoreload to use new dirwatch infrastructure, and added in nagview to verify that fs changes don't stomp on our changes, unless you want them to.

* Split out reload functionality to actual document, and added in a thread to check the document, in the cases where it wouldn't be covered by dirwatch.

* As per request from jgmdev, added in ability to show nagview always.

* Changed things over to use dirwatch.

* Made sure we redrew things, added in a contingency in 'save' for times when we load a non-existent file, and added some checks.
2022-05-15 15:21:26 -04:00
Adam Harrison 0315d397bd Removed undefined behaviour by using poll over select. 2022-05-09 23:12:43 -04:00
AdamandGitHub 6229f74ccd Merge branch 'master' into master-2.1 2022-05-09 21:36:10 -04:00
Adam f1f8a9b3f2 TreeView Changes (#898)
* Change to 1 click as per RFC on discord, with 100% in favour.

* Added in the ability to specify  as a view name, so it doesn't modify the title, and also fixed a bug where if you clicked *over* the amount of times your config says, it wouldn't regsiter.

* Changed plugin to use keymap.
2022-05-09 21:33:22 -04:00
Adam Harrison ddc3a8842b Fixed dirwatch dummy, and scanning. 2022-05-09 21:30:13 -04:00
Adam Harrison d8436d1e92 Bumped verison number in meson. 2022-05-06 11:51:30 -04:00
Adam Harrison 2eaba8ab92 Erroneously added padding. 2022-05-04 20:08:08 -04:00
Adam Harrison 09bfb8d869 Updated linewrap and autocomplete to use the new get_line_screen_position which takes a col. 2022-05-04 20:05:41 -04:00
Adam Harrison 8345a04d04 Updated treeview to match convention. 2022-05-03 23:13:49 -04:00
Adam Harrison 94abf66444 Fixed minor race condition. 2022-05-02 22:36:54 -04:00
Adam Harrison 91797d65d1 Fixed minor race condition. 2022-05-02 22:35:21 -04:00
Adam Harrison 548dbf67c2 Added in log to show total time. 2022-04-30 16:23:05 -04:00
Adam Harrison b7db7cd533 Added plugin load-time log. 2022-04-28 21:42:53 -04:00
AdamandGitHub 4934e741b3 TreeView Changes (#898)
* Change to 1 click as per RFC on discord, with 100% in favour.

* Added in the ability to specify  as a view name, so it doesn't modify the title, and also fixed a bug where if you clicked *over* the amount of times your config says, it wouldn't regsiter.

* Changed plugin to use keymap.
2022-04-26 18:29:05 -04:00
Adam Harrisonandjgmdev 9f7c6974ae Make sure pipes are closed on exec. 2022-04-26 12:14:38 -04:00
Adamandjgmdev 4bf4851736 Asynchronous Reads for Dirmonitor (#930)
Change dirmonitor reads to be synchronous, in a secondary thread.
2022-04-26 12:13:39 -04:00
Adam Harrisonandjgmdev 6f65168b0d Fixed windows dirmonitor issues. 2022-04-26 12:04:41 -04:00
Adam Harrison d8f202e251 Make sure pipes are closed on exec. 2022-04-24 21:13:18 -04:00
AdamandGitHub 5df1640595 Merge branch 'master' into master-2.1 2022-04-24 13:42:24 -04:00
AdamandGitHub 97174706fe Asynchronous Reads for Dirmonitor (#930)
Change dirmonitor reads to be synchronous, in a secondary thread.
2022-04-24 13:40:58 -04:00
Adam Harrison c112bd8d7c Significantly improved performance of tokenization for larger documents by by default not requiring tokenization. 2022-04-17 13:01:45 -04:00
Adam HarrisonandGuldoman d323917538 Added in check in case of nil. 2022-04-15 00:07:20 +02:00
AdamandGitHub 683d23e3ba Changed calculation to use ascender, which should work better. (#912) 2022-04-04 10:38:43 -04:00
Adam Harrison 04adb10f97 Added in check in case of nil. 2022-04-03 16:44:02 -04:00
Adam Harrison 974fd9c8d5 Fixed windows dirmonitor issues. 2022-04-03 16:44:02 -04:00
Adam Harrison 562e284d04 Fixed some minor issues with linewrapping. 2022-04-03 16:44:02 -04:00
Adam Harrison 11dfb5b1ca Apparenlty these were issues? What? 2022-04-03 16:44:02 -04:00
Adam 3479890ce5 Soft Line Wrapping (#636)
Added in soft line wrapping.
2022-04-03 16:44:02 -04:00
Adam Harrison 048d250f5e Added in notes to the changelog. 2022-04-03 16:44:02 -04:00
Adam Harrison 45a0382d50 Bumping version numbers. 2022-04-03 16:44:02 -04:00
Adam Harrison 3e7a97737e Re-enabled comment cache. 2022-03-22 10:35:44 -04:00
Adam Harrison 17645ba4ec Fixed anonyous syntaxes. 2022-03-22 10:17:42 -04:00
Adam Harrison ba5289dc75 Typo. 2022-03-17 16:57:18 -04:00
Adam Harrison 82325b6a08 Fixed a bunch of problems. Fixed left+click not allowing for square selections, fixed esc not exiting multicursor mode, and allowed cntrl+click to remove a cursor. 2022-03-17 16:55:52 -04:00
AdamandGitHub 960b482061 Fixed some issues with inotify and multiple events at the same time. (#872)
* Fixed some issues with inotify and multiple events at the same time. Seems to be working now.

* Cleaned up and simplified function, and commented, and fixed a number of bugs.

* Simplifying and fixing further.

* Improved performance for skipping large amounts of files.

* Added in extra checks, and changed paths. We should probably unify these path styles.

* Fixed stutter.

* Removed extraneous functions.

* Cleaned up more, added more testing; dealt with multiple sequential events correctly.
2022-03-08 19:30:25 -05:00
f85612e0f0 Fix Project Scanning (#746)
Removed dmon, and replaced with logic that works across Linux, Mac, FreeBSD and Windows. Have tested on all platforms, and seems to work.

Co-authored-by: Jan200101 <sentrycraft123@gmail.com>
2022-03-06 00:59:22 -05:00
AdamandGitHub 61e712db12 Fixed rendering computations for y offset. (#843)
* Fixed rendering computations for y offset.

* Force monospacing if every ascii character has the same integer advance.

* Added in explanatory comment.

* Fixed issues.

* Made lines less long.
2022-02-15 15:57:07 -05:00
AdamandGitHub 05e1968b0b Merge pull request #845 from Guldoman/file_drop_override
Add `View:on_file_dropped`
2022-02-15 11:44:37 -05:00
AdamandGitHub a6f32ca0d0 Merge pull request #822 from AlexSol/update_contextMenu
Travel by contextMenu using keyboard
2022-02-11 12:10:14 -05:00
AdamandGitHub 3a0af6ee04 Merge pull request #828 from adamharrison/signal-processes
Changed signalling so it'll target the whole process group.
2022-02-11 12:01:53 -05:00
AdamandGitHub af6a06bc8b Merge pull request #832 from jgmdev/autocomplete-update
Update autocomplete with changes needed for latest LSP plugin.
2022-02-11 12:01:35 -05:00
AdamandGitHub b05a02cb28 Merge pull request #839 from jgmdev/nil-nodes-fix
Fix cases of nil node.
2022-02-11 11:52:43 -05:00
AdamandGitHub a4833b21e4 Merge pull request #842 from Guldoman/no_scroll_selection
Don't scroll when selecting the whole doc
2022-02-11 11:48:01 -05:00
AdamandGitHub 212d4e2729 Merge pull request #833 from jgmdev/add-system-get_process_id
Implemented system.get_process_id()
2022-02-04 12:24:54 -05:00
AdamandGitHub e5f17aea4b Merge pull request #821 from dheisom-gomes/improvements
Improvements on core.add_thread function
2022-02-03 19:23:54 -05:00
AdamandGitHub d78f310a4e Merge pull request #829 from Guldoman/draw_rect_alpha_format
Use SDL to manage color format mapping in `ren_draw_rect`
2022-02-03 17:02:49 -05:00
Adam Harrison d2d5617774 Changed signalling so it'll target the whole process group. 2022-01-30 20:51:30 -05:00
Adam Harrison af76f544be Fixing performance regression. Due to the way the hashes work, we must 0 out the whole thing. 2022-01-29 15:19:22 -05:00
AdamandGitHub 3d40725b8f Merge pull request #816 from adamharrison/fix-process-api
Fixing up Process API
2022-01-28 23:53:37 -05:00
Adam Harrison 941523868e Merge branch 'fix-process-api' of github.com:adamharrison/lite-xl into fix-process-api 2022-01-28 15:44:16 -05:00
Adam Harrison 3773a812bd Incorporate realtakase's suggestions. 2022-01-28 15:39:57 -05:00
AdamandGitHub 0a70b13a73 Merge pull request #809 from lite-xl/merge-master-2.0
Merge master 2.0
2022-01-28 14:38:22 -05:00
Adam Harrison 456126400a Added in new merge method, and run it on plugins. Also made it so plugin configs can be set anywhere, even if we don't know the plugin beforehand. 2022-01-22 18:39:23 -05:00
AdamandGitHub 7e6d9df58d Merge pull request #805 from Jan200101/PR/fallback-force
use lua fallback earlier when fallbacks are forced
2022-01-22 17:30:01 -05:00
Adam Harrison f9ad83e53e Fixed windows not converting utf8 environment block to utf16. 2022-01-22 13:34:47 -05:00
Adam Harrison ed4128bc65 Added in support for env on linux. 2022-01-22 12:36:30 -05:00
Adam Harrison 428c757a13 Implemented @guldoman's suggestion for how to close file handles. 2022-01-22 12:02:59 -05:00
AdamandGitHub 9cb25acd7b Merge pull request #815 from takase1121/fix-subprocess-read
fix invalid memory access
2022-01-22 11:18:19 -05:00
AdamandGitHub 8c8bd4692c Merge pull request #808 from adamharrison/fix-commenting
Fix commenting selections.
2022-01-20 23:28:05 -05:00
Adam Harrison b523bd5cee Fixed end of block-style line comments. 2022-01-20 22:17:21 -05:00
AdamandGitHub 6025c43241 Merge pull request #743 from takase1121/better-logview
multiple improvements to logging
2022-01-18 23:25:36 -05:00