Commit Graph
10798 Commits
Author SHA1 Message Date
Nate Butler bdbb7bcb3b Extend tooltip to take meta + kb 2023-11-14 12:59:53 -05:00
Antonio Scandurra c4a5f47bc3 Merge remote-tracking branch 'origin/main' into editor2-blocks 2023-11-14 17:16:58 +01:00
Antonio Scandurra ca5ef02d08 Add red background to blocks that need styling 2023-11-14 17:15:33 +01:00
Antonio ScandurraandJulia db02124a74 Return the line length when x is past the last glyph
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 17:06:18 +01:00
Antonio ScandurraandJulia 05a555e2ef Honor cmd-w to close active item
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 16:38:20 +01:00
Nate Butler 3ceadaa609 Allow a button to take a color (#3315)
[[PR Description]]
- Allows a button to take a color and resolve it into `IconColor` and
`LabelColor`
- Extend `IconColor` and `LabelColor` to allow them to take a
`Player(i)`
- `impl From<LabelColor> for IconColor`

Release Notes:

- N/A
2023-11-14 10:36:52 -05:00
Antonio ScandurraandJulia 1d15d76e5e Re-enable find all references
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 16:09:29 +01:00
Antonio ScandurraandJulia d4b9bd4ec8 Render block elements
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 16:03:06 +01:00
Antonio Scandurra 0d6d776a8b WIP 2023-11-14 14:48:59 +01:00
Joseph T. Lyons e90f157320 Add gpt-4-1106-preview model 2023-11-14 08:28:57 -05: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 96d7b68670 Add test tag 2023-11-13 16:51:59 -08:00
Nate Butler 9624355db1 Allow a button to take a color 2023-11-13 19:46:15 -05: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
Mikaylaandconrad a0ef21d91d WIP
co-authored-by: conrad <conrad.irwin@zed.dev>
2023-11-13 15:53:04 -08: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
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 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 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 ButlerandMarshall 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