jgmdev
a587182982
meson: when running git rev-parse use HEAD instead of checking current branch name
2022-03-02 18:55:46 -04:00
jgmdev
1e765b5c28
EmptyView: handle lite-xl version strings that overlap.
2022-03-02 03:55:03 -04:00
jgmdev
05e355d383
meson: append git commit if possible and to non release builds
2022-03-02 03:53:04 -04:00
Jefferson González
be5f94e913
Merge pull request #852 from jgmdev/statusview-enhacements
...
Improvements to the StatusView, closes #677
2022-02-28 18:19:46 -04:00
jgmdev
e9775ced78
StatusView: added items hovered option for bg color and param to on_draw as suggested by @Guldoman
2022-02-28 17:56:17 -04:00
jgmdev
4c80aa7a40
StatusView: reposition left and right panel offsets on window resize.
2022-02-28 17:04:37 -04:00
jgmdev
15a31418ca
StatusView: restored indent confirmed
2022-02-24 14:22:52 -04:00
jgmdev
128e10ba47
StatusView: add spaces as separate items instead of pre-pending them to items.
2022-02-24 13:58:40 -04:00
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