Conrad Irwin
b33dc55f73
command 2 2 ( #3317 )
...
- Update command matches faster
- Fix action dispatching...
- Add Text::styled() and use it in command palette
- Fix SingleLine editor font size
- Fix elevation on go_to_line2
- Allow clicking on commands in the command palette
Release Notes:
- N/A
2023-11-13 23:12:03 -07:00
Conrad Irwin
0bbd5b0775
Allow clicking on commands in the command palette
2023-11-13 21:42:27 -07:00
Conrad Irwin
5d10015212
Fix elevation on go_to_line2
2023-11-13 21:42:04 -07:00
Conrad Irwin
223abf15d4
Fix SingleLine editor font size
2023-11-13 21:41:41 -07:00
Conrad Irwin
bb2477eb42
Add Text::styled() and use it in command palette
...
Prevents jumping while typing
2023-11-13 19:53:55 -07:00
Conrad Irwin
bc20c70907
Fix action dispatching...
2023-11-13 18:56:59 -07:00
Conrad Irwin
dba8da9a6b
Update command matches faster
2023-11-13 18:21:08 -07:00
Mikayla Maki
b2f6bb6e51
Improve actions macros ( #3292 )
...
- `actions!` now uses `#[action]` on each struct to reduce duplication.
- The `#[action]` macro now works on unit structs.
- Renamed `menu::unused` to `menu::init` and added more explanation in
comments.
Release Notes:
- N/A
2023-11-13 17:14:56 -08:00
Mikayla Maki
ad4cd610fc
WIP: Add some editor tests ( #3285 )
...
This is a continuation of
https://github.com/zed-industries/zed/pull/3232 , however as I started
working on this it seemed a bit premature.
There are a few GPUI changes to finish getting the editor green (mainly
clipboard and simulate_resize), as well as several editor methods to
port (several around changing selections), as well as several editor
methods that are now fully broken (tagged with 'todo(finish editor
tests)').
I am also comitting the partially ported integration tests, which where
close to compiling.
Release Notes:
- N/A
2023-11-13 16:57:41 -08:00
Mikayla
96d7b68670
Add test tag
2023-11-13 16:51:59 -08:00
Mikayla
238a291e61
Fix broken tests and comment out remaining tests
2023-11-13 16:46:06 -08:00
Mikayla
b83845913e
Merge branch 'main' into editor-tests
2023-11-13 15:53:22 -08:00
Mikayla and conrad
a0ef21d91d
WIP
...
co-authored-by: conrad <conrad.irwin@zed.dev >
2023-11-13 15:53:04 -08:00
Marshall Bowers
c8c2526880
Add One Dark ( #3314 )
...
- Adds `one-dark`, and sets it as default for now.
Release Notes:
- N/A
2023-11-13 18:50:02 -05:00
Marshall Bowers
bdeec3b434
Use "One Dark" as default theme
2023-11-13 18:44:17 -05:00
Marshall Bowers
db0bfd17d0
Combine related conditions
2023-11-13 18:22:04 -05:00
Marshall Bowers
8e2a7b803f
Merge branch 'main' into one-themes
2023-11-13 18:16:45 -05:00
Nate Butler
062e4fe6a0
Remove unused imports
2023-11-13 17:54:22 -05:00
Nate Butler
ea8dc40ccf
Reorganize theme2 crate ( #3312 )
...
[[PR Description]]
- Colocates defaults with their defs
- Organizes each style module into the `styles` subfolder
(`src/styles/players`, etc)
- Standardizes the use of `dark()` and `light()` throughout (ex:
`StatusColors::dark()`)
- Documents and extents StatusColors
Release Notes:
- N/A
2023-11-13 17:53:29 -05:00
Conrad Irwin
0993d23eb2
Add KeyBindings to CommandPalette ( #3313 )
...
Release Notes:
- N/A
2023-11-13 15:53:18 -07:00
Nate Butler
a11ce4954e
Start refining tab
2023-11-13 17:51:58 -05:00
Conrad Irwin
45966b2960
Add KeyBindings to CommandPalette
2023-11-13 15:40:49 -07:00
Nate Butler
98916f54d2
WIP
2023-11-13 17:38:44 -05:00
Nate Butler
70ff9b5fdd
Add one syntax theme
2023-11-13 17:09:55 -05:00
Conrad Irwin
4c0dcd0aad
WIP: Rework key dispatch to allow focus to be changed and actions to be dispatched on arbitrary focus handles ( #3303 )
...
Will explain more later.
Release Notes:
- N/A
2023-11-13 14:19:10 -07:00
Conrad Irwin
f553eae18f
Fix test
2023-11-13 13:53:08 -07:00
Nate Butler
f00f2ec9f8
Add one_dark theme
2023-11-13 15:48:05 -05:00
Nate Butler
8935763d3d
Allow arrays of colors to be passed in
2023-11-13 15:47:57 -05:00
Nate Butler
2e78d9494a
Add color converter util
2023-11-13 15:28:20 -05:00
Conrad Irwin
235edc51c8
Merge branch 'main' into dispatch-tree
2023-11-13 13:21:57 -07:00
Mikayla
c0b2ecf405
Get editor tests compiling
2023-11-13 12:10:14 -08:00
Marshall Bowers
079616a622
Choose appropriate player colors based on theme appearance
2023-11-13 15:07:13 -05:00
Conrad Irwin
4e819cdbb1
Fix on_action on focusable
...
We were accidentally dropping the key context
2023-11-13 12:48:36 -07:00
Nate Butler
2d0473c02f
Refine command palette ( #3311 )
...
[[PR Description]]
Update command palette styles
Release Notes:
- N/A
2023-11-13 13:58:51 -05:00
Nate Butler
b2c70dc203
Reorganize theme2 crate
2023-11-13 13:58:23 -05:00
Conrad Irwin
dd1bc1f2de
Better fix for multiple focuses in one frame
2023-11-13 11:32:05 -07:00
Nate Butler and Marshall Bowers
c13a82fabf
Resolve errors
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com >
2023-11-13 13:16:05 -05:00
3f549377da
Redine command palette style
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com >
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com >
2023-11-13 13:13:40 -05:00
Mikayla
8dcdc67bd1
Merge branch 'main' into editor-tests
2023-11-13 09:54:02 -08:00
Nate Butler
85bfa9caaa
Checkpoint Broken
2023-11-13 12:44:50 -05:00
Antonio Scandurra
0ecb9099e1
💄
2023-11-13 18:33:08 +01:00
Antonio Scandurra
16edc402e2
Fix panic when querying available actions
2023-11-13 18:29:18 +01:00
Nate Butler
5322689909
Checkpoint
2023-11-13 12:09:31 -05:00
Nate Butler
2e18121d4c
Update Status Colors
2023-11-13 11:56:42 -05:00
Kirill Bulatov
986ab3badd
Make inlay hint cache tests pass ( #3310 )
...
Release Notes:
- N/A
2023-11-13 18:42:16 +02:00
Kirill Bulatov and Conrad
7f6dbeef29
Make inlay hint cache tests pass
...
Co-Authored-By: Conrad <conrad.irwin@gmail.com >
2023-11-13 18:25:21 +02:00
Marshall Bowers
b8beeaee43
Add Sized bound to StyledExt trait ( #3309 )
...
This PR moves the `Sized` bound to the `StyledExt` trait so we don't
have to repeat it on each of the methods.
Release Notes:
- N/A
2023-11-13 11:22:49 -05:00
Marshall Bowers
940cb582b5
Remove unnecessary map
2023-11-13 11:10:08 -05:00
Marshall Bowers
44f67a2763
Move Sized bound to StyledExt trait
2023-11-13 11:10:00 -05:00
Joseph T. Lyons
6f3ef27d85
Update jetbrains keymap to match community repo
2023-11-13 10:41:56 -05:00