Mikayla
ac8bcd985f
Make platform input handler private
...
Automatically record the context on non-view input handlers
Simplify the async window context update() method
2024-01-20 06:56:19 -08:00
Joseph T. Lyons
7a265e9121
Add command palette action events
2024-01-15 20:22:47 -05:00
Marshall Bowers
dc67b7bcaa
Rename h_stack and v_stack to h_flex and v_flex, respectively ( #4053 )
...
This PR renames the `h_stack` and `v_stack` to `h_flex` and `v_flex`,
respectively.
We were previously using `h_stack` and `v_stack` to match SwiftUI, but
`h_flex` and `v_flex` fit better with the web/flexbox terminology that
the rest of GPUI uses.
Additionally, we were already calling the utility functions used to
implement `h_stack` and `v_stack` by the new names.
Release Notes:
- N/A
2024-01-15 11:34:06 -05:00
Max Brunsfeld and Marshall
7ae7f15800
Fix some bugs in keymap handling ( #3895 )
...
- `base_keymap` setting was not respected, now it is
- without a `~/.config/zed/keymap.json` file, we would fail to load the
*default* keymap
Co-authored-by: Marshall <marshall@zed.dev >
2024-01-04 16:04:17 -05:00
Max Brunsfeld and Mikayla
75f0670dd6
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:59:39 -08:00
Max Brunsfeld and Mikayla
ee573f7906
Remove 2 suffix for theme
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:41:01 -08:00
Max Brunsfeld and Mikayla
e2be87c688
Remove 2 suffix for ui, storybook, text
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:33:51 -08:00
Max Brunsfeld and Mikayla
2e155121f8
Remove 2 suffix for collab, rope, settings, menu
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:29:16 -08:00
Max Brunsfeld and Mikayla
8e704c8a47
Remove 2 suffix for lsp, language, fuzzy
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:58:02 -08:00
Max Brunsfeld and Mikayla
cdafb2d039
Remove 2 suffix for project
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:53:34 -08:00
Max Brunsfeld and Mikayla
e0b840925f
Remove 2 suffix for ai, zed_actions, install_ci, feature_flags
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:48:46 -08:00
Max Brunsfeld and Mikayla
a13a885d6b
Remove 2 suffix for workspace
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:08:51 -08:00
Max Brunsfeld and Mikayla
602d158320
Remove 2 suffix for editor
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 10:58:57 -08:00
Max Brunsfeld and Mikayla
c6cceb8efe
Remove 2 suffix for picker, feedback
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 10:55:34 -08:00
Max Brunsfeld and Mikayla
450537ac2a
Remove 2 suffix for vim, diagnostics, go_to_line, theme_selector, command_palette, file_finder
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 10:42:49 -08:00
Piotr Osiewicz and Antonio
ae842f7bf2
Start out Copilot2;
...
Add hidden_action_types to CommandPaletteFilter.
WindowContext.available_actions now returns global actions as well.
Co-authored-by: Antonio <antonio@zed.dev >
2023-12-05 14:57:20 +01:00
Conrad Irwin
7d67bc51fb
Fix get_most_public_ancestor
2023-10-17 09:41:34 -06:00
Conrad Irwin
61d349956e
Allow pasting ZED urls in the command palette in development
2023-10-16 20:03:44 -06:00
Piotr Osiewicz
44c05f7a86
ui: Mirror option key in keybindings ( #3065 )
...


Release Notes:
- Fixed option key's appearance in keybindings
2023-09-29 16:45:49 +02:00
Conrad Irwin
6e501de8e2
Code review changes
2023-09-20 21:29:45 -06:00
Conrad Irwin
12cbf801f3
Flesh out v1.0 of vim :
2023-09-20 20:44:41 -06:00
Conrad Irwin
ee0a229996
Add vim-specific interactions to command
...
This mostly adds the commonly requested set (:wq and friends) and
a few that I use frequently
:<line> to go to a line number
:vsp / :sp to create a split
:cn / :cp to go to diagnostics
2023-09-20 20:44:26 -06:00
Piotr Osiewicz
2bd2709053
Z 2620 - Sort command palette's entries by name and use count ( #2954 )
...
Release Notes:
- Improved command palette's command ordering; commands are sorted
lexicographically and by command's use count in the current session.
2023-09-11 17:50:09 +02:00
Nathan Sobo
79da4b18a4
Move more window methods off AsyncAppContext
2023-08-08 11:38:07 -06:00
Nathan Sobo
e293985af9
Work with window handles instead of ids in drag code
2023-08-08 11:14:02 -06:00
Nathan Sobo
c843749cb0
Store an AnyWindowHandle in WindowContext
2023-08-08 11:08:37 -06:00
Nathan Sobo
337db743e9
Remove TestAppContext::add_view
...
Instead, we now call this on window handles.
2023-08-07 22:46:48 -06:00
Nathan Sobo
d1e01ba625
WIP
2023-08-06 12:45:31 -06:00
Nathan Sobo
40f28de681
Don't refcount window handles
2023-08-03 17:11:47 -06:00
Nathan Sobo
680c0185e4
Get tests compiling returning WindowHandle<V: View> from add_window
2023-08-02 14:05:03 -06:00
Alex Viscreanu and Mikayla Maki
ef7952c045
feat(workspace): allow alternative actions to open files and symbols in split
...
Co-authored-by: Mikayla Maki <mikayla@zed.dev >
2023-07-14 21:49:15 +02:00
Kirill Bulatov and Max Brunsfeld
b214a1af15
Refactor LSP restart logic
...
Instead of storing `initialization_options` in every LSP adapter as
before, store previous LSP settings in `Project` entirely.
This way, we can later have use multiple different project
configurations per single LSP with its associated adapter.
co-authored-by: Max Brunsfeld <max@zed.dev >
2023-07-11 21:56:55 +03:00
Piotr Osiewicz
fad54581d0
Fix up toggles
2023-06-20 16:05:23 -07:00
Piotr Osiewicz
406e160730
Split out Interactive<T> into Toggle<T> and Interactive<T>
2023-06-20 16:05:20 -07:00
Max Brunsfeld
c261a01c7f
Define theme/ui text style settings in theme crate
2023-05-17 14:44:59 -07:00
Max Brunsfeld
56f2ff64ed
Define language settings in the language crate
2023-05-16 17:29:53 -07:00
Antonio Scandurra
8c31093cc3
Ensure querying keystrokes or actions is safe
...
This is achieved by moving `available_actions` into `AsyncAppContext` (where
we know no view/window is on the stack) and `keystrokes_for_action` into `LayoutContext`
where we'll fetch the previous frame's ancestors and notify the current view if those
change after we perform a layout.
2023-05-04 09:53:31 +02:00
Antonio Scandurra
862cc2d132
Compute view ancestry at layout time
2023-05-03 16:36:14 +02:00
Antonio Scandurra
3e757a5377
Run until parked now that the command palette spawns to dispatch action
2023-05-01 16:58:07 +02:00
Antonio Scandurra
48373ac54a
Move dispatch_action_any_action_at to AsyncAppContext
2023-05-01 16:40:57 +02:00
Max Brunsfeld
d1f33d7052
🎨 Specify more dependencies at the workspace level
2023-04-24 17:41:55 -07:00
Nathan Sobo
4fa5c54c0e
Fix missing actions in the command palette
...
Previously, the workspace view was on the stack when we were computing the
available actions, which excluded it. This is a stopgap. We should find a
better solution ASAP.
2023-04-21 15:59:29 -06:00
Nathan Sobo and Max Brunsfeld
52d4cc5349
Refine naming of element-related types and traits
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 13:06:37 -06:00
2bd56ab6f0
Rename Drawable::boxed to into_element and make containers generic
...
Multi-element are now generic over any drawable child, which can be converted
into an element.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 12:43:19 -06:00
Antonio Scandurra
1167dcc8b9
Finish converting all the pickers to the new API
2023-04-20 15:26:05 +02:00
Nathan Sobo
ae5aa20a24
WIP: Make PickerDelegate a fully owned object instead of a view
...
This avoids issues with the parent view being on the stack when we want to
interact with the delegate from the picker. Still have several picker usages
to convert.
2023-04-19 22:05:29 -06:00
Antonio Scandurra
9254219f16
Fix warnings/errors now that AsyncAppContext::update returns Result
2023-04-18 14:58:57 +02:00
Antonio Scandurra
1f47ff85de
Move more window-specific methods from AppContext to WindowContext
2023-04-14 10:29:35 +02:00
Nathan Sobo
f5a86aecdc
WIP
2023-04-12 12:13:35 -06:00
Antonio Scandurra
5f04261450
WIP
2023-04-12 15:55:43 +02:00