Commit Graph

1197 Commits

Author SHA1 Message Date
Francesco Abbate 94b99b658e Fix multi-line commands
When second position is at the beginning of a line do not include this latter.
2021-02-24 18:06:47 +01:00
Francesco Abbate cbb42d0028 Fix spacing in treeview
Previous setting was not okay with monospaced fonts
2021-02-24 17:50:34 +01:00
Francesco Abbate ff5052be9a Improve build-package script to create portable and unix-like packages 2021-02-24 17:39:12 +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 ea8a8770ea Do not use nullptr and add check 2021-02-24 09:46:48 +01:00
ep b616b55fd9 +js language regexp pattern 2021-02-24 12:24:43 +07:00
Francesco Abbate a23986f171 Cleanup font's note markdown file 2021-02-23 17:14:22 +01:00
Francesco Abbate 35f31c8fbc Fix font rendering artifacts bug
Seen with some fonts like FiraSans, github issue:

https://github.com/franko/lite-xl/issues/46

The fix works essentially by looking to the bounds of each glyph to
accurately ensure that there are no overlaps between the glyphs.

The construction of the font atlas was changed to make some related
improvements now that the bounds of each glyph are know. The main
changes are:

- no longer align glyph on the baseline but align them on their upper
  bounds. We ensure this way that very tall fonts do not leak in the
  upper part
- terminate the row based on x bounds of the glyph to be more accurate
- for each row keep trace of the y of the more larger along y of the
  glyph. The value is used to start a new row to be sure that the new
  now does not overlap with the previous one
- sort glyphs by y size before drawing them. In this way the space
  utilization is better. The algorithm used is the very simple insert
  sort. It behaves like O(n^2) with the number of characters but should
  be ok since n is always small, typically below 128.
- compute the optimal image width and height for the given font's atlas
  for optimal memory usage. As a bonus now the lite's code don't have to
  try and repeat to get a good image size
2021-02-23 17:14:08 +01:00
Francesco Abbate f7d547e7e6 Update changelog 2021-02-21 13:04:03 +01:00
Francesco Abbate 22de3354ce Minor toobar tooltip adjustment 2021-02-21 12:57:42 +01:00
Francesco Abbate fc46946ea1 Fix the flashing tooltip issue 2021-02-21 11:09:51 +01:00
Francesco Abbate 2353076b37 Add config.transitions to enable/disable transitions 2021-02-21 11:08:25 +01:00
Francesco Abbate 7a35e7c217 Don't show partially hidden icons in toolbar 2021-02-21 09:43:47 +01:00
Francesco Abbate 5e0dee3e18 Fix indent spaces/tabs labeling 2021-02-20 22:56:52 +01:00
Francesco Abbate 22c9628def Fix missing info icon
Github issue: https://github.com/franko/lite-xl/issues/45
2021-02-20 20:15:09 +01:00
Francesco Abbate cf6332aebc Fix tooltip from ghost toolbar
Github issue: https://github.com/franko/lite-xl/issues/48
2021-02-20 20:14:24 +01:00
Francesco Abbate 054350263d Fix treeview missing clamp bug
Github issue: https://github.com/franko/lite-xl/issues/44
2021-02-20 20:13:25 +01:00
Francesco Abbate 4f2e38d41f Make code and ui font smaller at 12 2021-02-19 16:23:19 +01:00
Francesco Abbate f22a56a651 Adjust indentation size in meson.build 2021-02-19 16:13:27 +01:00
Francesco Abbate 688dc1a7b8 Do not log every plugin load
Since we now load the user's module before the plugins\nwe avoid to log a line for each loaded plugin to not hide\nan eventual error in the user module
2021-02-19 16:12:56 +01:00
Francesco Abbate 68d9794926 Adjust default code font size
The previous value looks too big in hidpi screens
2021-02-19 16:10:57 +01:00
Francesco Abbate 76b463bd11 Create empty fonts directory in USERDIR 2021-02-19 16:10:02 +01:00
Francesco Abbate f2721e8ea4 Do not mandate branch name in build-package script 2021-02-19 16:09:36 +01:00
Francesco Abbate 0233941fe9 Bump version number 2021-02-19 13:54:10 +01:00
Francesco Abbate 2a0846b604 Automatic keep adjusting indent size
When too few lines keep adjusting indent size
2021-02-19 11:51:49 +01:00
Francesco Abbate ef24828307 Add toolbar tooltips 2021-02-19 11:50:20 +01:00
Francesco Abbate 335d704cab New fontello font smaller plus two new icons 2021-02-19 10:12:43 +01:00
Francesco Abbate e463ba8959 Add new toolbar buttons and tips 2021-02-19 10:08:45 +01:00
Francesco Abbate 6353fde609 Move user module loading before plugins
Otherwise the configuration to disable a plugin does not take effect.
2021-02-19 10:08:03 +01:00
Francesco Abbate 114f6b2481 Do not print error on standard output
Delayed error when passing invalid directory argument.
2021-02-19 09:29:46 +01:00
Francesco Abbate 6fcdafc5b6 Adjust line numbers for detect indent 2021-02-19 09:23:55 +01:00
Francesco Abbate ba68d6db24 Improve error handling for directory arguments 2021-02-19 00:15:55 +01:00
Francesco Abbate 830438eb4d Changelog update 2021-02-18 10:13:37 +01:00
Francesco Abbate 52fb5afe34 Improve detectindent to skip comments 2021-02-18 10:10:06 +01:00
Francesco Abbate a2c4fdf649 Normalize global PATH from core.init 2021-02-18 09:02:57 +01:00
Francesco Abbate de1afb3391 Add full filename path in window's title
Optimal implementation to limite computations in core.step.
2021-02-18 00:26:19 +01:00
Francesco Abbate 59fbf9cfc0 Merge branch 'master' into dev 2021-02-17 23:57:02 +01:00
Francesco a40acce382
Merge pull request #38 from francesco-st/patch-2
Use -static-libgcc only if the compiler is gcc
2021-02-17 19:53:13 +00:00
Francesco Abbate 9b27180267 Use doc on_save hooks to reload user module 2021-02-17 20:10:39 +01:00
Francesco Abbate 1ce1c114ba Fix reload module problem on windows 2021-02-17 19:20:00 +01:00
francesco-st 588755b15a
Use -static-libgcc only if the compiler is gcc
clang does not accept the -static-libgcc flag and apparently -static-libstdc++ is accepted but has no effect.
2021-02-17 18:42:38 +01:00
Francesco Abbate 6369a7f760 Use tilde expansion when running save-as command 2021-02-16 22:54:00 +01:00
Francesco 1decf67b64
Merge pull request #34 from budRich/user-module-auto-reload2
User module auto reload
2021-02-16 20:52:06 +00:00
Francesco f11ce523e0
Merge pull request #32 from budRich/full-path-in-window-title
Full path in window title option
2021-02-16 20:46:35 +00:00
bud 63b024cb81 FIX: Use PATHSEP instead of hardcoded "/" path separator 2021-02-16 19:25:40 +01:00
bud 4917be3daf remove config for window title format 2021-02-16 19:13:41 +01:00
bud 3693556958 FIX: get DocView in init instead of step, remove option for window title format' 2021-02-16 19:12:56 +01:00
Francesco Abbate 4335ab93c9 Require a branch in build-package script 2021-02-16 16:31:46 +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 d18b90ad4f Restore original key binding for trreview toggle 2021-02-16 09:41:03 +01:00