Commit Graph
100 Commits
Author SHA1 Message Date
Francesco Abbate d18eef4ef0 Update recipe for Lua subproject
Previous recipe was not working with shared build
2020-12-14 18:40:08 +01:00
Francesco Abbate eadbe41064 Add core.on_quit function for plugins
To be used for plugins like workspace from exi/lite-plugins
2020-12-14 13:57:24 +01:00
Francesco Abbate e50d67df85 Update readme and changelog for release 1.14 2020-12-13 13:04:29 +01:00
Francesco Abbate 3a38ded396 Use core.reload_module instead of style.load 2020-12-13 13:04:06 +01:00
Francesco Abbate 1fc0409163 Merge branch 'project-manager' 2020-12-12 20:27:07 +01:00
Francesco Abbate 3b30bfa18b Improve left/right scrolling behavior for DocView
With the new behavior when moving right and triggering a scroll in the
right direction a subsequent movement left do not longer triggers a
scrolling to the left.
The scrolling to the left happens only when needed for the visibility of
the current position.

In other terms with the old behavior the scrolling was purely a function
of the position and was adjusted even when not strictly needed for the
visibility of the cursor.
Now the scrolling is no longer a pure function of the position but it
has a "memory" behavior. The scrolling will be adjusted only if needed
to accommodate the position of the cursor.

Reduce also the width of the margin when the scrolling will be
triggered and calculate as a function of the font character width.

With the modification now Lite behaves like the other editors. In
addition the selection of text with the mouse is much more easy when
a scrolling of the line is needed.
2020-12-12 20:26:27 +01:00
Francesco Abbate 40ac899360 Restore core.quit and core.temp_filename to be compatible with Lite 2020-12-12 00:05:11 +01:00
Francesco Abbate 7cf37999df Include rxi/lite-colors when building a package 2020-12-11 15:14:57 +01:00
Francesco Abbate b396556df4 Print warning about the portable option based on OS 2020-12-11 15:14:13 +01:00
Francesco Abbate 2373c63a0b Complete the initial user configuration file 2020-12-11 14:49:03 +01:00
Francesco Abbate a41754b382 Fix font hinting when using subpixel rendering
Ensure we set the font's size with freetype to the intended size so that
hinting works as expected and perform subpixel scaling using affine
matrix coefficient.
2020-12-11 14:36:32 +01:00
Francesco Abbate 9114148b45 Automatically reload style when saving the project user module 2020-12-10 17:56:53 +01:00
Francesco Abbate 6409b67ea2 Add core:restart function to restart the editor 2020-12-10 12:44:01 +01:00
Francesco Abbate 33109e6110 Fix responsiveness problem of open-folder command 2020-12-09 15:45:16 +01:00
Francesco Abbate ebcfa63de1 Fix centerings of text in EmptyView 2020-12-08 23:36:50 +01:00
Francesco Abbate ba898b50fc Force a clear of treeview on switch project 2020-12-08 23:35:49 +01:00
Francesco Abbate 8448eee79f More accurate list of recent projects 2020-12-08 18:49:58 +01:00
Francesco Abbate f882957ebc Experimentally add priority run when scanning project files
Avoid yielding when a first scan is required but seems quite
ineffective.
2020-12-08 16:59:05 +01:00
Francesco Abbate e88adc0567 Move project manager into core init file 2020-12-08 16:57:57 +01:00
Francesco Abbate 9c7e477cd1 Do not use a separate director for userdir in run-local 2020-12-08 09:42:31 +01:00
Francesco Abbate c0f0325bbb Fix behavior of project manager to store directories 2020-12-08 09:42:11 +01:00
Francesco Abbate a3adfeb8f6 Begin reworks of project manager 2020-12-07 18:06:58 +01:00
Francesco Abbate 48ad8a8392 Run locally using a local user directory for testing 2020-12-07 17:42:50 +01:00
Francesco Abbate ebaa2b4f26 Fix bug related to creation of user's init file 2020-12-07 17:38:36 +01:00
Francesco Abbate ca9bf21819 Reword name for identifying primary view 2020-12-06 13:24:55 +01:00
Francesco Abbate ffaf5e0ea5 Use USERDIR to store projects 2020-12-06 13:10:46 +01:00
Francesco Abbate 23575b309e Fix syntax error with previous commit 2020-12-06 11:37:05 +01:00
Francesco Abbate 1c4b8cf315 Fix documentation and behavior for 1.13 release 2020-12-06 11:23:33 +01:00
Francesco Abbate 3cb52881fc Pass options to Lite with script run-local 2020-12-06 01:04:14 +01:00
Francesco Abbate 745dd99e97 Use original document views node to open a new document
Used when the active view is a locked node.
2020-12-06 01:03:54 +01:00
Francesco Abbate 926e004c41 Preliminary version of project manager
Adapted from contribute rxi/lite-plugins but changed to avoid restarting
the application when switching project.

Current problem:
- the reload of the treeview take some time without any feedback for the
  user
2020-12-06 00:57:27 +01:00
Francesco Abbate afda299fe4 Implement optional font rendering options
The user can now choose antialiasing grayscale and subpixel and hinting
non, slight or full.
2020-12-04 16:15:54 +01:00
Francesco Abbate 549ac806e9 Fix build-package script with the portable option 2020-12-04 14:20:11 +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 f88fd0f6cd Add missing colors directory from build and run scripts 2020-12-04 12:00:42 +01:00
Francesco Abbate dc240fadcd Implement script to run locally a build without installing 2020-12-03 23:01:01 +01:00
Francesco Abbate d379f9c737 Add missing meson_options file from previous commit 2020-12-03 16:47:33 +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 e9938862b5 No longer include version in package name 2020-11-23 15:33:34 +01:00
Francesco Abbate 58d3e23ca1 Include detect-indent improved plugin into Lite XL 2020-11-21 23:22:44 +01:00
Francesco Abbate 70412b520b Fix cursor blinking problem
The problem was that when the editor had no events the cursor was not
blinking because the event loop was blocking on wait_event.

Now we no longer calls wait_event without a timeout if the windows has
the focus. When the window has the focus the timeout is set to 1 / fps
so that the cursor can blinks.

In addition we react to the "focus lost" event to ensure the documents
are redrawn without the cursor.
2020-11-21 16:36:32 +01:00
Francesco Abbate bdaddea29a Fix behavior when using un-indent command over multiple lines 2020-11-18 15:52:53 +01:00
Francesco Abbate 1729e72f9c Reword changelog 2020-11-17 17:05:06 +01:00
Francesco Abbate c2d2151be6 Add changelog information for release 1.11 2020-11-17 16:26:55 +01:00
Francesco Abbate 1634f68250 Add a warning when disable auto-complete due to too many symbols 2020-11-17 12:34:46 +01:00
Francesco Abbate 4a8884ef70 Increase default max limits for symbols
The previous limit, 2000, was may be too small and may prevent auto-complete from working for some big source file.
2020-11-17 12:33:57 +01:00
Francesco Abbate 1db0f703e7 Merge remote-tracking branch 'origin/master' 2020-11-17 10:28:20 +01:00
Francesco Abbate cdcd89d6d7 Merge remote-tracking branch 'rxi/master' 2020-11-17 10:24:27 +01:00
Francesco Abbate 82dc76dd00 Add recently visited files in the list when using find file command 2020-11-16 23:52:51 +01:00
Francesco Abbate 16e6a6db9d Stop scanning project file when a maximum limit is reached
To avoid excessive memory usage when opening in a directory with too many files.

Introduce the config variable config.max_project_files to choose the limit.

The mechanism introduced avoid using excessive memory but it fails to
let user access all the files in the directory. A better implementation
should not impose any limits but read each subdirectory on-demand, only
as they are expanded in the tree-view.
2020-11-16 18:12:55 +01:00
Francesco Abbate 7a856be6e4 Fix error when opening the first document if project view was active 2020-11-16 18:12:31 +01:00
Francesco Abbate edaa8fb42b Add a mechanism to avoid blank window at startup 2020-11-16 14:49:41 +01:00
Francesco Abbate a0e3ab7933 Add more patterns in .gitignores 2020-11-16 14:49:29 +01:00
Francesco Abbate 121f0e1aa0 Improve behavior for indent command with selection over multiple lines
Do not add indentation for the last line is not selected.
2020-11-16 11:52:41 +01:00
Francesco Abbate eb41569e8d Implement limits for maximum number of symbols in autocomplete
Implemented to avoid excessive memory usage when loading big files with
many unique words.
2020-11-14 23:48:56 +01:00
Francesco Abbate 1c5767d393 Merge remote-tracking branch 'rxi/master' 2020-08-19 10:08:32 +02:00
Francesco Abbate abad5cce0f Improve script to build packages to name the package with the OS name 2020-07-30 14:25:21 +02:00
Francesco Abbate b484cb8bd3 Ensure build-package script copy data directory from repository's head
Rename also the directory of the package with the arch name.
2020-07-05 12:36:46 +02:00
Francesco Abbate 0ad3353f93 Update version number in meson 2020-07-04 22:08:59 +02:00
Francesco Abbate 14ec61511d Merge remote-tracking branch 'rxi/master' 2020-07-04 22:08:25 +02:00
Francesco Abbate d5ae8a5b14 Update README 2020-07-04 22:07:12 +02:00
Francesco Abbate 71db2d439a Add libagg as a subproject
No longer required to be installed, the subproject will be used if not
found.
2020-06-30 17:02:50 +02:00
Francesco Abbate a292793143 Usa system provided Lua 5.2 if found 2020-06-30 16:48:41 +02:00
Francesco Abbate 0b16ce725c Specified static library for Lua subproject 2020-06-30 16:17:17 +02:00
Francesco Abbate 9a52b440f5 Modifies the build script to handle Mac OS X
Not tested for Mac OS X but building with subproject gives an error on
windows. To be clarified.
2020-06-30 16:16:28 +02:00
Francesco Abbate 0c09419001 Fix again the problem with C++ abs function 2020-06-29 18:20:36 +02:00
Francesco Abbate bc6cdd7711 Remove spurious typename keyword in C++ code 2020-06-29 17:02:45 +02:00
Francesco Abbate 1fc6d62b14 Fix Lua subproject ofr Mac OS X 2020-06-29 17:01:14 +02:00
Francesco Abbate fa649521d2 Fix usage of abs function with C++ 2020-06-29 16:58:42 +02:00
Francesco Abbate c4da51e8df Add Lua 5.2.4 as a subproject 2020-06-29 15:26:00 +02:00
Francesco Abbate 77a9819f4e Fix SDL2 include directives 2020-06-29 15:24:08 +02:00
FrancescoandGitHub 3224622a40 Add reference to changelog in README 2020-06-28 18:28:00 +02:00
FrancescoandGitHub 04be76e150 Create changelog.md 2020-06-28 18:25:40 +02:00
Francesco Abbate 6a1690c051 Adapt build package script for Windows using MSYS2 2020-06-21 23:58:18 +02:00
FrancescoandGitHub 579d07c248 Fix typo in README 2020-06-21 23:54:51 +02:00
FrancescoandGitHub cf5849ca6d Update README for the Lite XL fork 2020-06-21 17:11:01 +02:00
Francesco Abbate d5ea2babf5 Add script to build release package 2020-06-21 13:11:00 +02:00
Francesco Abbate 0645ececf9 Merge remote-tracking branch 'rxi/master' into agg-font-renderer 2020-06-21 12:02:03 +02:00
Francesco Abbate c23ef76179 Add execution flags to build script 2020-06-18 19:28:06 +02:00
Francesco Abbate 0e04030131 Fix and improve build script 2020-06-18 15:53:31 +02:00
Francesco Abbate ccc354bd22 Add static-libgcc and libstdc++ in build script 2020-06-17 23:51:52 +02:00
Francesco Abbate 3cdb487eac Update build script to build on unix systems 2020-06-17 23:11:39 +02:00
Francesco Abbate aa9557e9ba Fix meson build to request lua5.2 2020-06-17 20:27:59 +02:00
Francesco Abbate fe0dda8309 Merge remote-tracking branch 'rxi/master' into agg-font-renderer 2020-06-16 15:00:47 +02:00
Francesco Abbate 2c6bd874fa Avoid running when there are no events and threads do not need to run 2020-06-16 14:54:08 +02:00
Francesco Abbate 5c3d4163d3 Modify system.wait_event to wait indefinitely if no timeout is given 2020-06-16 14:53:01 +02:00
Francesco Abbate f5ede27e91 No longer use gamma correction
Text looks more correct without the gamma correction. With gamma correction
text looks too bold in dark mode and too light in light mode. This
behavior is a sign that gamma correction is not the right thing to do.

The problem is seen with gamma at 1.5 used previously but is even worst
if a gamma value of 2.2, the theoretical value, is used.
2020-06-16 14:43:03 +02:00
Francesco Abbate 3c3662b3ba Add option to disable X axis font's pre-scaling
If used pre-scaling along X null the effect of the font's hinting.
2020-06-12 16:06:39 +02:00
Francesco Abbate 4d3693479d Merge remote-tracking branch 'rxi/master' into agg-font-renderer 2020-06-11 23:22:49 +02:00
Francesco Abbate 9e996a2d87 Rename FontRenderer to FR_Renderer 2020-06-11 23:19:08 +02:00
Francesco Abbate 93a36617f9 Bring back simple grayscale rendering option 2020-06-11 23:11:40 +02:00
Francesco Abbate 00c3983da6 Rename FontRenderer* symbols as FR_* 2020-06-11 18:12:47 +02:00
Francesco Abbate 117714390a Make the FontRenderer's Bitmap struct opaque outside the library 2020-06-11 17:52:00 +02:00
Francesco Abbate ce664f85b1 Move rendering buffers pointers computations inside FontRendererBlendGammaSubpixel
The logic is to disentangle the code between renderer.c and FontRenderer
so that this latter has a simple, logical interface.
2020-06-11 17:33:57 +02:00
Francesco Abbate 18865fd32f Remove font renderer debug code 2020-06-09 16:55:26 +02:00
Francesco Abbate 047039a750 Require Lua 5.2 in Meson build 2020-06-08 12:35:36 +02:00
Francesco Abbate ba4c8dbbb5 Remove unneeded checks in get_font_vmetrics 2020-06-08 09:36:07 +02:00