jgmdev
131bdf9fb2
StatusView: implemented and applied get_item_visible_area.
2022-02-24 02:23:29 -04:00
jgmdev
b1ce685489
StatusView: better calculate panel sizes and handle out of bounds drags.
2022-02-24 00:21:21 -04:00
jgmdev
c5648e1f02
StatusView: implemented dragging and scrolling.
2022-02-23 19:25:25 -04:00
jgmdev
3452d499e5
Show hand cursor on clickable elements as suggested by @Guldoman
2022-02-23 06:07:53 -04:00
jgmdev
90983b22a4
StatusView v2.0, some changes include:
...
* Items are now objects that can be retrieved and manipulated.
* clip rect is used for left and right panes
* initial support for items to do their own custom drawing by also
doing a clip rect for them
* a custom background color can be specified for the item.
* a command or function can be executed on item click.
* Introduced functionality to easily hide or show all or specific items.
* Better handling of deprecated get_items()
* Spacing is automatically added to items and cleaned on deprecated
items.
* Default items where separated and given the names:
doc:file, doc:position, doc:indentation, doc:lines,
doc:line-ending, core.commandview.
* Some default right or left click actions where given to the default
items.
* Started adding required bits to support dragging to left and right
panes when some items aren't visible.
Note: should work well enough already but maybe some repetitive stuff can be
cleaned out.
2022-02-23 05:15:14 -04:00
jgmdev
7cb4e93d14
Improvements to the StatusView
...
* Support for predicates by introducing add_item().
* Support for performing click actions on items.
* Support for optional tooltips on item hover.
* Deprecate the usage of get_item().
2022-02-21 03:40:25 -04:00
jgmdev
feaa3b2547
Docs: changes process start from method to function.
2022-02-15 20:49:46 -04:00
Adam
61e712db12
Fixed rendering computations for y offset. ( #843 )
...
* Fixed rendering computations for y offset.
* Force monospacing if every ascii character has the same integer advance.
* Added in explanatory comment.
* Fixed issues.
* Made lines less long.
2022-02-15 15:57:07 -05:00
Adam
05e1968b0b
Merge pull request #845 from Guldoman/file_drop_override
...
Add `View:on_file_dropped`
2022-02-15 11:44:37 -05:00
Guldoman
539f929e30
Allow intercepting `filedropped` events
...
The event is first sent to the underlying `View`; if not handled, it's
managed as before.
2022-02-15 00:45:59 +01:00
jgmdev
2079e1f707
Plugin projectsearch: set command view text to current document selection.
2022-02-13 01:31:58 -04:00
Francesco Abbate
b02aae939c
Fix again bug with invalid ignore_files patterns
...
The pattern cannot be tested in advance as it seems that Lua inspect
the pattern only partially, the part that is actually used.
We resort to use pcall to catch any error when using the pattern.
2022-02-11 23:00:15 +01:00
Adam
a6f32ca0d0
Merge pull request #822 from AlexSol/update_contextMenu
...
Travel by contextMenu using keyboard
2022-02-11 12:10:14 -05:00
Adam
3a0af6ee04
Merge pull request #828 from adamharrison/signal-processes
...
Changed signalling so it'll target the whole process group.
2022-02-11 12:01:53 -05:00
Adam
af6a06bc8b
Merge pull request #832 from jgmdev/autocomplete-update
...
Update autocomplete with changes needed for latest LSP plugin.
2022-02-11 12:01:35 -05:00
Adam
b05a02cb28
Merge pull request #839 from jgmdev/nil-nodes-fix
...
Fix cases of nil node.
2022-02-11 11:52:43 -05:00
Adam
a4833b21e4
Merge pull request #842 from Guldoman/no_scroll_selection
...
Don't scroll when selecting the whole doc
2022-02-11 11:48:01 -05:00
Francesco Abbate
85531b0d3f
Include addons with build-package for bundles
2022-02-11 06:33:53 +01:00
Guldoman
5526041da3
Check entire selection to trigger `DocView:scroll_to_make_visible`
...
This is needed for example when a selection has both `line1` and `col1`
at 1, and the left arrow is pressed: `line2` and `col2` change, while
`line1` and `col1` don't, but we still want to scroll.
2022-02-11 06:16:29 +01:00
Guldoman
59ba759167
Don't scroll DocView when executing `doc:select-all`
2022-02-11 06:00:38 +01:00
jgmdev
bb4569da53
Fix cases of nil node.
2022-02-09 10:40:02 -04:00
Jefferson González
dc5888bc07
Merge pull request #837 from Guldoman/process_running_poll
...
Update process status when calling `process:running`
2022-02-08 16:36:18 -04:00
Guldoman
d4b8155cbc
Update process status when calling `process:running`
2022-02-08 18:10:54 +01:00
Jefferson González
8caccbf6f0
Merge pull request #836 from Guldoman/toggle_comment_empty_line
...
Ignore empty lines in `line_comment`
2022-02-07 15:31:48 -04:00
Guldoman
f23cb33f7c
Ignore empty lines in `line_comment`
2022-02-07 19:22:43 +01:00
jgmdev
aec6806d8f
Added system.get_process_id() to api docs.
2022-02-04 15:43:42 -04:00
Adam
212d4e2729
Merge pull request #833 from jgmdev/add-system-get_process_id
...
Implemented system.get_process_id()
2022-02-04 12:24:54 -05:00
jgmdev
df0635ad35
Implemented system.get_process_id()
2022-02-03 22:20:42 -04:00
Adam
e5f17aea4b
Merge pull request #821 from dheisom-gomes/improvements
...
Improvements on core.add_thread function
2022-02-03 19:23:54 -05:00
Adam
d78f310a4e
Merge pull request #829 from Guldoman/draw_rect_alpha_format
...
Use SDL to manage color format mapping in `ren_draw_rect`
2022-02-03 17:02:49 -05:00
jgmdev
6773e85cb8
Update autocomplete with changes needed for latest LSP plugin.
2022-02-03 15:01:39 -04:00
Guldoman
9a6cd2b453
Use SDL to manage color format mapping in `ren_draw_rect`
2022-02-03 01:50:43 +01:00
Adam Harrison
d2d5617774
Changed signalling so it'll target the whole process group.
2022-01-30 20:51:30 -05:00
Dheisom Gomes
f5e9146b1c
Merge branch 'master' of https://github.com/lite-xl/lite-xl into improvements
2022-01-30 15:49:37 -03:00
Adam Harrison
af76f544be
Fixing performance regression. Due to the way the hashes work, we must 0 out the whole thing.
2022-01-29 15:19:22 -05:00
AlexSol
efedbae663
Travel by contextMenu using keyboard
2022-01-29 16:23:00 +02:00
Adam
3d40725b8f
Merge pull request #816 from adamharrison/fix-process-api
...
Fixing up Process API
2022-01-28 23:53:37 -05:00
Dheisom Gomes
13adedb23a
Go back to `common.match_pattern` and use `table.unpack` directly on function `core.add_thread`
2022-01-28 18:30:19 -03:00
Adam Harrison
941523868e
Merge branch 'fix-process-api' of github.com:adamharrison/lite-xl into fix-process-api
2022-01-28 15:44:16 -05:00
Adam Harrison
3773a812bd
Incorporate realtakase's suggestions.
2022-01-28 15:39:57 -05:00
Adam
0a70b13a73
Merge pull request #809 from lite-xl/merge-master-2.0
...
Merge master 2.0
2022-01-28 14:38:22 -05:00
Dheisom Gomes
22d8f69b5c
Error correction getting "unpack" function
2022-01-28 12:13:52 -03:00
Dheisom Gomes
6331a23c6b
Added support to use a array of regex to ignore files
2022-01-28 12:02:30 -03:00
Dheisom Gomes
8c0685d440
Added support to pass extra arguments to functions on core.add_thread
2022-01-28 11:53:30 -03:00
Francesco Abbate
3a53b05b29
Do no error out on malformed ignore patterns
2022-01-25 14:16:40 +01:00
Francesco Abbate
3e39da071d
Fix problem with project module save hook
2022-01-24 09:34:54 +01:00
Francesco Abbate
bc9f8a4075
Use new mutex in dmon to avoid possible lock-up
...
We rely on one variable _dmon.modify_watches shared between thread to
ensure that we don't lock with the dmon polling thread waiting indefinitely
and helding a lock.
To ensure that the polling thread sees modifications done to 'modify_watches'
we use an additional mutex that act as a memory barrier.
2022-01-24 09:34:54 +01:00
Adam Harrison
456126400a
Added in new merge method, and run it on plugins. Also made it so plugin configs can be set anywhere, even if we don't know the plugin beforehand.
2022-01-22 18:39:23 -05:00
Adam
7e6d9df58d
Merge pull request #805 from Jan200101/PR/fallback-force
...
use lua fallback earlier when fallbacks are forced
2022-01-22 17:30:01 -05:00
Jan200101
227ca7d0e5
use lua fallback earlier when fallbacks are forced
2022-01-22 23:29:28 +01:00