Guldoman
2dac3667cb
Merge pull request #1073 from ncarrezdev/ncarrezdev/synxtax-corrections
...
[chore]: Update syntax
2022-07-13 15:05:26 +02:00
NCarrezDev
7f9287a7e7
[chore]: Delete useless $
...
follow up on Guldoman's comment
2022-07-13 09:16:32 +02:00
Guldoman
9cfa3ecd56
Make `StatusView:add_item` accept a table
2022-07-13 07:22:42 +02:00
Guldoman
693bd11b22
Don't wrap around if there are no suggestions in `CommandView`
2022-07-11 23:28:08 +02:00
NCarrezDev
030dcc1e62
[chore]: Update syntax
...
Harmonizing the syntax files
Now inline comment are a single string instead of a table of strings.
-(language_c): Removed whitespaces breaking indent
-(language_html): Removed trailing whitespace
2022-07-06 10:15:44 +02:00
Jefferson González
e646f2fb28
Merge pull request #1065 from Guldoman/PR_log_size
...
Increase `config.max_log_items`, add a scrollbar and optimize `LogView`
2022-07-05 18:07:33 -04:00
Jefferson González
f49fd1b477
Merge pull request #1064 from Guldoman/PR_md_single_math
...
`language_md`: Limit inline math mode to the current line
2022-07-05 18:01:59 -04:00
Jefferson González
f611556f1a
Merge pull request #1062 from Guldoman/PR_fix_logview_on_error
...
Fix opening `LogView` when reloading customizations
2022-07-05 18:00:56 -04:00
Jefferson González
58336f6060
Merge pull request #1060 from Guldoman/PR_drag_whitespace_newline
...
On `doc:newline` remove line content if it contains only whitespace
2022-07-05 17:56:13 -04:00
Jefferson González
041456cf38
Merge pull request #1059 from Guldoman/PR_no_indent_empty_lines
...
Don't indent empty lines in a selection
2022-07-05 17:52:17 -04:00
Ben Larisch
ce0d8b313c
language_python: add syntax support for match-case statement
2022-07-03 15:15:51 +02:00
Guldoman
7888bf08e9
`LogView`: Show scrollbar
2022-07-01 05:29:55 +02:00
Guldoman
b84a510d42
Increase default maximum number of log items
...
The low number in some cases resulted in hidden errors.
2022-07-01 05:29:54 +02:00
Guldoman
caf106be1d
`LogView`: Don't draw invisible items
2022-07-01 05:29:45 +02:00
Guldoman
79dd8779c4
`autocomplete`: Fix "Too many symbols" message when `Doc` has no name
...
Before, when a `Doc` had no name, an error was thrown.
2022-06-29 05:54:37 +02:00
Guldoman
92c2815aa4
`language_md`: Limit inline math mode to the current line
2022-06-28 20:09:36 +02:00
Guldoman
259de54c33
Fix opening `LogView` when reloading customizations
...
As `reload_customizations` was called during save operations, opening
the `LogView` changed `core.active_view` which caused some errors to be
thrown.
2022-06-28 04:21:43 +02:00
Guldoman
c792b13666
On `doc:newline` remove line content if it contains only whitespace
2022-06-25 03:57:47 +02:00
Guldoman
d6ce9e1ac6
Don't indent empty lines in a selection
2022-06-25 03:32:47 +02:00
Guldoman
438ed6984a
`drawwhitespace`: Invalidate cache on font size change
2022-06-25 03:30:33 +02:00
Guldoman
9cd47aa12e
Fix full line cut when only a single line remains
2022-06-24 05:49:20 +02:00
jgmdev
d2f9eeea07
renderer fonts: additions and improvements
...
* Allow passing font options to renderer.font:copy().
* Added renderer.font:get_path()
* Reintroduced set_size() for more faster font size changes
* Swapped copy wiht set_size on scale plugin for better performance
* Use code_font:copy() instead of renderer.font.load() on language_md to
properly match user font now that font options are supported on copy.
* Added new changes to renderer docs
2022-06-23 18:08:04 -04:00
jgmdev
31d2024283
lineguide: added config spec
2022-06-23 18:07:27 -04:00
Chris
1e91080680
Improve `lineguide` plugin ( #1056 )
...
* Add more options to lineguide
* Allow lineguide plugin to load but remain disabled
* Use config.line_limit for default ruler
2022-06-23 15:24:57 -04:00
Guldoman
ec0e3018a8
`findreplace`: Sort last searches
2022-06-23 05:16:47 +02:00
Katrina Grace
beefb16469
language_html: Improve subsyntax highlighting ( #1043 )
...
* language_html: Improve subsyntax highlighting
- Adjusted `<script>`/`<style>` tag detection to not break when attributes like `defer` are added
2022-06-22 22:56:41 -04:00
Jefferson González
880e6e4f0f
Merge pull request #1040 from Guldoman/PR_tokenizer_errors_alert
...
Add more tokenizer errors/warnings
2022-06-22 19:43:51 -04:00
Guldoman
522d8a8094
`findreplace`: Fix number of total replacements
2022-06-23 00:16:16 +02:00
jgmdev
e0859e1e39
treeview: scale fallback sizes as pointed out by @Guldoman
2022-06-22 01:35:10 -04:00
jgmdev
7b411c3ea9
treeview: restore ability to disable toolbarview
2022-06-22 00:42:26 -04:00
Guldoman
76c1db97f5
`drawwhitespace`: Use `Docview` vertical line offset
2022-06-20 19:56:53 +02:00
Guldoman
205e554d87
Merge pull request #1047 from jgmdev/PR/cv-draw-visible
...
CommandView: improve performance by only drawing visible
2022-06-20 17:35:06 +02:00
a
8fd00b12cf
Add .cjs and .mjs for js syntax highlighting
2022-06-20 16:12:25 +02:00
jgmdev
665c2cdd4d
CommandView: improve performance by only drawing visible
2022-06-20 10:01:28 -04:00
jgmdev
173dd3aeb4
plugin treeview: fix crash
...
When the max_project_files is set to a higher value than the allowed
system maximum file descriptors, and opening a project directory that
causes dirmonitor to open a watch on a lot of files or directories, at
least on MacOSX it causes all system.* file functions to return nil
(for too many opened files) which breaks the project files scan.
2022-06-17 15:35:23 -04:00
Jefferson González
3dadbd3a49
Merge pull request #1038 from takase1121/PR/scale-step-gc
...
run GC between scale to prevent ram from exploding
2022-06-16 03:04:53 -04:00
Jefferson González
380cfb9a24
Merge pull request #1030 from Guldoman/PR_cache_draw_whitespace
...
`drawwhitespace`: Cache whitespace location
2022-06-15 21:08:09 -04:00
Guldoman
2d3abd2533
`drawwhitespace`: Invalidate cache on config changes
2022-06-16 00:03:25 +02:00
Jefferson González
d2fd5c9df7
Merge pull request #1034 from Guldoman/PR_escape_start_patterns
...
Check if "open" pattern is escaped
2022-06-15 16:51:34 -04:00
Jefferson González
eeea47a2e5
Merge pull request #1033 from Guldoman/PR_utf8_regex_fix
...
Convert more byte offsets to utf-8 pos in regex tokenizer
2022-06-15 16:51:11 -04:00
Jefferson González
2dc0a5664d
Merge pull request #1029 from Guldoman/PR_math_md
...
`language_md`: Add math delimiters
2022-06-15 15:32:57 -04:00
Guldoman
d169619f69
Warn if token type is a table when not needed
2022-06-15 21:31:16 +02:00
Guldoman
2e37e85a48
Add helper function to report bad patterns in tokenizer
2022-06-15 21:28:46 +02:00
Guldoman
5027a0f12b
Fix malformed pattern check for group patterns in tokenizer
...
If the token type was a simple string (and not a table), the size of the
string was used instead of `1`.
2022-06-15 19:33:58 +02:00
takase1121
42e0028f1c
run GC between scale to prevent ram from exploding
2022-06-15 22:56:52 +08:00
Guldoman
5b6b48320f
Check if "open" pattern is escaped
...
Previously this check was only done for "close" patterns.
2022-06-12 04:19:05 +02:00
Guldoman
c947e8a4d1
Convert more byte offsets to utf-8 pos in regex tokenizer
2022-06-12 02:55:36 +02:00
Guldoman
f38723ea46
`drawwhitespace`: Cache whitespace location
2022-06-11 06:30:13 +02:00
Guldoman
685956cbdb
Add `Highlighter:update_notify` to keep track of retokenized lines
...
This is helpful for plugins that need to know when a line has been
retokenized.
2022-06-11 06:21:55 +02:00
Guldoman
99d328cfd7
Downgrade `StatusView:get_items` deprecation message to warning
2022-06-11 05:13:37 +02:00