Guldoman and GitHub
519b91c2dd
Pass the currently selected item to CommandView validation ( #1203 )
2022-11-15 12:03:13 -04:00
Guldoman
c6c485feb0
Use subsyntax info in doc:toggle-{line,block}-comments
2022-11-15 16:11:37 +01:00
Guldoman
0a1b8b6bb1
Set initial tokenizer state to a NULL byte
2022-11-15 16:01:04 +01:00
Guldoman
e147a6cb9b
Add tokenizer.extract_subsyntaxes
2022-11-15 16:00:48 +01:00
jgmdev
acebbfd88a
linewrapping: fix enabled always by mistake introduced with #1190
2022-11-07 13:59:13 -04:00
jgmdev
fb43e6f9e6
traceback: some lua versions do not support message as nil
2022-11-07 12:48:09 -04:00
Quinten Kock and GitHub
4a5851afe5
Make linewrapping plugin recompute breaks before scrolling ( #1190 )
2022-11-06 22:34:07 -04:00
Jefferson González and GitHub
9c7304f555
highlighter: autostop co-routine when not needed ( #881 )
...
* highlighter: autostop co-routine when not needed
* applied @Guldoman suggestions
2022-11-06 03:38:10 +01:00
Jefferson González and GitHub
b8a4f729df
tokenizer: remove the limit of 3 subsyntaxes depth ( #1186 )
...
* tokenizer: remove the limit of 3 subsyntaxes depth
Make the state a string of bytes instead of a 32bits integer to be able
to have deeper subsyntax support. Fixes issues with syntax files like
the one for PHP that was already hitting more than 3 subsyntaxes depth.
* remove unnecesary call to set_subsyntax_pattern_idx
* fixed wrong word on comments
2022-11-03 18:56:20 -04:00
Guldoman and GitHub
03cc5ffcd1
Add config.keep_newline_whitespace option ( #1184 )
...
This option will avoid removing line content when pressing enter in
lines with only whitespace.
2022-11-03 12:40:27 -04:00
Guldoman
b029f5993e
Don't sort in Doc:get_selection_idx with an invalid index
2022-11-02 21:11:41 +01:00
69bccf6fcf
docview: support gutter click selection, fixes #1116 ( #1169 )
...
* docview: support gutter click selection, fixes #1116
* Added missing call to parent on_mouse_pressed
Also fixed call to selections when `shift` is pressed.
* change to arrow instead of hand
Co-authored-by: Adam <adamdharrison@gmail.com >
2022-11-01 19:34:23 -04:00
Guldoman and GitHub
ed226c476e
Add more options to Scrollbar ( #1174 )
...
* Make `Scrollbar` accept a table for its options
* Add `force_status`, `{expanded,shrinked}_size` options to `Scrollbar`
* Add `Scrollbar:set_forced_status`
* Add `config.force_scrollbar_status` to force `DocView` scrollbars status
2022-11-01 18:38:50 -04:00
Guldoman and GitHub
0f160e614e
Improvements to multicursor copy/paste ( #1123 )
...
* Add `Doc:get_selection_idx`
* Make multicursor paste add a cursor at the end of each paste
* Better manage paste of multicursor whole line copy
* Document `Doc:get_selection_idx`
* Keep track of last added selection in `Doc`
* Make use of `doc.last_selection` in `Doc` commands
* Make `Doc:get_selection` return the `Doc.last_selection` if possible
2022-11-01 18:16:39 -04:00
Guldoman
b52fe1605e
Make MacOS core:restart shortcut more in line with other platforms
2022-11-01 21:21:50 +01:00
Guldoman
c512d01a68
Fix horizontal scroll with shift+scroll on MacOS
...
It seems like pressing shift+scroll on MacOS automatically makes it
shift+horizontal scroll.
2022-11-01 21:20:37 +01:00
Guldoman
8a9bac7de3
Fix drawwhitespace drawing lines with different substitution kinds
...
When multiple substitution kinds are present in the same line, they're
placed in the cache in an order that's spatially consistent only between
items of the same kind.
Because we stopped drawing after we reached the first invisible
substitution, the subsequent kinds weren't drawn even if they should
have been.
2022-10-30 02:54:30 +01:00
jgmdev
0030c69524
plugin autocomplete: update partial on manual trigger
2022-10-25 17:20:31 -04:00
Guldoman
715411061b
Apply doc commands to anything that extends DocView
...
This fixes a regression caused by
cf29a6a45f .
2022-10-24 04:47:26 +02:00
Jefferson González and GitHub
af6c4bc152
core syntax: strip the path from filename on syntax.get ( #1168 )
2022-10-22 20:04:54 -04:00
Jefferson González and GitHub
f02b3c46e6
Merge pull request #1167 from jgmdev/PR/new-lines
...
* plugin drawwhitespace: allow newline substitution
* docview: do not render newline fixes #1164
2022-10-22 19:56:43 -04:00
jgmdev
3da6833249
docview: do not render newline fixes #1164
2022-10-21 13:56:23 -04:00
jgmdev
261292c6aa
plugin drawwhitespace: allow newline substitution
2022-10-21 13:53:42 -04:00
Adam and GitHub
dd6eee1542
Fixed the common idiom of setting a plugin to true. ( #1152 )
2022-10-20 18:04:28 -04:00
Takase and GitHub
437b954595
make the default core.ignore_files more specific ( #1160 )
...
* make the default core.ignore_files more specific
instead of blanket ignoring all dotfiles, we define a list of folders
and files to ignore. this makes the overall experience better.
* fix wrong path pattern
* add ignore_files to user init
2022-10-19 22:23:01 -04:00
Adam
1c5936e697
Fixup minor drawing issue.
2022-10-18 16:01:32 -04:00
Guldoman
decbac4ac6
Check if scrollbar is no longer hovered on mouse release
2022-10-16 04:43:15 +02:00
Guldoman
6ca56fee1a
Only consider left clicks on the scrollbar
2022-10-16 04:40:03 +02:00
jgmdev
5aaa5ab273
plugin lineguide: be strict on drawing to DocView
2022-10-15 21:56:34 -04:00
Guldoman and GitHub
6b754eb628
Refactor scrollbar into its own file ( #1124 )
...
* Move scrollbar to its own file
* Don't call `Scrollbar` functions if `View` is not scrollable
* Allow horizontal scrolling in `Scrollbar`
* Add horizontal scrollbar to `View`
* Add `root:horizontal-scroll` command with `shift+wheel` keymap
* Prioritize vertical scrollbar hover
* Don't send mouse movement to vertical scrollbar when dragging horizontal one
* Fix clicking on horizontal scrollbar track
* Implement `start` scrollbar alignment
* Add documentation to `Scrollbar`
* Make `DocView` infinitely scrollable horizontally
* Handle horizontal scroll SDL event
2022-10-15 20:12:15 -04:00
Guldoman and GitHub
5c2c95765e
Add IME support ( #991 )
2022-10-15 19:58:51 -04:00
Jefferson González and GitHub
f89088d0ec
dirmonitor: add watch to subdirs on file limit mode ( #1155 )
2022-10-13 00:37:52 -04:00
Guldoman and GitHub
334a7da5c9
Use the syntax with the longest match ( #919 )
...
This way, for example, a syntax that applies to `docker-compose.yml`
files will take precedence over one that applies to `*.yml` files.
2022-10-12 18:10:11 -04:00
Jefferson González and GitHub
0fc793d1ae
Add on_scale_change event to View ( #1146 )
...
* core view: emit on_scale_change event
* core titleview: reconfigure hit_test on rescale fixes #1144
2022-10-11 14:44:32 -04:00
Jefferson González and GitHub
214c9d6287
dirwatch: exit coroutine if project not open anymore to properly gargage collect it ( #1142 )
2022-10-11 13:22:44 -04:00
Jefferson González and GitHub
a7888e96ea
Add fsevents backend to dirmonitor ( #1141 )
...
* dirmonitor: added backend reporting of watch mode
* dirmonitor: added fsevents backend for macos
2022-10-10 20:40:41 -04:00
Takase and GitHub
3409929a0c
draw lite-xl icon in TitleView ( #1143 )
...
the original hamburger menu icon is confusing. It is not a menu
and clicking it doesn't do anything. There is no reason why
we can't draw lite-xl's icon in place of that.
2022-10-10 11:05:30 -04:00
Adam and GitHub
d1c74f529a
Changed workspace to accommodate other views. ( #1121 )
...
* Added in the ability to pull scrolls from views, as all views have the capability of scrolling now.
2022-10-09 19:55:07 -07:00
Adam and GitHub
9e816154ad
Added in an additional ENVVAR for setting USERDIR, and also changed / to PATHSEP. ( #1139 )
...
* Added in an additional ENVVAR for setting USERDIR, and also changed / to PATHSEP.
* Forgot a /
2022-10-08 20:48:30 +02:00
Adam and GitHub
1580d923d3
Fixing minor bug relating to TreeView's cache. ( #1136 )
...
Reviewed by Guldo; should fix things, merging.
2022-10-04 18:26:33 -04:00
jgmdev
a65a2b293a
plugins language_md: fixed some regressions, added caddyfile support
2022-10-02 21:45:54 -04:00
Jefferson González and GitHub
a0164d5902
language_md: don't require space at end on '_', '__', '___' ( #1129 )
2022-09-28 22:44:42 -04:00
jgmdev
e2884895ce
core start: added missing ';' to package.cpath
2022-09-25 17:13:07 -04:00
Adam and GitHub
6bb08fc68f
Added in ability to have init.so as a require for cpath. ( #1126 )
2022-09-25 17:08:21 -04:00
Adam and GitHub
5ada80b9df
Added in native modules suffixes. ( #1111 )
...
* Added in native modules with suffixes, giving priority to those with matching architectures and platforms.
* PowerPC isn't x86, and it's x86_64.
* Changed things over to allow compiler to set a tuple, makes more sense from a build perspective.
* Spelling mistake.
* Added in arm target tuples.
2022-09-18 18:27:50 -04:00
jgmdev
4134b30ffd
core: remapped core:restart to ctrl+alt+r
...
Commonly `ctrl+shift+r` is used in most editors for find and
replace operations, also the regexreplacepreview.lua plugin makes
a more appropriate use of this binding.
2022-09-16 11:31:05 -04:00
Jefferson González and GitHub
5a80d3547e
contextmenu: resize on scale changes ( #1117 )
2022-09-15 00:57:45 -04:00
Jefferson González and GitHub
862ed9ad6a
plugin scale: added option to set default scale ( #1115 )
2022-09-15 00:54:44 -04:00
Adam and GitHub
10d810b7d7
Added in simple directory search to treeview. ( #1110 )
2022-09-14 00:14:13 -04:00
Guldoman and GitHub
a19cfb4f80
Strictly limit find/replace commands to core.docview ( #1108 )
...
Without this, find/replace commands applied to the `CommandView` too,
with buggy results.
2022-09-13 22:29:52 -04:00