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
Adam
ab73f914ad
Added in custom runtime environment variable for ease of testing. ( #538 )
2021-10-02 18:37:00 +02: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
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
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
Adam
075061b80c
Added in custom runtime environment variable for ease of testing. ( #538 )
2021-09-18 21:56:23 +02:00
Adam Harrison
1721b8f1c9
Should be elif.
2021-09-16 16:28:02 -04:00
Adam Harrison
e9f48ce949
Added in sample plugin and tested things out. Works.
2021-09-14 00:13:30 -04: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
takase1121
192a93014d
change double quotes to single quotes to reduce escaping
2021-07-15 18:01:24 -04:00
redtide
3f58e554ba
Reorganization of data resources
2021-06-24 22:53:14 +02:00
lqdev
6195b246a5
ignore SIGPIPE from subprocesses spawned with reproc
2021-06-18 11:17:36 -04:00
Ferdinand Prantl
1eabf99054
Enable lite-xl to be started from a symlink to the deployed binary ( #249 )
...
Use resolved executablePath instead of resourcePath to allow lanching
the lite-xl binary via a symlink, like typically done by Homebrew:
/usr/local/bin/lite-xl -> /Applications/lite-xl.app/Contents/MacOS/lite-xl
The resourcePath returns /usr/local in this case instead of
/Applications/lite-xl.app/Contents/Resources, which makes later
access to the resource files fail. Resolving the symlink to the
executable and then the relative path to the expected directory
Resources is a workaround for starting the application from both
the launcher directly and the command line via the symlink.
2021-06-03 21:48:15 +02:00
Francesco Abbate
aa0b2bb5fc
Fix crash problem with rencache and font access
...
In some cases rencache was using a FontDesc pointer that was actually freed by
Lua giving segfaults errors.
In addition, some FontDesc object were not freed in some cases if the
rencache_end_frame was not called when performing the "restart" command.
The invalid access problem can happen because rencache keep some pointers to
FontDesc object but these are Lua userdata that Lua can dispose of. This
situation is prone to hard errors and we should avoid to keep pointers to
objects managed by Lua.
To this purpose we use luaL_ref/unref to bind the FontDesc into the Lua's
registry while rencache need them. We still keeps pointer to FontDesc object but
using luaL_ref we are assured they will not be disposed by Lua.
Since we are using luaL_ref/unref to inform the GC about when the objects are in
use we can now finalize the objects directly when Lua collects them. Previously
the GC metamethods was issuing a FREE command to rencache and the font was
actually freed only from the rencache_end_frame function.
2021-05-21 23:38:54 +02:00
Francesco Abbate
d8244120e9
Ensure the rencache commands buffer is cleared on restart
...
Fix issue #176 but it should be tested more thoroughly.
2021-05-05 09:32:24 +02:00
Francesco Abbate
33fe7295c0
First working implemention
...
Cleanup also debug messages
2021-04-23 14:54:25 +02:00
Francesco Abbate
685b8c82d0
WIP: testing usage of SDL renderer
...
It does segfault.
2021-04-23 11:58:53 +02:00
Francesco Abbate
12ca5f3d2a
Add momentum scroll for macos
...
Taken from @mathewmariani lite-macos
2021-04-21 09:52:16 +02:00
Francesco Abbate
2f8c70ac51
Remove bundle_open.h file
2021-04-19 09:52:00 +02:00
Francesco Abbate
53f77a29ea
Implement correctly loading from macos bundle resources
2021-04-18 08:51:31 -07:00
Francesco Abbate
f913a8513f
Testing functions to open files from bundle
2021-04-18 17:08:35 +02:00
Takase
49cde08ed6
Use Xlib to read resources ( #142 )
2021-04-02 16:43:21 +02:00
Francesco Abbate
30f9f20e23
Ensure xrdb code is compiled only on unix
2021-03-17 18:10:47 +01:00
Francesco Abbate
dab39d3b5c
Implement xrdb reading without popen
...
Avoid using the shell, awk and cut command
2021-03-17 16:58:44 +01:00
daubaris
27f3cb23d4
Addressing the scaling factor on linux. ( #107 )
...
Use xrdb and the Xft.dpi variable to find out DPI scaling on linux.
2021-03-14 16:13:26 +01:00
Francesco Abbate
23a053e1ee
Ensure error and stack trace are written to stdout
...
To address https://github.com/franko/lite-xl/issues/87
2021-03-07 09:48:44 +01:00
Francesco Abbate
09332fe242
Fix problem with fatal error message
...
Previous implementation was broken.
Ensure the error file is always written and write its location in the error message
2021-03-05 23:46:41 +01:00
Francesco Abbate
a4bc8986ff
Implement fatal error message box
...
Used when lite-xl fails at startup
2021-03-05 10:33:50 +01:00
Francesco Abbate
636bc7ec95
More accurate EXEDIR detection
...
Use ony the OS path separator to parse the executable filename
2021-03-05 09:42:48 +01:00
Francesco Abbate
1ea497deb4
Fix problem when launching from a different location
...
Should fix https://github.com/franko/lite-xl/issues/76 and https://github.com/franko/lite-xl/issues/67
2021-03-05 07:28:29 +01:00
Francesco Abbate
351a772466
do not use 'portable' as a compile time option
...
Introduce the file core/start.lua to initialize applications variables
2021-02-24 16:29:39 +01:00
Francesco Abbate
9fced84a7a
Move VERSION variable into Lua code
...
To avoid recreating binaries if there are no changes
in the C side of the source code.
2021-02-16 14:35:02 +01:00
Francesco Abbate
882413e92d
Bump 1.16 version number
2021-01-13 16:52:27 +01:00
Francesco Abbate
d3686bb6f4
Bump new version number
2020-12-31 11:27:35 +01:00
Francesco Abbate
35c87462a6
Use ~ for HOME directory in folder search
2020-12-19 16:31:42 +01:00
Francesco Abbate
e50d67df85
Update readme and changelog for release 1.14
2020-12-13 13:04:29 +01:00
Francesco Abbate
1fc0409163
Merge branch 'project-manager'
2020-12-12 20:27:07 +01:00
Francesco Abbate
6409b67ea2
Add core:restart function to restart the editor
2020-12-10 12:44:01 +01:00
Francesco Abbate
1c4b8cf315
Fix documentation and behavior for 1.13 release
2020-12-06 11:23:33 +01:00
Francesco Abbate
be189fda0d
Always use HOME based user's config independently from portable option
2020-12-04 12:01:49 +01:00
Francesco Abbate
c41dedafad
Improve the implementation of unix-like directories usage
...
Add a Meson option "portable" to choose between "portable" and unix-like
directories. Add information about this option in the README.
To determine the user's directory use the variable USERPROFILE only on
Windows and use HOME otherwise.
Implement the "portable" option in the package build script.
2020-12-03 16:46:18 +01:00
Francesco Abbate
277186491a
Fix some problems with user's directory
...
To accommodate the Window's platform prefer the USERPROFILE to HOME
to set user's dir.
Fix error, user's dir was not added to the package.path.
2020-12-02 16:43:35 +01:00
Francesco Abbate
a337f893d9
Implement user's config as init file and add directory into package.path
...
Create the user's config init file if lite user's config directory does
not exists.
No longer use the awkward package.searchers but instead add user's
config dir at the end of package path.
2020-12-02 16:03:31 +01:00
Francesco Abbate
3589d7d3c0
First implementation of unix-like data directory
...
It basically works by setting the data directory to
$prefix/share/lite-xl
where $prefix is determined so that $prefix/bin corresponds to EXEDIR.
The packages 'user' and 'user.*' are loaded from the directory
'$HOME/.config/lite-xl'.
2020-12-02 00:23:15 +01:00
Francesco Abbate
1c5767d393
Merge remote-tracking branch 'rxi/master'
2020-08-19 10:08:32 +02:00
rxi
91c43dc01e
Version 1.11
2020-07-05 10:56:39 +01:00
Francesco Abbate
14ec61511d
Merge remote-tracking branch 'rxi/master'
2020-07-04 22:08:25 +02:00
Francesco Abbate
77a9819f4e
Fix SDL2 include directives
2020-06-29 15:24:08 +02:00
rxi
87532a4b3a
Version 1.10
2020-06-28 14:40:07 +01:00
rxi
11df722162
Version 1.09
2020-06-21 19:38:42 +01:00
rxi
1db1f0bceb
Version 1.08
2020-06-14 13:33:23 +01:00
rxi
95b70b1b16
Revert "Removed __APPLE__ `#ifdef` from main.c"
...
This reverts commit 6a7e214d1c
.
2020-06-11 15:05:39 +01:00
rxi
db471c0554
Version 1.07
2020-06-07 14:02:45 +01:00
rxi
6a7e214d1c
Removed __APPLE__ `#ifdef` from main.c
2020-06-07 08:57:57 +01:00
Daniele Laudani
95ee03fb37
move BYPASS_COMPOSITOR near other SetHint
2020-06-03 15:05:55 +02:00
Daniele Laudani
7aa462e43d
Don't tell the system to disable compositing under X11
...
Fixes #123
2020-06-03 14:38:44 +02:00
rxi
f00d5d55df
Version 1.06
2020-05-31 16:53:53 +01:00
rxi
b96609b7b8
Removed redundant __APPLE__ case in get_scale()
2020-05-29 09:33:42 +01:00
rxi
61a2a2c4e5
Version 1.05
2020-05-24 13:52:10 +01:00
rxi
c1f731e5a1
Fixed EXEDIR having trailing slash
2020-05-17 16:58:32 +01:00
rxi
adad2a65be
Version 1.04
2020-05-17 14:58:44 +01:00
rxi
82fdc63c6a
Added global EXEFILE
2020-05-17 09:36:46 +01:00
rxi
5102088aca
Deferred showing window until after the first frame has rendered
...
Fixes #97
2020-05-14 23:06:14 +01:00
extrowerk
a6013ff181
Build fix
2020-05-11 13:49:18 +02:00
rxi
b67b680975
Changed get_scale() to always default to 1.0 on macOS
2020-05-10 19:32:01 +01:00
rxi
143f8867a1
Version 1.03
2020-05-09 16:29:34 +01:00
rxi
e551052e91
Added icon to non-windows build
2020-05-06 19:49:34 +01:00
rxi
c8980a828f
Version 1.02
2020-04-26 14:41:34 +01:00
rxi
c658b6f1ca
Removed underscore from start of globals, added VERSION
...
eg. `_SCALE` => `SCALE`
prevents conflict with lua's own _NAME globals
2020-04-25 09:58:01 +01:00
rxi
bd43ed3e3f
Added _PLATFORM global
2020-04-23 20:03:14 +01:00
rxi
86800281c9
Made get_exe_dir() static; removed accidental `const`
2020-01-01 13:25:04 +00:00
rxi
ba86b58b80
Added better resolution of exe directory; should fix #1
2019-12-31 10:53:31 +00:00
rxi
d8c4bfa6ba
Initial commit
2019-12-28 11:17:56 +00:00