Max Brunsfeld and Marshall
ea603401e2
Get actions + focus working on picker, now that it's a view
...
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-07 13:48:32 -08:00
Max Brunsfeld
36d9633f6f
Merge branch 'main' into picker
2023-11-07 13:37:49 -08:00
b9d051eae7
Start work on adding a filter editor to the picker
...
Implement picker as a view instead of as a component
Co-authored-by: Mikayla <mikayla@zed.dev >
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-07 13:37:10 -08:00
Conrad Irwin
9cdfce4956
Make it possible to render a single line editor ( #3259 )
...
[[PR Description]]
Release Notes:
- (Added|Fixed|Improved) ...
([#<public_issue_number_if_exists>](https://github.com/zed-industries/community/issues/ <public_issue_number_if_exists>)).
2023-11-07 14:26:10 -07:00
Conrad Irwin
5c450843a5
Add text and focus to editor
2023-11-07 14:19:15 -07:00
Conrad Irwin
a21c49c015
Make it possible to render a single line editor
2023-11-07 14:05:23 -07:00
Max Brunsfeld and Mikayla
80e6427eec
🎨
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 13:03:36 -08:00
Max Brunsfeld
10c94cc8b7
Remove unused import
2023-11-07 11:47:49 -08:00
Mikayla Maki
a3bd04fed2
Merge branch 'main' into picker
2023-11-07 11:44:02 -08:00
Mikayla Maki
c7f5888348
editor singleline ( #3257 )
...
- Implement Editor::single_line
- Fix confusing error message
- Fix loading keyfiles
- Wire up GoToLine modal
2023-11-07 11:41:33 -08:00
Max Brunsfeld
d690fb038d
Merge branch 'main' into picker
2023-11-07 11:27:14 -08:00
Nate Butler
b692fb1464
Start documenting ThemeColors ( #3258 )
...
[[PR Description]]
- Adds doc comments for most fields on ThemeColors
- Scaffolds out some upcoming additional fields (Will add in a later PR)
- Renames a few fields:
- `element_placeholder` -> `element_placeholder_text`
- `element_drop_target` -> `drop_target_background`
- Removes the redundant `element_placeholder_text` (This should be set
using `text_placeholder`
Release Notes:
- N/A
2023-11-07 14:14:56 -05:00
Conrad Irwin
1e6a0f1c7b
Wire up GoToLine modal
2023-11-07 12:12:05 -07:00
Conrad Irwin
0233864e92
Fix loading keyfiles
2023-11-07 12:04:37 -07:00
Conrad Irwin
b804b25c21
Fix confusing error message
2023-11-07 12:04:21 -07:00
Nate Butler
df84ba4222
Continue documenting theme colors
2023-11-07 14:04:09 -05:00
Max Brunsfeld and Mikayla
6928ad1335
Rename List -> UniformList
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 11:00:53 -08:00
Max Brunsfeld and Mikayla
2412873719
Remove commented-out code in picker2
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 10:53:59 -08:00
Max Brunsfeld and Mikayla
742180a3a8
Implement list scroll tracking
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 10:45:38 -08:00
Nate Butler
eb5fe3a3b9
Merge branch 'main' into document-theme
2023-11-07 13:36:08 -05:00
Nate Butler
91f356a2f1
Begin documenting theme colors
2023-11-07 13:36:01 -05:00
Conrad Irwin
3a72f2122a
Implement Editor::single_line
2023-11-07 11:12:36 -07:00
Antonio Scandurra
4bf3a4e3d4
Implement movement in editor2 ( #3256 )
...
Release Notes:
- N/A
2023-11-07 19:12:09 +01:00
Conrad Irwin
c89d6eb292
modals2 ( #3247 )
...
New Modal implementation for gpui2
Release Notes:
N/A
2023-11-07 10:56:46 -07:00
Antonio Scandurra
aa17adaac9
Merge remote-tracking branch 'origin/main' into editor-movement
2023-11-07 18:50:43 +01:00
Antonio Scandurra
d7e86eb1c1
Merge remote-tracking branch 'origin/main' into editor-movement
2023-11-07 18:48:08 +01:00
Max Brunsfeld and Mikayla
1d34b7b9fe
Implement picker actions
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 09:46:41 -08:00
Marshall Bowers
25876161f8
theme_importer: Format generated themes ( #3255 )
...
This PR makes the `theme_importer` format the themes that it generates
automatically.
Release Notes:
- N/A
2023-11-07 12:45:09 -05:00
Max Brunsfeld
69eb49a2ed
Merge branch 'main' into picker
2023-11-07 09:34:57 -08:00
Antonio Scandurra
2697862a02
Merge remote-tracking branch 'origin/main' into editor-movement
2023-11-07 17:54:46 +01:00
Antonio Scandurra
82a018996b
WIP
2023-11-07 17:54:14 +01:00
Antonio Scandurra
64b899c68c
Implement scrolling for editor2 ( #3251 )
...
Release Notes:
- N/A
2023-11-07 17:53:57 +01:00
Julia
5336c5decf
Re-introduce a macro for defining actions for ease of use ( #3253 )
...
Release Notes:
- N/A
2023-11-07 11:51:00 -05:00
Marshall Bowers
0d95410634
Rework third-party themes ( #3254 )
...
This PR reworks the way we define our third-party themes to make them
work as overlays on top of a base theme.
We introduce the concept of a `UserThemeFamily` that contains
`UserTheme`s. Rather than being an entire theme definition on their own,
a `UserTheme` just contains optional overrides for the values in a
`Theme`.
When resolving a `UserTheme`, we apply it on top of the base theme. Any
values not overridden in the `UserTheme` will fall back to the `Theme`
defaults.
Right now we are just using `UserTheme` to model third-party themes that
we distribute with the Zed binary. However, this same structure can also
be used to import arbitrary user themes (such as from a theme registry,
or even a theme blob from the settings file).
Release Notes:
- N/A
2023-11-07 11:40:07 -05:00
643146d768
Re-introduce a macro for defining actions for ease of use
...
Co-Authored-By: Piotr Osiewicz <piotr@zed.dev >
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-11-07 11:30:58 -05:00
a2a28af052
Add Modals
...
P.S. this is all completely different now
Co-Authored-By: Marshall <marshall@zed.dev >
Co-Authored-By: Julia <julia@zed.dev >
2023-11-07 09:18:34 -07:00
Piotr Osiewicz
9582a6f317
chore: Run multitarget build in script/bundle ( #3241 )
...
Ignore this PR for now.
This has a chance to speed up a build in case where e.g. we're
single-threaded in aarch64 build; at that point the x86_64 codegen can
take place. Also, MIR can probably be shared between the two
architectures, further reducing build time.
Release Notes:
- N/A
2023-11-07 17:00:36 +01:00
Conrad Irwin
2e43015664
gpui event test ( #3249 )
...
- Flesh out gpui2 test support
- Smoke test for event handling
2023-11-07 08:43:15 -07:00
Marshall Bowers
74853ea55f
Rename ThemeVariant to Theme ( #3252 )
...
This PR renames the `ThemeVariant` type to `Theme`.
This better reflects its purpose, as well as matches the same name as we
had before, which should make porting crates slightly easier.
Release Notes:
- N/A
2023-11-07 10:41:36 -05:00
Conrad Irwin
6f74854525
Fix event ordering issues
2023-11-07 08:29:55 -07:00
b0650517ad
Clip text when scrolling horizontally
...
Co-Authored-By: Julia <julia@zed.dev >
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-07 15:50:18 +01:00
b9e98c112f
Re-enable scrolling for EditorElement
...
Co-Authored-By: Julia <julia@zed.dev >
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-07 15:48:08 +01:00
Antonio Scandurra
9cb8512603
Start on laying out and painting editor2 ( #3250 )
...

Release Notes:
- N/A
2023-11-07 15:14:26 +01:00
Marshall Bowers
7078c5fbb9
Regenerate all themes
2023-11-07 08:59:50 -05:00
Marshall Bowers
01eac50fc8
Add new ThemeColors values to the theme printer
2023-11-07 08:59:37 -05:00
Antonio Scandurra
9f2e6be1b3
Fix warning
2023-11-07 14:31:17 +01:00
Antonio Scandurra
268be71d8e
Add colors for document highlights
2023-11-07 13:15:08 +01:00
Antonio Scandurra
bdf6e8bcc7
Merge remote-tracking branch 'origin/main' into editor2-paint
2023-11-07 13:09:48 +01:00
Antonio Scandurra
6ae09634ce
Remove focused field and use FocusHandle instead in Editor
2023-11-07 12:46:31 +01:00
Antonio Scandurra
a866370dc1
Paint lines
2023-11-07 12:25:33 +01:00