Antonio Scandurra
eafc63873f
Fix some project panel tests
2023-05-22 16:18:53 +02:00
Antonio Scandurra
3b6f02b247
Persist project and terminal panel sizes
2023-05-22 15:55:44 +02:00
Antonio Scandurra
8f56c80d68
Merge branch 'main' into panels
2023-05-22 14:10:17 +02:00
Max Brunsfeld
f4756efd54
🎨 Make worktree repositories more consistent
2023-05-19 15:04:37 -07:00
Kirill Bulatov
b367041585
When the file is deleted via project panel, close it in editors ( #2490 )
...
Deals with https://github.com/zed-industries/community/issues/179 by
sending a message about it, to asynchronously apply on all workspaces.
Release Notes:
* Fixes a bug when files, deleted in the project panel were left open in
the editor
2023-05-19 21:51:37 +03:00
Max Brunsfeld and Mikayla
f7c6bc72c9
Optimize retrieving repos for entries when rendering the project panel
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-05-19 11:29:02 -07:00
Kirill Bulatov
136b128d0f
When the file is deleted via project panel, close it in editors
2023-05-19 18:52:30 +03:00
Antonio Scandurra
90ce4d6ffa
Add new terminal when the terminal panel is activated, and not on focus
2023-05-19 16:07:47 +02:00
Max Brunsfeld
c261a01c7f
Define theme/ui text style settings in theme crate
2023-05-17 14:44:59 -07:00
Max Brunsfeld
ca02b558c8
Merge branch 'main' into setting-store
2023-05-17 09:55:24 -07:00
Antonio Scandurra and Mikayla Maki
0d9c78ddc2
Store whether a panel is zoomed in the panel itself
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-05-17 17:51:11 +02:00
Antonio Scandurra
4995d3c947
Show a panel/pane as zoomed only if it's the active item in workspace
2023-05-17 15:06:58 +02:00
Max Brunsfeld
09f37a2fe9
Define workspace settings in workspace crate
2023-05-16 20:25:18 -07:00
Max Brunsfeld
a802da9dae
Define editor settings in editor crate
2023-05-16 17:30:29 -07:00
Max Brunsfeld
56f2ff64ed
Define language settings in the language crate
2023-05-16 17:29:53 -07:00
Antonio Scandurra and Antonio Scandurra
be876f0825
Don't rely on action propagation for zooming in and out
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-05-16 10:34:50 -06:00
Antonio Scandurra
7198624597
Introduce Panel::can_zoom
2023-05-15 17:10:30 +02:00
Mikayla Maki
8e263a30c6
Refactor out git status into FileName component
...
Integrate file name component into the editor's tab content
2023-05-13 02:26:45 -07:00
Nathan Sobo
06b77a40d7
Don't close panel on event unless active; add tests
2023-05-12 15:44:09 -06:00
Nathan Sobo
b646f5d456
Preserve panel size when re-docking between left and right
2023-05-12 15:15:11 -06:00
Nathan Sobo
f2984b5cc2
Make panels independently resizable
2023-05-12 09:44:14 -06:00
Mikayla Maki
4e408e7758
Added status trickle up
2023-05-11 12:01:42 -07:00
Mikayla Maki
c2c9c36e95
Fix bug in status detection when removing a directory
2023-05-10 17:37:36 -07:00
Mikayla Maki
e920ede88c
Revert "Convert git status calculation to use Entry IDs as the key instead of repo relative paths"
...
This reverts commit 728c6892c924ebeabb086e308ec4b5f56c4fd72a.
2023-05-10 17:37:36 -07:00
Petros Amoiridis
57d45f60c5
Use theme.editor.diff for the colors
2023-05-10 17:37:36 -07:00
Mikayla Maki
ea28af0c6a
Convert git status calculation to use Entry IDs as the key instead of repo relative paths
2023-05-10 17:37:36 -07:00
Mikayla Maki
36d98d60f3
Format
2023-05-10 17:37:36 -07:00
Mikayla Maki
50e99845ca
Added git status to the project panel, added worktree test
2023-05-10 17:37:36 -07:00
Antonio Scandurra
c516f3676a
Create more specific dock position settings associated with each panel
2023-05-10 16:52:10 +02:00
Antonio Scandurra
bf41cfaa4d
Add context menu to change panel position
2023-05-10 14:05:48 +02:00
Antonio Scandurra
782a1e7c69
Fix panic when not specifying a project_panel setting
2023-05-10 10:43:42 +02:00
Nathan Sobo and Joseph Lyons
6202a4e704
Allow terminal to be docked left, bottom, or right
...
Co-Authored-By: Joseph Lyons <joseph@zed.dev >
2023-05-09 17:36:49 -06:00
Nathan Sobo and Joseph Lyons
5b8332da51
Allow the project panel to be docked right or left
...
Co-Authored-By: Joseph Lyons <joseph@zed.dev >
2023-05-09 17:26:54 -06:00
Nathan Sobo
94300d8487
WIP
2023-05-09 13:28:34 -06:00
Antonio Scandurra and Nathan Sobo
754c24ad4f
WIP: Allow panels to be moved
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-05-09 18:57:25 +02:00
Antonio Scandurra
06af5576aa
Show terminal count in panel button
2023-05-09 12:21:35 +02:00
Nathan Sobo
b9d92fce56
Rename DockItem to Panel
2023-05-09 10:18:11 +02:00
Nathan Sobo
a978561ff7
Rename Sidebar to Dock
2023-05-09 10:18:10 +02:00
Antonio Scandurra
3c580153ed
Merge branch 'main' into implicit-ancestry
2023-05-04 14:39:58 +02:00
Antonio Scandurra
1b1f2a3e5e
Avoid re-allocating KeymapContext after every view notification
2023-05-04 12:04:30 +02:00
Antonio Scandurra
ac7e73d494
Remove the ability to retrieve the view's parent
2023-05-03 16:52:55 +02:00
Antonio Scandurra
2742f1cb76
Remove ViewContext::dispatch_action
2023-05-01 16:27:36 +02:00
Antonio Scandurra
236937fa3e
Remove internal actions from project_panel
2023-04-28 17:21:10 +02:00
Antonio Scandurra
82a7fd3515
Remove RemoveWorktreeFromProject internal action
2023-04-28 12:11:59 +02:00
Antonio Scandurra
d0a1109f62
Allow passing a handler function to context menu items
2023-04-27 11:32:12 +02:00
Max Brunsfeld
d1f33d7052
🎨 Specify more dependencies at the workspace level
2023-04-24 17:41:55 -07:00
Max Brunsfeld
a17f009b00
Use a workspace dependency for the futures crate
2023-04-24 09:43:31 -07: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 and Nathan Sobo
a640adb743
Avoid double borrow of view in ProjectPanel drag and drop
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-04-21 16:23:47 +02:00