Adam
f1054b8280
Replace Reproc ( #535 )
...
Replace reproc with simpler non-dependency-based process API.
2021-12-11 15:25:35 -05:00
Jipok
c3b7234315
Keyboard layout independent shortcuts
2021-12-11 23:42:15 +05:00
Adam
8120654c59
Merge branch 'master' into plugin_api_h_fix
2021-12-05 22:11:47 -05:00
takase1121
aff1261b08
move NULL check to import side
2021-12-01 20:42:49 +08:00
Adam
d7b6fe3d42
Merge pull request #688 from adamharrison/mono-font
...
Add Support for `none` Antialiasing
2021-11-23 15:59:07 -05:00
Adam Harrison
96db380c73
Manual merge of into .
2021-11-23 15:57:22 -05:00
Adam Harrison
bc5be3c9b7
Support no antialiasing.
2021-11-22 18:13:43 -05:00
takase1121
b42f48782b
revert system.c
...
do not generate the exported symbols with the script
2021-11-17 08:58:44 +08:00
Adam Harrison
6750ddca2a
Changed name of x1 and x2 to x and y.
2021-11-14 15:46:33 -05:00
Adam Harrison
ce2ec9f442
Moved commands out to the outer event loop.
2021-11-14 15:41:28 -05:00
Adam
0db3648966
Merge pull request #660 from adamharrison/improved-heuristic
...
Improved heuristic to pay more attention to string length.
2021-11-12 17:47:46 -05:00
takase1121
68eb6810d9
update headers
2021-11-08 12:18:13 +08:00
Adam
4e26a9fb2d
Merge pull request #621 from adamharrison/fix-renderer-mappings
...
Handles occasions where our color bytes aren't in the order we expected.
2021-11-07 15:30:57 -05:00
Adam Harrison
934f9c05d4
Screwed up checks.
2021-11-07 15:01:03 -05:00
Adam Harrison
a184ec9cc3
Improved heuristic to pay more attention to string length.
2021-11-07 14:04:42 -05:00
takase1121
e785bbf1bf
update generated headers
2021-11-06 20:39:10 +08:00
takase1121
d0a54227d8
update generated headers
2021-11-06 20:25:20 +08:00
takase1121
9003a9124a
refactor api_require function into a machine generated file
2021-11-06 19:24:12 +08:00
Adam
90714c48e1
Update renderer.c
...
Upped limit to 1024.
2021-11-01 10:03:36 -04:00
Adam Harrison
b7cb7e2b67
Just added MAX. More inline with other constant.
2021-10-31 13:34:46 -04:00
Adam Harrison
9e67995feb
Expand glyphsets to accomodate emojis.
2021-10-31 13:27:51 -04:00
Jan200101
e313eb0e2e
ensure command alignment is correct
2021-10-28 08:40:18 +02:00
Francesco
6f732f67f9
Merge pull request #612 from Guldoman/fix_regex
...
Fix regex in tokenizer
2021-10-22 21:44:44 +02:00
Francesco Abbate
ddb6196e9e
Force project rescan on network filesystems
2021-10-21 23:57:17 +02:00
Francesco Abbate
7bdfcd529e
Add a function to detect filesystem type on linux
2021-10-21 23:24:38 +02:00
Adam Harrison
461533eabf
Handles occasions where our color bytes aren't in the order we expected.
2021-10-20 18:43:22 -04:00
Adam
3f1378ab2e
Merge pull request #616 from adamharrison/font-groupings
...
Added in support for fallback font groupings.
2021-10-20 11:00:40 -04:00
Adam Harrison
b816a04d27
Added in a missing static.
2021-10-17 00:39:08 -04:00
Adam Harrison
16fc15daee
Allowed for a white square as part of the other groups.
2021-10-17 00:26:20 -04:00
Adam Harrison
cab315bed1
Added in a rectdraw when a fallback glyph isn't present.
2021-10-17 00:22:27 -04:00
Adam Harrison
c7c4a3c528
Clarified.
2021-10-17 00:10:40 -04:00
Adam Harrison
d1fcdacacd
Broke out font groupings.
2021-10-16 23:49:42 -04:00
Adam Harrison
7575d2eee6
Fixed minor issue.
2021-10-16 23:32:17 -04:00
Adam Harrison
3092dca919
Changed computation to take into account alpha blending.
2021-10-16 22:59:41 -04:00
Adam Harrison
f2488fdd8d
Added in support for font groupings.
2021-10-12 23:24:52 -04:00
Adam
3e2b0f28c8
Merge pull request #596 from adamharrison/fix-clip-boundaries
...
Fixed clip boundaries.
2021-10-12 21:51:52 -04:00
Adam Harrison
7c1ff0f3d8
Fixed writing before clip.
2021-10-12 21:22:02 -04:00
Jan200101
d3fa64ce59
rely on /proc/self
2021-10-12 09:06:37 +02:00
Adam Harrison
d2e16ce0b5
Fixed clip issues if glyph exists before clip.x
2021-10-11 22:29:53 -04:00
Guldoman
038e335c8c
Show error message when `pcre2_match` fails
2021-10-11 22:20:44 +02:00
Francesco Abbate
0f8d7f3202
Do no add rencache a command for empty rectangles
2021-10-10 14:58:51 +02:00
Francesco Abbate
cb08c5cbb7
Fix dirty pixels problem on window's right side
...
The last column of pixel on the window's right side isn't correctly
drawn and pixels appear dirty and more noticeably when the a NagView
message was previously shown, a stripe of red pixels remains on the right.
We use now a more souding roundig scheme. Now the rectangles to clip or to
draw are passed around as Lua numbers without any rounding. In turns, when
the rect coordinates are passed to the renderer we ensure the border of the
rect are correctly snapped to the pixel's grid. It works by computing the
coordinates of the edges, round them to integers and then compute the rect's
width based on the rounded coordinates values.
2021-10-10 14:52:55 +02:00
Francesco Abbate
911a3cee08
Report dmon modify events
2021-10-08 23:13:50 +02:00
Francesco Abbate
a9f6f01ed0
Move dmon files into lib/dmon
2021-10-08 22:10:17 +02:00
Francesco Abbate
bba42adc73
Adopt new version of dmon
2021-10-08 21:55:43 +02:00
Francesco Abbate
9c43727ebc
Implement directory monitoring using septag/dmon
...
Use a notification based directory monitoring based on the
septag/dmon lirbary instead of periodically rescan the whole
project's tree.
2021-10-08 21:31:22 +02:00
Adam Harrison
fe787de97a
Fixed clip boundaries.
2021-10-07 18:54:23 -04:00
Adam Harrison
26ec2d7090
Fixed negative pens.
2021-10-02 14:13:39 -04:00
Francesco
eb79381c89
Merge pull request #521 from adamharrison/remove-font-renderer
...
Remove Font Renderer + CP Replace + libagg
2021-10-02 18:45:31 +02:00
Jean-André Santoni
0b4d1e2bce
Fix the size and blurriness of the icon on OSX ( #553 )
...
* Fix the size and blurriness of the icon on OSX
* Don't nest ifndef
* Fix
2021-10-02 18:39:22 +02:00
Adam
6aa316e3c3
Rearranged DPI calc so that on calc failure, returns 1. ( #547 )
2021-10-02 18:39:21 +02:00
Adam
ed3ea35ed5
Potentially fixing issue with cache not invalidating on restart. ( #548 )
2021-10-02 18:39:21 +02:00
Adam Harrison
291616df3f
Removed extra macros, used PLATFORM. Also removed MACOS, as it's redundant C code that's already encapsulated within PLATFORM.
2021-10-02 18:39:03 +02:00
Francesco Abbate
48475c70a0
Avoid unnecessary call to SDL_GetModState
2021-10-02 18:37:01 +02:00
Adam
ab73f914ad
Added in custom runtime environment variable for ease of testing. ( #538 )
2021-10-02 18:37:00 +02:00
Francesco
0ff0ee2c61
Fix numpad fn keys ( #532 )
...
* Fix the numeric keypad function keys
As suggested in:
https://github.com/lite-xl/lite-xl/issues/64
* Apply scancode lookup to KEY_UP events
2021-10-02 18:37:00 +02:00
Adam Harrison
c5f60a7865
Fixed issues if one got into high codepoint ranges.
2021-10-01 23:56:36 -04:00
Adam Harrison
531cd3bedb
Fixed issue with metrics.
2021-10-01 21:20:44 -04:00
Jean-André Santoni
eb73ad3f8a
Fix the size and blurriness of the icon on OSX ( #553 )
...
* Fix the size and blurriness of the icon on OSX
* Don't nest ifndef
* Fix
2021-09-29 22:22:00 +02:00
Adam Harrison
7a21ec382f
Unecessary call..
2021-09-26 20:09:51 -04:00
Adam Harrison
4690459a13
Used different weights.
2021-09-26 19:46:32 -04:00
Adam
8f8af19cbe
Rearranged DPI calc so that on calc failure, returns 1. ( #547 )
2021-09-26 16:21:57 +02:00
Adam
84622a0009
Potentially fixing issue with cache not invalidating on restart. ( #548 )
2021-09-26 16:18:13 +02:00
Adam Harrison
ecbdb7a945
Reverted bledthrough changes.
2021-09-25 13:01:01 -04:00
Adam Harrison
8816131780
Added in a float for rencache.
2021-09-25 12:55:20 -04:00
Adam Harrison
b17aa3b068
Addressed issue where glyphs would continue to draw past their clip.
2021-09-25 00:45:19 -04:00
Adam Harrison
42d72cc296
Missed a float.
2021-09-25 00:37:08 -04:00
Adam Harrison
806e4bc970
Converted all ints to floats for x coordinate purposes.
2021-09-25 00:35:55 -04:00
Adam Harrison
d07d0e6d22
Made width return a floating point.
2021-09-24 23:34:19 -04: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
Adam Harrison
c5fda5237f
Added in correcion calculations for surface_scale.
2021-09-24 11:23:49 -04:00
Adam Harrison
940db0f9c7
Added in underline as well.
2021-09-24 11:23:49 -04:00
Adam Harrison
16deedc8a3
Fixed up some naming conventions, and also added bolding and italics.
2021-09-24 11:23:49 -04:00
Adam Harrison
c879e016cc
Removed lib font renderer mention.
2021-09-24 11:22:39 -04:00
Adam Harrison
be6bcbcacc
Meson build updated.
2021-09-24 11:22:39 -04:00
Adam Harrison
e25f2e9c5c
Removed font renderer.
2021-09-24 11:22:39 -04:00
Adam
8c32950f4b
Merge pull request #527 from adamharrison/native-interop
...
Native Plugins
2021-09-23 15:11:08 -04:00
Adam Harrison
5ffe4eae90
Removed extra boolean.
2021-09-20 23:54:52 -04:00
Adam Harrison
713ef787c2
Removed extra macros, used PLATFORM. Also removed MACOS, as it's redundant C code that's already encapsulated within PLATFORM.
2021-09-20 23:50:06 -04:00
Adam Harrison
e13529444f
Less C code, and more namespacing is better.
2021-09-20 23:42:39 -04:00
Adam Harrison
c01c5a23b0
Added in plugin table.
2021-09-20 23:38:10 -04:00
Francesco Abbate
849614a3cb
Avoid unnecessary call to SDL_GetModState
2021-09-19 18:42:36 +02:00
Adam
075061b80c
Added in custom runtime environment variable for ease of testing. ( #538 )
2021-09-18 21:56:23 +02:00
Francesco
c018ca3c60
Fix numpad fn keys ( #532 )
...
* Fix the numeric keypad function keys
As suggested in:
https://github.com/lite-xl/lite-xl/issues/64
* Apply scancode lookup to KEY_UP events
2021-09-17 22:38:09 +02:00
Adam Harrison
fbc11c00eb
Split entrypoints in half.
2021-09-16 16:55:33 -04:00
Adam Harrison
1721b8f1c9
Should be elif.
2021-09-16 16:28:02 -04:00
Adam Harrison
801b7dd0d9
Added some comments.
2021-09-16 16:22:33 -04:00
Adam Harrison
03b467d9d9
Cleaned up, added utility API.
2021-09-16 16:08:21 -04:00
Adam Harrison
377ce1cd06
Moved things around, fixed a few things up.
2021-09-16 12:37:17 -04:00
Adam Harrison
e9f48ce949
Added in sample plugin and tested things out. Works.
2021-09-14 00:13:30 -04:00
Adam Harrison
a66a76f9c9
Added in searcher.
2021-09-13 23:40:01 -04:00
Francesco Abbate
c9669410ad
Fix macOS build issue with recent commit
...
Add objc_args in meson when compiling to pass C defines also to
bundle_open.m.
Default "bundle" option to false to have by default a unix-like
build and install.
In the run-local script always expect that "bundle" option is to
false to have a unix-like install.
In the build-package script pass the -Dbundle=true option when
building on macos.
When setting the resouce path revert to original method using
[[NSBundle mainBundle] resourcePath]
to have the real resource path when the bundle option will be
activated. With the recent commit the function
set_macos_bundle_resources will be called only if the "bundle"
option is activate and is not used in unix-like mode.
2021-08-19 14:33:39 -07:00
Francesco Abbate
717f4eb782
Conditionally disable macos bundle function
2021-08-19 11:33:03 +02:00
Francesco Abbate
d9e73a97ea
Merge remote-tracking branch 'harens/macos-bundle'
2021-08-19 11:32:36 +02:00
Nikolai Sinyov
1687bbd92d
Update main.c
...
Fixed interface Scale in MacOS in get_scale function
2021-08-19 10:07:46 +03:00
harens
2d088256b1
Add unix-like behaviour on macOS
...
Closes https://github.com/lite-xl/lite-xl/issues/398
2021-08-18 13:26:51 +01:00
takase1121
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
redtide
3468164518
Updated Meson configuration
...
- Added version and license metadata
- Configuration data to be used in configured files to set metadata
- Portable binary and directories in the main install directory
- Binary file installed in correct places for all supported platforms
- Freedesktop AppStream support
- Added missing files install rules
2021-08-09 22:26:16 +02:00
Adam Harrison
0777a6f0b8
Merged dev to master.
2021-07-20 14:39:50 -04:00
takase1121
c7bbf221ee
remove duplicated constants
2021-07-15 18:01:24 -04:00