Francesco Abbate
ba40bc0dfc
Final adjustments to tab's rect computations
2021-05-17 12:14:01 +02:00
Francesco Abbate
838bbf8285
Merge branch PCRE (adamharrison) into dev
2021-05-17 10:54:57 +02:00
Francesco Abbate
92322986b8
Fix error with previous commit
...
Error was introduced with PR:
https://github.com/franko/lite-xl/pull/190
2021-05-17 10:16:55 +02:00
Adam
6e08c3321c
Fixed a bug where if detectindent is paired with another plugin that hooks the event, it'll overwrite the other plugin's functions. ( #190 )
2021-05-17 10:05:08 +02:00
Adam
e43f1b9df9
Unified open and saving style. ( #189 )
2021-05-17 09:29:51 +02:00
Adam
85d0d684de
Truncated lines longer than 256 characters, and skipped to the relevant portion of the line to reduce slowdown and increase relevancy. ( #185 )
2021-05-17 09:16:20 +02:00
Adam
e54ffc49ea
Added in keyboard shortcuts to the project search module. ( #188 )
2021-05-17 09:14:46 +02:00
Cukmekerb
bd4efa14a2
add `of` keyword to language_js.lua and improve js string syntax highlighting in ( #186 )
2021-05-17 08:56:21 +02:00
cukmekerb
27aa162148
add `of` keyword to language_js.lua and improve js string syntax highlighting in
2021-05-16 10:57:54 -07:00
Adam
c7b1a6f53e
Allowed for optional boolean to better match filenames. ( #180 )
2021-05-16 19:23:17 +02:00
Francesco Abbate
9c9fbe4c8b
Add macos minimum OS variable in info.plist
2021-05-16 10:11:12 -07:00
Francesco Abbate
b37c190db2
Add buttons to scroll tabs when there are too many
...
Use config.max_tabs to configure the maximum number of tabs that can
be shown. Beyond the maximum value scroll buttons will appear to scroll
the tabs.
2021-05-16 15:50:27 +02:00
Francesco Abbate
90e41daa99
Add tab animation and improve hovering update
...
Always update the tab hovering status using the Node:update
method. Previous behavior was to update only on mouse moved
events.
2021-05-15 16:57:20 +02:00
Francesco Abbate
b223dbca6f
Use unicode ellipsis to truncate tab's text
...
For proportional fonts is equivalent to three dots but it makes a
lot of difference for monospaced fonts.
2021-05-15 16:27:29 +02:00
Francesco Abbate
f30dfc20fe
More accurate tab width calculation
...
Ensure the right side of the right-most tab always end up at the
same position.
2021-05-15 16:26:15 +02:00
Francesco Abbate
50a4fc212f
Do not truncate filenames in tab and use dots
2021-05-15 14:49:16 +02:00
Francesco Abbate
e2fcc41b4a
Ensure tabs don't extend beyond window's width
2021-05-15 14:17:36 +02:00
Jan
7d29052367
Update C Language file ( #182 )
...
retype struct symbol, add some preprocessor keywords
2021-05-14 19:05:58 +02:00
Francesco Abbate
ea3a7e81be
Fix problem with previous commit
...
Desastrous problem where core.normalize_path was removing the leading /.
2021-05-10 17:01:14 +02:00
Francesco Abbate
708c2983ef
Create new document if file doesn't exist
...
If a non-existing file is specified with the command "core:open-file"
a new document is opened with the given filename provided the directory
already exists.
The flag new_file is set to true in the Doc instance.
The file will be actually created only when the "save" command is used.
The document will be marked with the "*" event when no changes are done
to mean that it is a new file and is not yet saved.
The function common.normalize_path now process the .. and . in the
filename. Before was not needed because system.absolute_path already
get rid of them but now we need to have the absolute path of files
that not yet exists so we cannot use system.absolute_path.
2021-05-10 16:44:27 +02:00
Francesco Abbate
0ce5680ef2
Remove duplicate normalize_path function
...
Use the function defined in the "common" module.
Move the check for not-nil filename from common.normalize_path
to core.open_doc. In this latter the filename can be nil if a
new unnamed document is created.
2021-05-10 13:08:39 +02:00
Francesco Abbate
ba48cb1382
Fix problem in regex.gsub
...
The local n was not initialized and the "string" argument was shadowing the Lua's "string" module.
2021-05-07 10:44:38 +02:00
Francesco Abbate
1c6325b40f
Merge branch 'master' into 'dev'
2021-05-07 08:25:35 +02:00
Adam Harrison
a100a7b6a9
Fixed offsets, and passed through an additional parameter.
2021-05-06 19:53:03 -04:00
Adam Harrison
88c5424e0b
Removed unecessary plugin.
2021-05-06 19:53:03 -04:00
Adam Harrison
c0c6bc5be9
Replaced pattern-based commands with regexes.
2021-05-06 19:53:03 -04:00
Francesco Abbate
b3f9faff4a
Fix pcre2 meson build config
2021-05-06 19:53:03 -04:00
Adam Harrison
57b1adcec2
Fixed pattern variable.
2021-05-06 19:53:03 -04:00
Adam Harrison
bf09582478
Fixed lines to conform to style guidelines.
2021-05-06 19:53:03 -04:00
Adam Harrison
a66e1f1559
Added in keyboard shortcut.
2021-05-06 19:53:03 -04:00
Adam Harrison
272067124d
Updated PCRE to use utf8, and created sample plugin.
2021-05-06 19:53:03 -04:00
Adam Harrison
a9dd790321
Reworked files to conform to style guidelines.
2021-05-06 19:53:03 -04:00
Adam Harrison
488ebba7e4
Added in dependency.
2021-05-06 19:53:03 -04:00
Adam Harrison
0c9e517791
Initial commit of PCRE engine.
2021-05-06 19:53:03 -04:00
Francesco Abbate
e58d7600ee
Prepare release 1.16.9
2021-05-06 17:08:56 +02:00
tsukanov-as
f637dc4db8
Fix creating a new file ( #179 )
2021-05-06 16:53:46 +02:00
Francesco Abbate
55a6888818
Fix resizing problem for nested nodes
...
Should fix problem reported in:
https://github.com/drmargarido/TodoTreeView/issues/3
2021-05-06 15:35:40 +02:00
Francesco Abbate
f1621192f9
Update build package script for window
2021-05-06 09:36:39 +02:00
Francesco Abbate
d9a7d9e5ae
Update changelog for 1.16.8 release
2021-05-06 09:32:28 +02:00
Francesco Abbate
4c99a18341
More accurate update rects / show window / present sequence
...
For the option when we use the SDL_Renderer we change:
- the order of calls to SDL_DestroyTexture/Renderer.
Reported by valgrind on linux as an error to destroy the
renderer before the texture.
- the SDL_Renderer and texture are created when the surface is
initialized before the window is shown
It seems that creating the SDL_Renderer and Texture between the
moment the window was shown and the renderer present was introducing
a flashing blank window because of the time taken to create the
renderer/texture resources.
2021-05-06 09:00:36 +02:00
liquidev
b76905e78a
Support for changing fonts per syntax group ( #178 )
2021-05-05 23:08:10 +02:00
Francesco Abbate
5cef643e02
Introduce new plugin versioning tag mod-version
...
New plugins should use the version tag:
-- mod-version: 1
The old version tag "-- lite-xl 1.16" will be considerer equivalent
to mod-version 1.
2021-05-05 22:38:29 +02:00
Adam
135dfa6f03
Add a more explicit message in log and config.max_project_files
...
* Added a line to avoid people going down the rabbit hole that I did.
* Further explanatory text.
2021-05-05 16:00:17 +02:00
Francesco Abbate
9f7f55926b
Use home_encode when setting window title to filename
2021-05-05 10:35:19 +02:00
Francesco Abbate
d63afe02ed
Use string.find only in common.home_encode
...
Should be slightly more efficient.
2021-05-05 10:34:48 +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
820d520fc3
Store doc's babs_filename without home encoding
...
This is the way was supposed to be. All the filenames are supposed to be
stored without home encoding, i.e. with explicit paths.
Should fix issue #177 and make PR
https://github.com/franko/lite-xl/pull/174
unneeded.
It may also address issue #174 but would need further verifications.
2021-05-05 08:52:14 +02:00
Adam
4c42dd4adc
Do not close command view on open-file is file is invalid or it is a directory
...
Added in a validation function which fires before submitting a command enter; found it incredibly irritating to try to open something, hit enter, only to be told I'd selected a directory, and then have to go through the whole process again. (#175 )
2021-05-05 08:04:51 +02:00
Francesco
fa99d5401e
Update README about macos and retina support
2021-05-02 09:33:58 +02:00
Adam
67ec7e8065
Added in drag and drop capability. ( #170 )
2021-05-02 09:13:21 +02:00