Kirill Bulatov
8ff05c6a72
Prepare for external file drop in pane
2024-01-07 01:17:49 +02:00
Max Brunsfeld and Marshall
5e3d4885bf
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
f5ba22659b
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:59:39 -08:00
Mikayla
ee4957dd47
Implement most core actions
2023-11-14 00:06:33 -08:00
Marshall Bowers
ad8187b151
Merge branch 'main' into marshall/gpui2-playground
2023-10-06 13:33:04 -04:00
Marshall Bowers
d14dc35efe
Merge branch 'gpui2' into marshall/gpui2-playground
2023-10-02 18:36:22 -04:00
Mikayla
1d5b665f13
Implement channel changes for messages
2023-10-01 22:32:11 -07:00
Piotr Osiewicz
0598a8243d
chore: Hoist non-generic part out of add_action_internal. ( #2981 )
...
add_action_internal shows up often in downstream crates (as it should
be, since it's a generic function it's codegened in each crate that uses
it); it adds non-trivial amounts of LLVM IR to the build as a whole
which we can cut down a bit by doing the inner fn trick.
Release Notes:
- N/A
2023-09-18 11:55:44 +02:00
Nathan Sobo
dc2733998e
WIP
2023-09-12 12:43:08 -06:00
Nathan Sobo
e0fdc7d0aa
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
a24d94cfda
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
ebf8b32811
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
362b1a44be
Merge branch 'main' into storybook
2023-09-08 14:18:44 -06:00
Nathan Sobo
14fc386dc8
Checkpoint
2023-09-08 13:54:15 -06:00
Nathan Sobo
53a50b8df4
Move refreshing to window
2023-09-08 13:27:29 -06:00
Antonio Scandurra
ddc8a126da
Find keystrokes defined on a child but handled by a parent
...
This fixes a bug that was preventing keystrokes from being shown on tooltips
for the "Buffer Search" and "Inline Assist" buttons in the toolbar.
This commit makes the behavior of `keystrokes_for_action` more consistent with
the behavior of `available_actions`. It seems reasonable that, if a child view
defines a keystroke for an action and that action is handled on a parent, we
should show the child's keystroke.
2023-09-08 12:50:59 +02:00
Nathan Sobo
6d4dd0e7a4
Checkpoint
2023-09-06 15:22:35 -06:00
Nathan Sobo
9ec7569e09
Checkpoint
2023-09-05 12:16:21 -06:00
Nathan Sobo
3b5ee59273
Split playground into gpui2 and storybook
2023-08-30 16:12:14 -06:00
Nathan Sobo
48d3e2d9b9
Move views_to_notify_if_ancestors_change to Window
2023-08-29 21:58:44 -06:00
Nathan Sobo
2e7356a53e
Store new_parents on Window instead of layout context
2023-08-29 21:43:48 -06:00
Nathan Sobo
42cd257287
Remove text style stack from LayoutContext
2023-08-29 21:33:08 -06:00
Nathan Sobo
81957c49d5
Merge remote-tracking branch 'origin' into divs
2023-08-29 21:14:14 -06:00
Nathan Sobo and Mikayla Maki
9371754942
Provide themes to subtrees via context
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-28 16:07:26 -06:00
Nathan Sobo
147aa0f695
WIP
2023-08-25 21:41:21 -06:00
Mikayla and Max
4eff8ad186
Add channel notes view
...
co-authored-by: Max <max@zed.dev >
2023-08-23 18:37:00 -07:00
Mikayla
4d2f5a8e04
Fix cursor and hover styles changing when dragging the mouse
2023-08-23 18:08:33 -07:00
Nathan Sobo and Conrad Irwin
684db11afd
Use platform API to request mouse position
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-08-23 13:10:41 -06:00
Nathan Sobo and Conrad Irwin
5996b6b46b
Use RefinementCascade to compose pressability and hoverability
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-08-23 12:18:12 -06:00
Nathan Sobo
569d99a5a1
Add hover styling support
2023-08-23 09:08:05 -06:00
Nathan Sobo
d375f7992d
Merge branch 'main' into divs
2023-08-22 16:35:56 -06:00
Nathan Sobo and Antonio Scandurra
733df38f9b
Checkpoint
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-08-22 11:34:06 -06:00
Nathan Sobo
0747131bd4
Compiling checkpoint
2023-08-19 19:51:22 -06:00
Nathan Sobo
b910c85f7f
Still need to wire up MouseMove with the new regions
2023-08-18 02:23:06 -06:00
Nathan Sobo
3709eff34b
Compiling
2023-08-18 01:59:21 -06:00
Nathan Sobo
9b74dc196e
Introduce Refinement trait and derive macro
2023-08-18 01:03:46 -06:00
Mikayla
8630557ece
Add action button component for rendering the search options
2023-08-17 15:30:40 -07:00
Nathan Sobo
812d3f6af6
Get basic mouse_down and mouse_up working
2023-08-16 22:21:27 -06:00
Mikayla
2f16147055
Fix dock resizing
2023-08-16 19:47:54 -07:00
Nathan Sobo
187d78011c
WIP
2023-08-16 13:52:42 -06:00
Nathan Sobo and Antonio Scandurra
f1aafab61d
Get text rendering
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-08-16 12:50:35 -06:00
Mikayla
e5eed29c72
Add components example
...
Re-arrange generics on mouse event handler
Add TypeTag struct for dynamically tagged components
2023-08-15 03:06:43 -07:00
Nathan Sobo
d6eaa3c6b8
Ditch the hot reloading approach
2023-08-11 00:26:58 -06:00
Nathan Sobo
0bf607cd2d
WIP
2023-08-10 10:26:48 -06:00
Nathan Sobo
3b1e5e966a
What if we base themes on Rose Pine
2023-08-09 20:54:30 -06:00
Nathan Sobo
c95aecdd53
Merge branch 'main' into cells
2023-08-08 21:23:57 -06:00
Nathan Sobo
db96fb1307
Merge remote-tracking branch 'origin/main' into paint-context
2023-08-08 18:27:16 -06:00
Nathan Sobo
fc96676662
Use AppContext::update when updating windows so we handle effects
2023-08-08 17:20:46 -06:00
Nathan Sobo
8e49d1419a
Minimize window id usage
2023-08-08 16:38:46 -06:00
Nathan Sobo
afd89b256a
Store AnyWindowHandles instead of usizes
2023-08-08 16:06:53 -06:00