Commit Graph
39175 Commits
Author SHA1 Message Date
Nathan Sobo 1e11a7d172 Remove unnecessary with_element_id calls 2023-11-14 01:38:13 -07:00
Nathan Sobo b7a62fdbc6 Remove div module 2023-11-14 01:25:10 -07:00
Nathan Sobo 20a4aa3a9a No compile errors or warnings 2023-11-14 01:23:09 -07:00
Nathan Sobo 14d5584205 Checkpoint 2023-11-14 01:15:48 -07:00
Mikayla c8fac17d60 Add missing global 2023-11-14 00:09:42 -08:00
Mikayla f966568f8c Implement most core actions 2023-11-14 00:06:33 -08:00
Nathan Sobo d2724a88e4 Checkpoint 2023-11-13 23:15:45 -07:00
Mikayla ef730c486c Sketch in core zed actions code 2023-11-13 22:13:07 -08:00
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
Nathan Sobo 2a1537855b Checkpoint 2023-11-13 23:03:14 -07:00
Nathan Sobo e70336c4e4 Checkpoint 2023-11-13 22:51:44 -07:00
Nathan Sobo e39081c034 Checkpoint 2023-11-13 22:42:19 -07:00
Nathan Sobo a84bddd24c Checkpoint 2023-11-13 22:28:33 -07:00
Nathan Sobo f59207d5b5 Checkpoint 2023-11-13 22:22:09 -07:00
Nathan Sobo 3637cfd097 Checkpoint 2023-11-13 22:02:05 -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
Nathan Sobo 08263e156a Checkpoint 2023-11-13 21:40:02 -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
Nathan Sobo 298e4b6e7e Checkpoint 2023-11-13 19:23:07 -07:00
Nathan Sobo 2abcae44a1 WIP 2023-11-13 18:58:42 -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
Nathan Sobo 566a79c9d7 WIP 2023-11-13 18:18:25 -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
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 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
Nathan Sobo 326a01b042 Checkpoint 2023-11-13 16:40:29 -07: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
Max Brunsfeld 10338d2dbe Merge branch 'main' into project-panel2 2023-11-13 13:39:13 -08: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