fgelm01
3d692cf5a6
Change co_wait to co_await in language_cpp ( #1800 )
...
The C++20 keyword is spelled `co_await`.
2024-06-21 08:06:53 +08:00
PerilousBooklet
4299909cd3
Added Arduino syntax highlighting support alongside C++. ( #1767 )
2024-04-15 08:50:13 +08:00
Guldoman
e053ea3ad2
Limit language_js regex avoidance to numbers, and fix starting /* comments ( #1744 )
...
* Avoid starting regexes only after numbers in `language_js`
* Allow starting `/*` comments after numbers in `language_js`
2024-03-25 17:22:34 +08:00
Aziz Mazouz Jaber
41e2939ea9
Add from symbol to support ESM ( #1754 )
2024-03-25 17:22:12 +08:00
Guldoman
ddf08de1d4
Fix language_js regex/comment distinction ( #1731 )
2024-03-23 20:28:31 +08:00
takase1121 and Guldoman
48aa350a3e
Improve CommandView and autocomplete scroll behavior ( #1732 )
...
* Make command palette item scrolling more natural
Also add a config option for the maximum number of visible entries in the command palette.
* Make `autocomplete` item scrolling more natural
Co-authored-by: Guldoman <giulio.lettieri@gmail.com >
2024-03-23 20:27:47 +08:00
Guldoman
499124d8e3
Improve autocomplete suggestions box behavior ( #1734 )
...
* Improve `autocomplete` suggestions box sizing
This avoids that the box gets too big because of non-visible items, and makes it reactive to window sizing.
* Draw ellipsis when `autocomplete` entries aren't fully visible
2024-03-23 20:26:43 +08:00
PerilousBooklet
e568e4acdf
Added .pyi extension to python. ( #1728 )
2024-03-23 20:26:43 +08:00
Takase
bbc524ad82
language_js: support binary and octal representation ( #1710 )
2024-01-21 14:49:28 +08:00
vqn
a389adbaf5
autoreload docs only if their filename matches an actual file ( #1698 )
2024-01-21 14:48:56 +08:00
Fiji
e353c5322a
Improve number highlighting for python syntax highlighting ( #1704 )
...
* Improve number highlighting for python syntax highlighting
Adds support for octal and binary representation, as well uppercase characters (X, B and O)
* add underscore and negative hex/oct/bin value support
* Removed | from pattern
2024-01-21 14:48:21 +08:00
vqn
9c21903af7
add autocompletion to multicursor ( #1394 )
...
* use Doc:remove
2023-12-29 08:47:21 +08:00
Adam Harrison
1d4e01a192
Fixed a minor bug, should close issue #1680 .
2023-12-29 08:47:21 +08:00
Guldoman
8e2928aeb8
Improve font/color change detection in language_md ( #1614 )
...
* Delay setting font for custom `language_md` token types
* Improve font/color change detection in `language_md`
2023-11-30 11:45:58 +08:00
Guldoman
885e6b3c50
Fix language_js regex constant detection ( #1581 )
...
* Fix `language_js` regex constant detection
* Simplify regex constant detection in `language_js`
* Add more possessive quantifiers in `language_js` regex constant detection
This avoids more catastrophic backtracking cases.
* Allow `.` after regex constant in `language_js`
2023-11-30 11:39:48 +08:00
Guldoman
5c5c77219b
Fix dirmonitor sorting issues ( #1599 )
...
* Use `PATHSEP` in path-related functions
* Don't stop on digits when getting the common part in `system.path_compare`
* Avoid sorting multiple times in `dirwatch.get_directory_files`
This also fixes the timeout detection in `recurse_pred`.
2023-11-30 09:20:34 +08:00
Guldoman
fb7ed49a44
Avoid considering single spaces in detectindent ( #1595 )
2023-11-29 07:41:13 +08:00
Guldoman
4005a46144
Save in the workspace unsaved named files and crlf status ( #1597 )
...
* Save in the `workspace` unsaved named files
* Save in the `workspace` the `crlf` status and restore it for "new" files
2023-10-18 13:14:28 +08:00
Guldoman
784b911d41
Make linewrapping consider the expanded Scrollbar size
...
This avoids reflowing the text when hovering the scrollbar.
2023-09-13 08:05:35 +08:00
Robert Hildebrandt
a9934c08d9
Fixed C++14 digit separators ( #1593 )
2023-09-13 08:04:05 +08:00
Guldoman
3febcf454c
Mark linewrapping open_files table as weak
...
We weren't correctly garbage-collecting `Doc`s, so we had `Highlighter`s
stay alive over their due time.
2023-08-19 13:27:28 +08:00
takase1121
2a9b367e13
Move lineguide below blinking cursor, fixes #1488 ( #1511 )
...
* Move lineguide below blinking cursor, fixes #1488
* Added config_spec custom color
2023-08-19 13:26:01 +08:00
Guldoman
bd36b3f615
Restore horizontal scroll position after scale change ( #494 )
...
* Restore horizontal scroll position after scale change
* Consider `View` horizontal size when restoring horizontal scroll
This is needed because `View:get_h_scrollable_size` includes the
horizontal size, while `View.scroll.x` doesn't.
2023-08-19 12:45:16 +08:00
Adam Harrison
793af14dca
Fixing linewrapping bug to do with wordwrapping.
2023-08-19 12:45:15 +08:00
Adam
6deca53303
Disable trimwhitespace and drawwhitespace via their configs ( #1446 )
...
Instead of completely disabling them, we now use their internal toggle.
Also moved `drawwhitespace` commands inside the plugin.
---
* Fixed bug where commands would show even when plugin was disbled. Also removed antiquated way of disabling.
* Fixed typos.
* Also moved trimwhitespace out of config, if it already has a default enabled value of false.
* Changed documentation.
* Clarified comments.
2023-08-19 12:39:22 +08:00
Jefferson González
24491bc3fd
plugins scale: also rescale style.expanded_scrollbar_size ( #1380 )
2023-08-19 12:37:50 +08:00
Jefferson González
70ed171612
NagView: properly rescale on scale change ( #1379 )
...
* drop font option since style.font is always used
2023-08-19 12:37:49 +08:00
takase1121 and vqn
218ba3ebac
Context menu fixes and keyboard navigation ( #1338 )
...
* fix Doc contextmenu not registering commands if scale plugin is not found
* fix TreeView contextmenu commands not working if the mouse hovers DocView
* add keyboard navigation to TreeView contextmenu
* fix incorrect contextmenu predicate
Co-Authored-By: vqn <85911372+vqns@users.noreply.github.com >
2023-08-19 12:36:39 +08:00
Guldoman
f00f41b468
linewrapping: Disable horizontal scrolling when enabled (#1309 )
2023-08-19 12:28:20 +08:00
Guldoman
18e3542be0
Allow TreeView file operation commands when focused ( #1256 )
...
Impacts `treeview:{rename,new-file,new-folder,open-in-system}`.
Previously those were only available when the mouse was over the
`TreeView`.
They now use the same predicate as `treeview:delete`.
2022-12-26 13:41:14 -04:00
Guldoman
97bfe503a0
detectindent: Limit subsyntax depth (#1253 )
2022-12-20 22:28:29 -04:00
Jefferson González
902539b97a
trimwhitespace: expose functionality and extra features ( #1238 )
2022-12-20 18:13:56 -04:00
Guldoman
213dc7142e
toolbarview: Remove tooltip when hidden (#1251 )
2022-12-20 18:07:29 -04:00
Jefferson González
e152db2cce
plugins projectsearch: expose its functionality ( #1235 )
2022-12-14 11:53:20 -04:00
Guldoman
9d48441685
Add regex.find_offsets, regex.find, improve regex.match ( #1232 )
...
`regex.match` now behaves like `string.match`.
This required changes in the `tokenizer` and in the `detectindent`
plugin.
2022-12-11 22:25:42 -04:00
Techie Guy
68595e4c7c
autocomplete: wrap the autocomplete results around ( #1223 )
2022-12-06 06:21:14 -04:00
jgmdev
acebbfd88a
linewrapping: fix enabled always by mistake introduced with #1190
2022-11-07 13:59:13 -04:00
Quinten Kock
4a5851afe5
Make linewrapping plugin recompute breaks before scrolling ( #1190 )
2022-11-06 22:34:07 -04: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
jgmdev
261292c6aa
plugin drawwhitespace: allow newline substitution
2022-10-21 13:53:42 -04:00
jgmdev
5aaa5ab273
plugin lineguide: be strict on drawing to DocView
2022-10-15 21:56:34 -04:00
Guldoman
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
Adam
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
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
a0164d5902
language_md: don't require space at end on '_', '__', '___' ( #1129 )
2022-09-28 22:44:42 -04:00
Jefferson González
862ed9ad6a
plugin scale: added option to set default scale ( #1115 )
2022-09-15 00:54:44 -04:00
Adam
10d810b7d7
Added in simple directory search to treeview. ( #1110 )
2022-09-14 00:14:13 -04:00
jgmdev
bead59a898
autocomplete: properly replace current partial symbol
2022-09-12 22:41:50 -04:00