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
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
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
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
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
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
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
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
rxi
de5cb4fa52
Improved behaviour of `doc:join-lines` when joining to empty line
2020-09-27 15:03:53 +01:00
Francesco Abbate
14ec61511d
Merge remote-tracking branch 'rxi/master'
2020-07-04 22:08:25 +02:00
rxi
99831bbc29
Added lua5.4 attribute support to `language_lua`
2020-07-01 09:26:41 +01:00
rxi
094cf0cc2c
Fixed shift+click select behavior
2020-06-26 10:44:56 +01:00
rxi
53d555b362
Added support for mouse double/triple click+drag selection
...
Resolves #159
Resolves #161
2020-06-25 13:41:46 +01:00
Francesco Abbate
0645ececf9
Merge remote-tracking branch 'rxi/master' into agg-font-renderer
2020-06-21 12:02:03 +02:00
rxi
ae48049695
Changed `trimwhitespace` to never cause caret to reposition
2020-06-19 12:09:00 +01: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
rxi
7517d0ef55
Changed EXEDIR to be used as default project dir
2020-06-13 08:56:13 +01:00
rxi
ba6c14846b
Added file-header pattern support to `syntax`
2020-06-08 16:11:22 +01:00
rxi
877d940c0e
language_js improvements
2020-06-05 22:38:06 +01:00
rxi
bd0644a5bb
Added resetting of selection on intermediate find-text failure
2020-06-04 14:04:46 +01:00
rxi
3569abcb53
Merge pull request #133 from 6r1d/master
...
Fix for keypad enter issue
2020-06-04 13:17:33 +01:00
rxi
18de4552e2
Made tab's text left-aligned if wider than the tab
2020-06-03 13:34:10 +01:00
rxi
4b167e86c6
Fixed bug in Highlighter.invalidate() when setting first_invalid_line
...
The value should not be updated if the current first_invalid_line is less than
the new invalid line index
2020-06-02 22:50:03 +01:00
Victor Gridnevsky
a6f52197d0
Fixes keypad enter issue ( #131 )
2020-06-02 13:26:16 +03:00
rxi
508b6fb73a
Improved RootView's EmptyView
2020-05-30 14:58:31 +01:00
rxi
db8c5ea2aa
Renamed core:command/file-finder => core:find-command/file
2020-05-30 09:11:42 +01:00