Jefferson González and GitHub
aca1cd6b6b
Merge pull request #892 from jgmdev/PR/status-view-move-item
...
statusview: added functions for easy custom item ordering
2022-03-29 16:25:31 -04:00
Jefferson González and GitHub
61ad6b052e
Merge pull request #895 from jgmdev/PR/c-cpp-fixes-improvements
...
language_c/cpp: fixes and improvements
2022-03-29 16:20:22 -04:00
jgmdev
e74761da95
language_c/cpp: fixes and improvements
...
* support colorization of function and variables type declarations
* support the macro concatenation operator ##
* support what seems to be new cpp number notation format #'###
* improved uppercase constants matching
2022-03-29 16:16:12 -04:00
Jefferson González and GitHub
fac54d2ff4
Merge pull request #904 from jgmdev/PR/fix-syntax-optimization
...
syntax: fix conflicts introduced with #896
2022-03-29 15:44:19 -04:00
Jefferson González and GitHub
29968b6f35
Merge pull request #905 from jgmdev/PR/md-add-parenthesis-bullet
...
language_md: parenthesis support to numbered bullets
2022-03-29 15:41:54 -04:00
jgmdev
5f9d45895d
language_md: parenthesis support to numbered bullets
2022-03-28 21:03:59 -04:00
jgmdev
e862fe9052
syntax: fix conflicts introduced with #896
...
* mainly the language_md got affected which has some exotic rules
* some other languages are also using spaces at start of pattern
and even if not affected this change tackles that
2022-03-28 20:51:09 -04:00
Jefferson González and GitHub
951f0913da
syntax: add pattern to boost tokenizer performance ( #896 )
2022-03-25 11:25:32 -04:00
Jefferson González and GitHub
a2d5a7a904
Merge pull request #894 from adamharrison/fix-anonymous-syntaxes
...
Fixed anonymous syntaxes.
2022-03-22 22:06:25 -04:00
jgmdev
c82d6b08d9
statusview: added functions for easy custom item ordering
2022-03-21 18:40:14 -04:00
jgmdev
bbac4d1560
treeview: add proper predicate for delete command
2022-03-20 01:58:39 -04:00
jgmdev
c3bcf68851
treeview: use root_view:get_primary_node().active_view for focus.
2022-03-20 01:05:07 -04:00
jgmdev
f0cc973e38
treeview: also handle focus change from mouse and then commandview
2022-03-20 00:53:13 -04:00
Jefferson González and GitHub
ad25216de7
Merge pull request #890 from Guldoman/PR_treeview_fix_scroll
...
Fix `TreeView` scroll via scrollbar
2022-03-20 00:31:26 -04:00
Jefferson González and GitHub
331c78faac
Merge pull request #889 from Guldoman/PR_move_to_selection
...
Move cursor to the beginning/end of its selection
2022-03-20 00:22:00 -04:00
jgmdev
b741c204db
treeview: better handle previous view when focus/unfocus from CommandView
2022-03-19 23:10:26 -04:00
jgmdev
3ffabced62
treeview: move delete command to proper predicate
2022-03-19 22:33:41 -04:00
Jefferson González and GitHub
b5ead3992e
Merge pull request #888 from Guldoman/PR_treeview_collapse_to_parent
...
Make `treeview:collapse` select parent if current item can't collapse
2022-03-18 18:01:44 -04:00
jgmdev
a7fc7b4408
treeview: fix crash on tooltip.x been nil
2022-03-18 06:02:48 -04:00
Jefferson González and GitHub
30de42f4ab
Merge pull request #755 from Jipok/draw_tab_rework
...
rootview.lua: Refactor Node:draw_tab
2022-03-18 05:05:55 -04:00
jgmdev
e8427ae168
treeview: fixed github merging error
2022-03-18 04:23:32 -04:00
Jefferson González and GitHub
5a63f6dc2e
Merge pull request #770 from takase1121/treeview-initial-size
...
add option for treeview initial size
2022-03-18 04:18:56 -04:00
jgmdev
02f6dcc07d
treeview: added @AlexSol suggestions
...
* suggestions included collapse, expand and focus
* also added missing common.merge
* some other minor fixes
2022-03-18 03:57:14 -04:00
Jefferson González and GitHub
0e323f4a35
Merge pull request #886 from adamharrison/fix-left-click-issues
...
Fixed a bunch of problems relating to multicursor.
2022-03-17 21:00:51 -04:00
Jefferson González and GitHub
1f468fca24
Merge pull request #883 from jgmdev/detectindent-improvements
...
plugin detectident: fixes and improvements
2022-03-17 18:29:46 -04:00
jgmdev
5830b7d9f0
plugin detectindent: pre-compile regexes
2022-03-17 00:14:36 -04:00
Jefferson González and GitHub
20763ed7ff
Merge pull request #864 from jgmdev/markdown-adjustments
...
language_md: removed scale adjustment code
2022-03-15 22:14:34 -04:00
jgmdev
dcbebef2ab
plugin detectident: fixes and improvements
...
* Improved performance 67x by not using the tokenizer, this means that
now opening files or saving them where indentation is re-detected
is much more faster.
* Improved the algorithm to detect the space size.
2022-03-15 21:17:15 -04:00
jgmdev
2ce4dbc8ef
language_md: some more improvements
...
* handle images with links
* handle escaping of * and `
* support coloring a heading custom id
* reverted from regex to lua patterns
2022-03-13 14:43:50 -04:00
Jefferson González and GitHub
17017b63ae
Merge pull request #875 from jgmdev/language-c-cpp-improvements
...
Languages c and cpp improvements
2022-03-11 17:44:17 -04:00
Jefferson González and GitHub
1725a48ce2
Merge pull request #879 from jgmdev/plugins-skip-version
...
config: added skip_plugins_version
2022-03-11 17:30:36 -04:00
Jefferson González and GitHub
d0d0028472
Merge pull request #877 from jgmdev/statusview-commands
...
StatusView: added ability to hide and commands
2022-03-11 17:26:02 -04:00
jgmdev
620b669517
statusview: added ability to hide and commands
...
Also fixed the right panel not been draggable.
2022-03-11 17:23:16 -04:00
Jefferson González and GitHub
46795972f0
Merge pull request #876 from jgmdev/nagview-scroll
...
nagview: support vscroll when message is too long
2022-03-11 17:11:38 -04:00
jgmdev
b880aa42f9
language_c: fixes and improvements
...
* Do not compete with language_cpp.lua over the .h and .inl files,
these files can contain both cpp and c so we choose the former which
supports both syntaxes.
* Added support for magic and uppercase constants.
2022-03-11 17:05:08 -04:00
jgmdev
4b0531cdfc
language_cpp: improvements and fixes
...
* Removed pcall(require, "plugins.language_c") since it doesn't works
as it seems to have been intended.
* Removed duplicate keywords
* Added support for magic and uppercase constants.
* Basically merged most changes from the lite-xl-plugins repo.
2022-03-11 17:02:42 -04:00
jgmdev
d9909cf4ea
config: added skip_plugins_version
...
This new config flag ignores the plugins version check at startup
which helps a lot when working on new or old plugins that doesn't match
the mod or lite-xl version and you still desire to load them to fix them
by checking with lite-xl it self which errors need to be corrected.
2022-03-10 22:29:33 -04:00
jgmdev
0aa53a0e7f
nagview: support vscroll when message is too long
...
Also some other minor changes:
* fix transition when nagview is closed
* do not draw or update when not visible
* do not process events when not visible
* cleaned a bit the logic on next and show
* fixes #848
2022-03-10 06:57:16 -04:00
Jefferson González and GitHub
e08353ea08
Merge pull request #873 from jgmdev/user-and-project-reload-fix
...
Fix config overwritten on user/project modules save
2022-03-09 19:40:35 -04:00
jgmdev
eeb2b28a03
config overwritten on user/project modules save
...
When a user modifies and saves the init.lua or a project module file the
reload_customizations() function was performing unnecessary reloading
of core.config and core.style. This resulted on the replacement of config
tables with new tables, breaking all active references been used by
the consumers of this config options. Been redundant this means
that every consumer was using its own copy of a configuration table
different from the one referenced on core.config and user changes not
taking place.
2022-03-09 02:15:01 -04:00
Jefferson González and GitHub
52a47e0d73
Merge pull request #870 from lite-xl/treeview-fix
...
plugin treeview: skip rootview events if not visible.
2022-03-07 18:50:36 -04:00
Jefferson González and GitHub
8a31a2b169
Merge pull request #871 from Guldoman/fix_bad_clip_draw_text
...
Always check if the beginning of the text needs to be clipped
2022-03-07 18:49:14 -04:00
jgmdev
48e86bb117
plugin treeview: skip rootview events if not visible.
2022-03-07 16:52:32 -04:00
Jefferson González and GitHub
6386bac4e5
Merge pull request #869 from jgmdev/fix-loading-order
...
Initialization: load core views before user plugins
2022-03-06 21:22:53 -04:00
jgmdev
9d4e475a2c
init: also load default nodes and commands before user plugins and project module.
2022-03-06 21:21:00 -04:00
jgmdev
d7d88a2037
init: load core views before user plugins
2022-03-06 21:03:16 -04:00
Jefferson González and GitHub
1be425d1de
Merge pull request #867 from Guldoman/fix_load_project_module
...
Load project module on startup
2022-03-06 21:02:22 -04:00
jgmdev
6cb403b450
meson: increased min version to 0.47 and added check flag on run_command.
2022-03-05 20:15:48 -04:00
Jefferson González and GitHub
d82b668a09
Merge pull request #863 from jgmdev/scale-fix
...
plugin scale: replace non existing font.set_size with font.copy
2022-03-05 20:03:05 -04:00
jgmdev
c4f7380a95
language_md: removed scale adjustment code that was needed because of a bug on scale plugin.
2022-03-05 19:13:24 -04:00
jgmdev
e5ca08e13f
plugin scale: replace non existing font.set_size with font.copy
2022-03-05 19:03:33 -04:00
Jefferson González and GitHub
1fa1960b05
Merge pull request #862 from jgmdev/markdown-consolidation
...
language_md: improvements consolidating #814 and #840 thanks to @Not-a-web-Developer and @TorchedSammy
2022-03-04 14:58:25 -04:00
jgmdev
2d3d9a1671
language_md: improvements consolidating #814 and #840
2022-03-04 14:29:29 -04:00
Jefferson González and GitHub
0e79607895
Merge pull request #859 from jgmdev/commit-on-version
...
Add git commit on version of devel builds
2022-03-04 14:18:36 -04:00
Jefferson González and GitHub
2f7da44275
Merge pull request #860 from Guldoman/tokenizer_start_of_line
...
Allow syntax patterns to match with the beginning of the line
2022-03-04 14:13:14 -04:00
Jefferson González and GitHub
2736072dce
Merge pull request #858 from Guldoman/move_towards_epsilon
...
Use epsilon to compare values in `View:move_towards`
2022-03-03 15:21:25 -04:00
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 and GitHub
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
jgmdev
2079e1f707
Plugin projectsearch: set command view text to current document selection.
2022-02-13 01:31:58 -04:00
jgmdev
bb4569da53
Fix cases of nil node.
2022-02-09 10:40:02 -04:00
Jefferson González and GitHub
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
Jefferson González and GitHub
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
jgmdev
aec6806d8f
Added system.get_process_id() to api docs.
2022-02-04 15:43:42 -04:00
jgmdev
df0635ad35
Implemented system.get_process_id()
2022-02-03 22:20:42 -04:00
jgmdev
6773e85cb8
Update autocomplete with changes needed for latest LSP plugin.
2022-02-03 15:01:39 -04:00
jgmdev
afa0c175e8
Added delete confirmation using NagView.
2021-07-12 11:41:31 -04:00
jgmdev
a4d5622eda
Make use of core.reschedule_project_scan()
2021-07-11 23:03:33 -04:00
jgmdev
900e9d1422
Namespaced aliases, virtual classes and added missing returns.
2021-07-09 18:33:25 -04:00
jgmdev
68459a9199
Added context menu to treeview.
2021-06-28 11:11:49 -04:00
jgmdev
4188269cef
Added system.rmdir(path)
...
It is reported that the built-in lua function os.remove(path) does
not removes empty directories on windows. To fix this a system.rmdir
function is introduced that calls a native win32 function.
Also common.rm(path, recursively) was added which wraps system.rmdir()
to easily delete an entire folder with all its contents.
2021-06-28 11:07:27 -04:00
jgmdev
18eee34aa9
Added README to docs directory.
2021-06-25 03:03:07 -04:00
jgmdev
bd50401687
Documented with EmmyLua the C API using .lua interface files.
2021-06-25 02:25:05 -04:00
jgmdev
88704c6ecb
[api/process] added missing fields and minor fix to pid()
2021-06-22 15:01:30 -04:00
Jefferson González and GitHub
559be66e80
Merge pull request #289 from jgmdev/close-hook
...
Added Doc:on_close() method.
2021-06-20 11:37:31 -04:00
jgmdev
1a51dad23c
Added Doc:on_close() for plugins
2021-06-20 00:13:07 -04:00
Jefferson González and GitHub
0d65725b27
Merge pull request #286 from jgmdev/reproc-merge
...
Reproc merge
2021-06-18 14:23:42 -04:00
jgmdev
5d2734de81
Merge reproc changes from dev.
2021-06-18 14:19:09 -04:00
jgmdev
e9e1214e59
[plugin/scale] fixed wrong increase and decrease
...
If the user manually set the desired scale by calling scale.set(1.60)
the scale_level was not set accordingly which meant that later doing
a Scale:Increase/Decrease command yielded incorrect scale amount.
2021-06-17 20:58:22 -04:00
jgmdev
e070dbebc1
Fix undeclared NagView findindex() by moving it to common.
2021-06-13 21:28:29 -04:00
Jefferson González and GitHub
9823da8531
Merge pull request #267 from jgmdev/nagview-fix
...
Added missing NagView dialog commands to startup.
2021-06-12 23:14:17 -04:00
jgmdev
9153f5695d
Added missing NagView dialog commands to startup.
2021-06-09 20:13:23 -04:00
Jefferson González and GitHub
b4896ed69e
[plugin/contextmenu] Append itemsets that where registered. ( #258 )
2021-06-07 23:29:03 +02:00