Commit Graph
31406 Commits
Author SHA1 Message Date
Antonio Scandurra fb4749878d Emit Focus events from Pane only when it didn't have focus before 2023-12-11 14:02:08 +01:00
Antonio Scandurra 6e7a18c90a Show the correct outline when clicking on a breadcrumb 2023-12-11 14:01:16 +01:00
Piotr Osiewicz 78ca5a4528 Add major text 2023-12-11 13:56:02 +01:00
Piotr Osiewicz e84ed7b2bd Bind actions on the whole search bar, not just the query editor 2023-12-11 13:35:25 +01:00
Kirill Bulatov 7c6f45ff59 Always open new project search view workspace::NewSearch action (#3581) 2023-12-11 13:45:41 +02:00
Kirill Bulatov 119d06d093 Always open new project search view workspace::NewSearch action 2023-12-11 13:11:07 +02:00
Kirill Bulatov cea3a29d19 Port to gpui1 2023-12-11 12:28:22 +02:00
Kirill Bulatov 42acd6431f Finalize the command 2023-12-11 12:28:22 +02:00
Kirill Bulatov 50e2f5c886 Draft an expand macro recusively command 2023-12-11 12:28:22 +02:00
Antonio Scandurra 135c16c158 Listen for mouse events on scrollbar 2023-12-11 10:33:05 +01:00
Antonio Scandurra 5eec1221cb Merge remote-tracking branch 'origin/main' into scrollbars2 2023-12-11 09:51:43 +01:00
Conrad Irwin 44a660dc78 actions3 (#3578)
- Restore impl_actions! and remove derive(Action)

Originally in gpui2 we inferred the action's namespace from the module
it was
defined in. This worked most of the time (ignoring the "remove_the_2"
hack),
but caused unintended (and mostly invisible) behavior in crates with
multiple
modules.

#3577 restored the namespace parameter to actions!, and this PR
reintroduces
`impl_actions!` to do the same for non-unit structs.

I considered trying to keep the struct-attribute API work, because it
does feel
more stylistically appropriate for rust, but two problems lead to it
feeling less good than `impl_actions!` in practice:
1. You have to repeat the namespace for each struct (and usually you're
defining them all in the same namespace)
2. You can't pass an argument to a derive macro inline, you need to use
an attribute instead.


Release Notes:

- N/A
2023-12-10 19:59:53 -07:00
Conrad Irwin 999db9f9b6 Correct docs re:Debug 2023-12-10 19:52:17 -07:00
Conrad Irwin aed17f4763 Restore impl_actions! and remove derive(Action) 2023-12-10 19:33:38 -07:00
Joseph T. Lyons 3affeca0f4 Add code for submission and error states for feedback modal (#3572)
Release Notes:

- N/A
2023-12-10 20:49:14 -05:00
Conrad Irwin 9761adb159 Restore namespace parameter to actions! (#3577)
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.

Although automatically deriving the namespace worked in many situations,
it was
unclear what to do with nested modules. Vim wanted all actions to be
registered
under vim, while collab_ui wanted one namespace per action.

It seems better to make the implicit explicit, and give the flexibility
to hide
implementation details from the end-users.

Release Notes:

- N/A
2023-12-09 15:27:17 -07:00
Conrad Irwin 9befa3f9ca Restore namespace parameter to actions!
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
2023-12-09 15:18:31 -07:00
Max Brunsfeld b72f66fae8 Paint code-action/fold buttons above the gutter 2023-12-09 11:41:40 -08:00
Max Brunsfeld e845cc799d Fix crash due to mutating command palette's candidates on confirmation 2023-12-09 11:08:33 -08:00
Piotr Osiewicz fe6744a1b9 Add a bunch of tooltips 2023-12-09 12:24:55 +01:00
Piotr Osiewicz 62f7262109 Add basic landing page 2023-12-09 12:00:44 +01:00
Joseph T. Lyons bb6b3de164 Show negative numbers after limit is hit 2023-12-09 00:35:19 -05:00
Mikayla 971db0d6fc Fix drag events 2023-12-08 17:02:25 -08:00
Conrad Irwin 9f467fba9f More code written, similar lack of workingness so far 2023-12-08 17:45:17 -07:00
Max Brunsfeld 2ffdd8b39d Enable tests for MentionsEditor 2023-12-08 16:42:36 -08:00
Max Brunsfeld 205cf20b1c Initialize toggle chat panel action 2023-12-08 16:42:22 -08:00
Mikayla 70c64c8a3f Add back semi-funcitonal pane resizing code 2023-12-08 16:29:42 -08:00
Joseph T. Lyons 99bebd8409 Add code for submission and error states 2023-12-08 19:16:03 -05:00
Max Brunsfeld e103d26a58 Restructure chat message rendering to allow text to wrap 2023-12-08 15:44:27 -08:00
Max Brunsfeld b6727b662f Start work on rendering formatted chat messages 2023-12-08 15:44:27 -08:00
Marshall Bowers 50ff052569 Make clicking the breadcrumb toggle the symbol outline (#3571)
This PR wires up clicks on the breadcrumb to toggle the symbol outline.

Note that the behavior of the symbol outline is a little wonky at the
moment, due to the issues with pane focus.

Release Notes:

- N/A
2023-12-08 18:22:53 -05:00
Marshall Bowers baec701ba1 Adjust which status colors we import from the VS Code theme (#3570)
This PR adjusts the status colors we import from the VS Code theme to be
the right ones.

Instead of looking at the Git status colors, we use the
`editorGutter.addedBackground`, `editorGutter.modifiedBackground`, and
`editorGutter.deletedBackground` colors for added, modified, and deleted
status colors, respectively.

Release Notes:

- N/A
2023-12-08 17:56:25 -05:00
Marshall Bowers a8c4edf312 Use the diff status colors defined in the theme (#3569)
This PR updates the diff status colors to use the ones defined in the
theme instead of placeholder colors.

Release Notes:

- N/A
2023-12-08 17:41:11 -05:00
Joseph T. Lyons e6e02ab20f Fix bug where feedback dismissal prompt is shown twice 2023-12-08 17:21:14 -05:00
Marshall Bowers 081e21add1 Weight scope matches to improve results (#3567)
This PR adds a simple weighting system for the matching of scopes from
the VS Code theme.

This gives us more control over the matches we get out of the theme, and
subsequently improves the results.

Release Notes:

- N/A
2023-12-08 16:42:13 -05:00
Marshall Bowers ae0fa8f10d Weight scope matches to improve results 2023-12-08 16:35:54 -05:00
Joseph T. Lyons 9a5e2b19b6 Allow modals to override their dismissal (#3565)
Release Notes:

- N/A
2023-12-08 16:28:16 -05:00
Max Brunsfeld ef7c716ceb Enable chat panel in zed 2 (#3564) 2023-12-08 13:25:59 -08:00
Joseph T. Lyons 1b0d6aee33 Move all dismissal logic into dismiss_event 2023-12-08 16:14:45 -05:00
Max Brunsfeld c051a4460e Enable chat panel test, remove comments 2023-12-08 13:08:47 -08:00
Marshall Bowers 65a777ec4e Fix function colors in Gruvbox themes 2023-12-08 16:04:58 -05:00
Max Brunsfeld 4dc3c7d5c7 Tweak styling of channel header and editor footer in chat panel 2023-12-08 13:04:25 -08:00
Max Brunsfeld 1f9cd6bdbe Dedup actions in WindowContext::available_actions 2023-12-08 13:02:14 -08:00
Julia 359ae1b838 zed2: Store constructed terminal tooltip 2023-12-08 15:57:22 -05:00
Joseph T. Lyons 9b5cf1a7fb Fix error 2023-12-08 15:34:42 -05:00
Max Brunsfeld 1c1aa271fc Make chat message list fill the available space 2023-12-08 12:31:07 -08:00
Max Brunsfeld a011413fe3 Get the chat panel wired up again 2023-12-08 12:31:07 -08:00
Nathan Sobo 8f384e72c6 Get more of chat panel compiling, but lots of todos 2023-12-08 12:31:07 -08:00
Max BrunsfeldandNathan 0991a4296b Start work on chat panel and non-uniform list
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-08 12:30:49 -08:00
Joseph T. LyonsandMikayla Maki e418d69bc8 Allow modals to override their dismissal
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-12-08 15:29:44 -05:00