Граф коммитов

1188 Коммитов

Автор SHA1 Сообщение Дата
Benedikt Stebner 5b9a53bc6d
Merge pull request #467 from AvaloniaUI/add-acceptstab-option
Added AcceptsTab option to TextEditor
2024-11-08 09:35:48 +01:00
Daniel Peñalba 3ed30a6fdf Do not return early to allow TextView.InvalidateCursorIfPointerWithinTextView(); to be executed 2024-11-08 09:15:02 +01:00
Daniel Peñalba e7bdf234a9 Handle the tab key conditionally based on the new Options.AcceptsTab property 2024-11-08 08:55:30 +01:00
Daniel Peñalba d3603f7d38 Add devtools to the window 2024-11-08 08:54:42 +01:00
Daniel Peñalba 10ef7fdbe6
Merge pull request #463 from AvaloniaUI/fix-nre-custom-margin
Fixed NRE in custom margin
2024-11-07 18:05:15 +01:00
Daniel Peñalba c3c4fec2fd
Merge branch 'master' into fix-nre-custom-margin 2024-11-07 18:02:43 +01:00
Benedikt Stebner 21bee7ea2a
Merge pull request #466 from AvaloniaUI/email-regex-fix
Update regex to support emails with +1, +2 ...
2024-11-07 17:34:53 +01:00
Daniel Peñalba 28c8b9295e Update regex to support emails with +1, +2 ... 2024-11-07 15:57:38 +01:00
Daniel Peñalba 0e7dac4e43 Fixed NRE in custom margin 2024-11-07 10:12:37 +01:00
Benedikt Stebner f2e6452c25
Merge pull request #462 from AvaloniaUI/completion-improvements
Completion window improvements
2024-11-06 19:18:38 +01:00
Daniel Peñalba 8f8aa20b59 Hide the CompletionList instead of the popup, otherwise the border remains visible 2024-11-05 18:38:38 +01:00
Daniel Peñalba f8d59e5f0d Do not handle key up/down/pageup/pagedown/home/end when there are no completion items 2024-11-05 18:35:46 +01:00
Daniel Peñalba 1d261e699f Avoid dividing by zero 2024-11-05 18:17:58 +01:00
Daniel Peñalba af6799ce4b Fixed wrong conditions 2024-11-05 17:20:42 +01:00
Daniel Peñalba a4b9437b09 Remove duplicated lines 2024-11-05 17:15:55 +01:00
Daniel Peñalba b9966e0a87 Add more data to the completion window to test virtualization 2024-11-05 17:15:17 +01:00
Daniel Peñalba 19d7baf6ef Allow the completion window to grow
As the ListBox is virtualized, allow the CompletionWindow to grow when it's displaying bigger items. Constraint with a MaxWidth.

Additionally, constraint the MinWidth so once the popup gets wider, it never gets narrower again during that session.
2024-11-05 17:13:46 +01:00
Daniel Peñalba 3dbfd2303c Post SelectIndexCentered to the dispatcher
Otherwise, the layout for the ListBox is not ready, and calling _listBox.SelectIndex(bestIndex); causes virtualization issues (all the items in the list are realized, causing the UI to underperform)
2024-11-05 17:11:33 +01:00
Daniel Peñalba 478636e547 Do not use an observable collection for the ICompletionData list
The list is filtered and then assigned again to the _listBox.ItemsSource, so there is no need for ObservableCollection here.
2024-11-05 17:10:00 +01:00
Daniel Peñalba 33f05d39c4 Make the CompletionList selection circular 2024-11-05 17:02:43 +01:00
Jumar Macato 5652803bf5
Merge pull request #452 from MihaMarkic/bugfix/completition
Fixes #449 code completion throws an Exception upon Open
2024-09-08 01:02:35 +08:00
Miha Markič fbbc94b5b0 Fixes #449 code completition throws an Exception upon Open 2024-09-07 10:42:23 +02:00
Benedikt Stebner a9b6b20af3
Merge pull request #450 from AvaloniaUI/do-not-run-generatos-for-long-lines
Do not run the element generators for performance reasons
2024-08-28 18:54:00 +02:00
Daniel Peñalba db888cb5e5 for long lines, do not run the element generators for performance reasons 2024-08-28 11:24:01 +02:00
Daniel Peñalba f35f37a818
Merge pull request #446 from ablibrary-net/Mouse-ContextFlyout-Commands
Mouse ContextFlyout commands fix in AvaloniaEdit.Demo
2024-08-05 12:27:54 +02:00
Mop1398 9f8d31d771 comment removal 2024-08-05 13:52:56 +03:30
Mop1398 153e4a782d Mouse ContextFlyout (instead of ContextMenu) commands fix in AvaloniaEdit.Demo 2024-08-05 12:42:03 +03:30
Daniel Peñalba f9d50b82b8
Merge pull request #444 from AvaloniaUI/fix-442
Fix customMargin renders incorrectly when scrolling
2024-07-29 14:09:06 +02:00
Daniel Peñalba 251c1a84fb UI fixes to the CustomMargin 2024-07-29 10:38:02 +02:00
Daniel Peñalba 144483e17d
Merge pull request #443 from Blquinn/bump-textmate-sharp
Bump TextMateSharp version
2024-07-29 09:56:10 +02:00
Daniel Peñalba 89c9018d43
Merge branch 'master' into bump-textmate-sharp 2024-07-29 09:53:45 +02:00
Daniel Peñalba 5fa5f8b26c
Merge pull request #440 from workgroupengineering/fix/Issue_425
fix: System.NullReferenceException on Undo
2024-07-29 09:53:27 +02:00
Giuseppe Lippolis b434d28e4f fix: netstandard 2.0 issue, missing Clamp function 2024-07-29 09:25:06 +02:00
Giuseppe Lippolis c9cb93ce87 fix: formatting 2024-07-29 09:24:13 +02:00
workgroupengineering acb87a2097
fix: Address review
Co-authored-by: Daniel Peñalba <daniel.penalba@unity3d.com>
2024-07-27 19:07:23 +02:00
Benjamin Quinn 44dd24ce62 Bump TextMateSharp version 2024-07-26 10:04:22 -04:00
Max Katz 68334d76b7
Merge branch 'master' into fix/Issue_425 2024-07-22 10:34:45 -07:00
Max Katz 934f022406
Merge pull request #441 from workgroupengineering/fix/CS0266-CS0266
fix: Compile Issue
2024-07-22 10:34:38 -07:00
Giuseppe Lippolis a7023a5551 fix: Compile Issue
- CS0266 Cannot implicitly convert type 'int' to 'TextMateSharp.Themes.FontStyle'
- CS0019 Operator '!=' cannot be applied to operands of type 'FontStyle' and 'int'
- CS0019 Operator '&' cannot be applied to operands of type 'FontStyle' and 'int'
2024-07-22 11:59:58 +02:00
Giuseppe Lippolis 6d8b49a12a fix: System.NullReferenceException on Undo 2024-07-22 11:55:48 +02:00
Max Katz 072f761382
Merge pull request #432 from AvaloniaUI/update-textmatesharp-1.0.57
Update TextMateSharp to 1.0.57
2024-07-15 21:35:55 -07:00
Daniel Peñalba 318277d9f1
Merge pull request #433 from Natestah/master
Change Theme to a DropDown with flyout
2024-07-08 09:24:17 +02:00
Daniel Peñalba 352da94ca2 Refactor TextMate API to avoid breaking user styles
We should let users use this functionality, but it shouldn't be mandatory. Some customers likely have custom background or selection colors, so we'd be breaking their styles. Setting styles for the text editor should be the user's responsibility. The TextMate API should only notify about theme changes and provide theme colors.
2024-07-05 09:47:33 +02:00
Natestah 552f821ff9 More Avalonia.Textmate fix
-fallback to the Resource defined Selection brush rather than the first seen when the TextMate Defs don't have a selection background.
2024-07-04 09:15:42 -07:00
Natestah dbd8012d45 move some theme stuff up into Demo App from AvaloniaEdit.TextMate
Per review
2024-07-04 07:27:13 -07:00
Natestah c765a9262d Avalonia.TextMate - Review Updates
-Remove apply window updates bool.
-Remove duplicated CurrentHighlightRenderer Background/border settings, this is replaced with a new call for but doesn't answer the review note fully.
2024-07-04 06:54:02 -07:00
Natestah 600f2a2368 project reference -> nuget AND minor linenumber color change
-undoing the direct project reference.
-looks like I fixed up a defaulting the line number to the foreground color change
2024-06-28 10:37:27 -07:00
Natestah 8e6a9593bb Themes work for AvaloniaEdit.TextMate and AvaloniaEdit.Demo
-Added a applywindowProperties bool, so that people can opt out ( please review, this probably should default to off or just not exist here )
-Some  int->FontStyle reference that came up when I upgraded TextMateSharp
-In Demo AXAML's remove "Foreground" setters so that theme can do it's thing on the window.
2024-06-25 11:30:30 -07:00
Natestah 562d6aadf0 Change Theme to a DropDown
- Little bit of MVVP in here to enable bindings in the AXAML
- Drop down, allows me to look at specific themes, As I intend to leverage a little more of the info from the TextMateSharp JSON's

HELLO, I'm the author of BlitzSearch ( https://natestah.com ).  I'm making heavy use of AvaloniaEdit and there are things that I want to do with it.  This would be a small Ice Breaker change, would be awesome if the efforts could align.
2024-06-20 07:40:10 -07:00
Daniel Peñalba d666c44190 Update TextMateSharp to 1.0.57 2024-06-11 12:58:46 +02:00