Commit Graph
100 Commits
Author SHA1 Message Date
TakaseandGitHub 7107f88f9f save a reference to the font when calling renderer.draw_text. (#1156)
This prevents the GC from killing it.
2022-10-13 22:52:38 -04:00
TakaseandGitHub 34c4ac3cd5 add parameter validation to checkcolor and f_font_group (#1145) 2022-10-10 11:44:19 -04:00
TakaseandGitHub 3409929a0c draw lite-xl icon in TitleView (#1143)
the original hamburger menu icon is confusing. It is not a menu
and clicking it doesn't do anything. There is no reason why
we can't draw lite-xl's icon in place of that.
2022-10-10 11:05:30 -04:00
TakaseandGitHub 4e1ce07610 make system.* functions support UTF8 filenames (#1042)
* make system.* functions support UTF8 filenames
* move utfconv.h into ifdef guard
* fix wrong null check
2022-06-17 09:31:52 -04:00
takase1121 bccc02743a add option to patch lua with UTF8 support 2022-06-16 13:35:38 +08:00
takase1121 7ecc174094 fix memory leak and wrong check in font_retrieve 2022-06-15 23:23:13 +08:00
takase1121 42e0028f1c run GC between scale to prevent ram from exploding 2022-06-15 22:56:52 +08:00
takase1121 0de90d542b omit filename from error message 2022-06-15 16:05:20 +08:00
takase1121 093ae837ee add .cache to gitignore 2022-06-15 16:04:37 +08:00
takase1121 73cd768a19 load space metrics only instead of all metrics of the 1st 256 characters 2022-06-12 08:22:01 +08:00
takase1121 dc2e9621ca lua patch for utf-8 support 2022-06-11 21:01:12 +08:00
takase1121 3bd679da12 make lite-xl respect the taskbar and allow aero-drop in borderless mode 2022-05-23 13:10:11 +08:00
takase1121andjgmdev d5da711b6f add selections in treeview 2022-03-18 03:11:13 -04:00
takase1121 f24ebf853d fix invalid memory access 2022-01-22 23:30:48 +08:00
takase1121 fc809b3172 comment the entire line when using block comment 2022-01-08 18:45:38 +08:00
takase1121 087314aea4 fix lhelper script 2022-01-07 17:31:24 +08:00
takase1121 df0f6fb94c make set_selections consistent 2022-01-02 19:18:08 +08:00
takase1121 e079ddfa37 refactor toggle-block-comments, make command spaces aware, set selections correctly 2022-01-02 19:14:03 +08:00
takase1121 33f7fe4fda toggle comment for whole line if nothing is selected 2021-12-26 15:12:28 +08:00
takase1121 69a857bbbf fallback to toggle-line-comment and vice versa if needed 2021-12-26 15:05:27 +08:00
takase1121 4d31b1bc40 add toggle-block-comment 2021-12-25 12:57:00 +08:00
takase1121 16df6d8bce add option for initial size 2021-12-24 21:32:28 +08:00
takase1121 84a3906323 fix FontGroup __gc method 2021-12-24 15:04:52 +08:00
takase1121 00e2e281d3 remove unsaved flag from log.txt 2021-12-22 10:54:25 +08:00
takase1121 2f65d5a26f make the date field consistent 2021-12-22 10:53:53 +08:00
takase1121 8f06ef9b81 ensure date is rendered properly 2021-12-22 10:50:35 +08:00
takase1121 54f6579e9d change INFO to use style.text 2021-12-21 17:38:25 +08:00
takase1121 3e175f5ad5 Merge branch 'master' of github.com:lite-xl/lite-xl into better-logview 2021-12-21 17:37:19 +08:00
takase1121 8d7867d118 adapt style.good and style.error 2021-12-21 17:36:32 +08:00
TakaseandGitHub f2ff32d5a7 Merge pull request #583 from takase1121/process-docs-update
update process API docs
2021-12-20 20:06:18 +08:00
takase1121 695c7bf781 add instruction when logview is open 2021-12-19 09:36:43 +08:00
takase1121 1526cd176c move selection logic to mouse click 2021-12-19 09:36:24 +08:00
takase1121 becdb99222 center icons to accomodate for size difference 2021-12-18 22:42:33 +08:00
takase1121 31df408d93 make timestamp fix sized 2021-12-18 20:11:50 +08:00
takase1121 fd3b4334ce add clipping to drawing log items 2021-12-18 20:11:24 +08:00
takase1121 b5dff196f6 make error icon red 2021-12-18 20:10:25 +08:00
takase1121 ab4ecd515b multiple improvements to logging
- added style.log table
- removed contextmenu
- use ctrl+click to copy individual log entries
- use icon instead of + or - for log items in logview
2021-12-18 10:51:44 +08:00
takase1121 d307c57d05 update header 2021-12-01 20:44:17 +08:00
takase1121 aff1261b08 move NULL check to import side 2021-12-01 20:42:49 +08:00
TakaseandGitHub d7c309d8e2 Merge branch 'master' into lineguide-config 2021-11-17 11:59:59 +08:00
takase1121 b42f48782b revert system.c
do not generate the exported symbols with the script
2021-11-17 08:58:44 +08:00
TakaseandGitHub 8e6f594790 Merge branch 'master' into replace-unpack 2021-11-17 08:42:08 +08:00
takase1121 6d36f2684a add polyfill for table.pack and table.unpack 2021-11-17 08:37:37 +08:00
TakaseandGitHub 285ea4f495 Merge branch 'master' into keymap-improvements 2021-11-15 21:59:04 +08:00
TakaseandGitHub 2033b67dae make labeler recursive
this is mentioned by Jan in Discord.
2021-11-10 08:12:27 +08:00
TakaseandGitHub d22bf520ed Keymap generator (#503)
add keymap generator
2021-11-08 12:44:09 +08:00
takase1121 68eb6810d9 update headers 2021-11-08 12:18:13 +08:00
takase1121 b26ffb4731 add warning if the symbol cannot be exported 2021-11-08 12:17:50 +08:00
takase1121 8bcc2d20f4 stylistic changes
removes comment from luaconf.h
add comment to signify filename
2021-11-08 12:17:26 +08:00
takase1121 e785bbf1bf update generated headers 2021-11-06 20:39:10 +08:00
takase1121 ad58f8898f make some stylistic changes
self printing isn't really needed now the script is in scripts/.
This will also fix a gcc warning
2021-11-06 20:36:33 +08:00
takase1121 d0a54227d8 update generated headers 2021-11-06 20:25:20 +08:00
takase1121 ac50404337 print luaconf.h into the output 2021-11-06 20:24:40 +08:00
takase1121 3982a8b31c fix possible nested comment 2021-11-06 20:24:17 +08:00
takase1121 acab4e3b26 support ignoring certain symbols 2021-11-06 20:20:36 +08:00
takase1121 9003a9124a refactor api_require function into a machine generated file 2021-11-06 19:24:12 +08:00
takase1121 a9d7ddc6e1 add support for export and import symbols
adds a lot of improvement to the script
- proper CLI
- generate a api_require.h which contains a function that export the symbols
2021-11-06 19:22:55 +08:00
takase1121 46f9bcb90c fix lite_xl_plugin_api.h
This fixes a longstanding bug with the plugin API.
This commit is not complete, further polish is still needed.
2021-11-05 22:42:52 +08:00
TakaseandGitHub b128d8b4c4 update process API docs
- add more description to each option
- add disclaimer that process.REDIRECT_DEFAULT should no longer be used
2021-10-04 12:32:48 +08:00
takase1121 27fe185ed4 fix unable to load any native library
something went wrong in snprintf that it skips the first character of
the library name. Not only that, the signature is actually luaopen and
not lua_open.
2021-09-25 10:31:15 +08:00
takase1121andFrancesco 7a24dbb17e revert new keyboard bindings 2021-09-09 07:44:58 +02:00
takase1121andFrancesco 1a21c66353 add autocomplete:cycle
Some (probably lots) of people are used to tabbing through autocomplete.
now, tab is binded to autocomplete:cycle while enter is binded to
autocomplete:complete.
2021-09-09 07:44:58 +02:00
takase1121 5cc23348a1 reverse the order of args in keymap.unbind 2021-09-08 23:17:50 +08:00
takase1121 7e4236a82f add keymap.unbind(), update contextmenu to use keymap.get_binding()
This is something probably people are looking for...
2021-09-08 23:11:36 +08:00
TakaseandFrancesco Abbate fb907c9bf4 increase code readibility 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 97493a1a4e add doc:get_selection_text() 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 30d3751632 remove unused variable 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 14565b5226 more changes to logview
- remove draw_text_elipsis
- remove clip rect operations
- fix text drawing when expanded
- simplify code
2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate e25ea1196a add context menu options for logview 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 622b162225 add core.get_log() 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate afaf0a718d improve logview
The logview is now less cluttered.
The filename and stack trace (if any) is hidden by default.
The user can click on the log entry to expand it.
2021-09-07 14:59:03 +02:00
takase1121 30ccde896d replace unpack() with table.unpack()
I have no idea unpack() is still used and how it still worked.
2021-08-29 09:14:12 +08:00
TakaseandFrancesco 816ceb4493 increase code readibility 2021-08-24 11:35:53 +02:00
takase1121andFrancesco cf7ebdad1f add doc:get_selection_text() 2021-08-24 11:35:53 +02:00
takase1121andFrancesco 1d9f04e7d6 remove unused variable 2021-08-24 11:31:22 +02:00
takase1121andFrancesco 6ac1428b51 more changes to logview
- remove draw_text_elipsis
- remove clip rect operations
- fix text drawing when expanded
- simplify code
2021-08-24 11:31:22 +02:00
takase1121andFrancesco 2fec3052ce add context menu options for logview 2021-08-24 11:31:22 +02:00
takase1121andFrancesco 7c3daa0f39 add core.get_log() 2021-08-24 11:31:22 +02:00
takase1121andFrancesco cb639700b3 improve logview
The logview is now less cluttered.
The filename and stack trace (if any) is hidden by default.
The user can click on the log entry to expand it.
2021-08-24 11:31:22 +02:00
takase1121andFrancesco 419cd58c8f remove x11 dependency in meson.build 2021-08-17 07:53:44 -07:00
takase1121andFrancesco 35fd29fc39 remove extraneous DPI code
since 5 months ago (ttps://github.com/libsdl-org/SDL/commit/c289bad9007cb672c994f726d967f6e5682f200d)
SDL2 now reads Xft.dpi. There is no need to link to X11 anymore.
2021-08-17 07:53:44 -07:00
takase1121 1725b3ab83 revert config.lineguide option 2021-08-02 09:57:21 +08:00
takase1121 3b3677ca4b add config.lineguide option 2021-08-02 09:57:21 +08:00
takase1121andAdam Harrison 6bcdaa9d7a Revert "fix number of parameters passed to self:move_towards"
Apparently the LSP intellisense is wrong on this one, this actually
causes an infinite loop
2021-07-15 18:01:27 -04:00
takase1121andAdam Harrison 169b8abae5 fix number of parameters passed to self:move_towards
self:move_towards(self) causes self to be passed twice, ignoring rate
2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison 4ef707e941 add compile_commands.json to gitignore
Apparently ccls needs it to work, and it's usually located in project
root. I symlinked it from the build folder and now I should put it in
gitignore
2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison c7bbf221ee remove duplicated constants 2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison 192a93014d change double quotes to single quotes to reduce escaping 2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison 818e21610c do not terminate process when read fails 2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison de3013ce88 fix wrongly spaced variable name 2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison e7b025203b add generic read function
process_read and process_read_errors no longer contain redundant code
2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison 8bbb26a469 refactor process.c
- include api.h instead of individual #includes
- moved metatable name to API_TYPE_PROCESS
- moved read buffer size to READ_BUF_SIZE
2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison c41747c8fb add .ccls-cache to .gitignore
For that one user that uses ccls :)
2021-07-15 18:01:24 -04:00
takase1121andAdam Harrison f4f33bd36b remove deprecated code 2021-07-15 18:01:24 -04:00
TakaseandGitHub 0fd1fa8872 Commands refactor (#257)
* remove unecessary check

* move command registration to core/commands
2021-06-07 23:00:29 +02:00
TakaseandGitHub 130b29438a Allow creation of nested directories (#254)
* allow nested directories to be created

* fix / be turned into //

* refactor error handling

* refactor path splitting and mkdir calls

If a path exists it will now return immediately.

* fix typo

* remove possible trailing empty string

* fix bugs with path check
2021-06-07 22:44:35 +02:00
takase1121 cd5c64fe8c prevent mouse movement from propagating when context menu is open 2021-06-05 08:51:17 +08:00
takase1121 794cf3813a export context menu 2021-06-05 08:47:32 +08:00
TakaseandGitHub 63b9cf223e NagView improvements (#136)
Implement keyboard commands for the NagView.
2021-04-04 16:11:47 +02:00
TakaseandGitHub 49cde08ed6 Use Xlib to read resources (#142) 2021-04-02 16:43:21 +02:00