Commit Graph
2503 Commits
Author SHA1 Message Date
Max Brunsfeld 09f37a2fe9 Define workspace settings in workspace crate 2023-05-16 20:25:18 -07:00
Max Brunsfeld 56f2ff64ed Define language settings in the language crate 2023-05-16 17:29:53 -07:00
Kirill Bulatov 62c6f7bb7c Remove extra dbg! 2023-05-16 22:15:56 +03:00
Kirill Bulatov f2038312ea Finalize the CLI opening part 2023-05-16 21:07:48 +03:00
Kirill BulatovandMikayla 7c4da86cfa Return proper items on workspace restoration.
co-authored-by: Mikayla <mikayla@zed.dev>
2023-05-16 21:07:48 +03:00
Antonio ScandurraandAntonio 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 fafe7a193b Implement zooming for panes and docks 2023-05-16 11:49:48 +02:00
Antonio Scandurra 7198624597 Introduce Panel::can_zoom 2023-05-15 17:10:30 +02:00
Kirill BulatovandAntonio 36e4876e07 Remove redundant scopes and actions to fix the focus toggle on ESC
co-authored-by: Antonio <antonio@zed.dev>
2023-05-15 13:10:15 +03:00
Nathan Sobo 4d44ed41ce wip 2023-05-13 14:34:09 -06: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
Max Brunsfeld 876d8b3e09 Ensure the SettingsStore global is added in tests 2023-05-10 16:39:59 -07:00
Nathan SoboandJulia Risley ca30c55829 Test moving panels
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-05-10 10:41:03 -06:00
Mikayla Maki ef74b4ca07 Merge pull request #2460 from zed-industries/show-dock-on-activate
Fix bug with terminal button
2023-05-10 09:08:45 -07:00
Nathan Sobo 289d3df5bf Rename item to panel in various locations 2023-05-10 09:54:20 -06:00
Mikayla Maki e22271d773 Fix bug with terminal button 2023-05-10 08:15:20 -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 a38b160a8b Rely on root getting re-focused when panel isn't rendered
This achieves two things:

- When a panel like `TerminalPanel` closes its last tab, the focus
is returned to the root view (the `Workspace`)
- When a panel is moved from a dock to another, it will get rendered
in another spot but the focus will be kept on the panel

This also ensures the focus is not lost when a panel is moved from
a dock to another because that view
2023-05-10 15:43:44 +02:00
Antonio Scandurra f1363f8f70 Merge branch 'main' into panels 2023-05-10 15:23:37 +02:00
Antonio Scandurra bf41cfaa4d Add context menu to change panel position 2023-05-10 14:05:48 +02:00
Antonio Scandurra b830f3edf3 Maintain panel visibility when changing its position 2023-05-10 11:06:37 +02:00
Kirill Bulatov 5291e79ecb Test the search inclusions/exclusions 2023-05-10 11:11:31 +03:00
Kirill Bulatov 2476868858 Fix arrow layout 2023-05-10 11:11:31 +03:00
Kirill BulatovandMax 330ca21885 Extra rows approach draft
co-authored-by: Max <max@zed.dev>
2023-05-10 11:11:31 +03:00
Nathan Sobo 88b89352ef Render the bottom dock buttons before the right dock buttons 2023-05-09 17:41:24 -06:00
Nathan SoboandJoseph 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 af92fc3462 Merge branch 'main' into panels 2023-05-09 16:35:04 -06:00
Mikayla Maki fcfe78b086 Fix format 2023-05-09 12:54:53 -07:00
Nathan Sobo 94300d8487 WIP 2023-05-09 13:28:34 -06:00
Mikayla Maki 70dfc8448c Fix center items not being activated when deserialized 2023-05-09 12:27:07 -07:00
Mikayla Maki dd9ddcc71a Make dock not eagerly steal focus from sub items 2023-05-09 12:00:09 -07:00
Antonio ScandurraandNathan 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 ScandurraandNathan Sobo e789777d3c Remove unused code
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-05-09 18:06:59 +02:00
Antonio Scandurra ef7b2ab3b0 Focus new item if pane was focused when removing previous active item
Previously, we were relying on the item getting blurred and the workspace
receiving focus, which would in turn focus the active pane. This doesn't
play well with docks because they aren't part of the workspace panes.
2023-05-09 17:38:54 +02:00
Antonio Scandurra 8e2a5865f9 Allow customization of Pane tab bar buttons 2023-05-09 15:05:29 +02:00
Antonio Scandurra c6c23cee5c Fix bottom dock resizing 2023-05-09 14:46:15 +02:00
Antonio Scandurra c10bb5d90a Prevent splits in the terminal panel 2023-05-09 12:29:16 +02:00
Antonio Scandurra 06af5576aa Show terminal count in panel button 2023-05-09 12:21:35 +02:00
Antonio Scandurra 2ecfbb96b5 Don't pass &mut Workspace when closing items in a Pane
This allows closing items via actions even in the `TerminalPanel`
where the `Pane` is not directly owned by a `Workspace`.
2023-05-09 11:45:39 +02:00
Antonio Scandurra 172741ef5c Automatically close terminal dock when the last terminal was closed 2023-05-09 10:18:11 +02:00
Antonio Scandurra 23161c4444 Prevent dragging items that aren't terminals to the terminal panel 2023-05-09 10:18:11 +02:00
Antonio Scandurra 1b0b793304 WIP: Start on TerminalPanel 2023-05-09 10:18:11 +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
Nathan Sobo e7d9fdc4b5 Remove dock from workspace 2023-05-09 10:18:10 +02:00
Mikayla Maki 6c599f4b82 Refactor and fix format 2023-05-08 17:32:40 -07:00
Mikayla Maki 2de2e8a94c Add manual removal code to remove_panes 2023-05-08 17:25:28 -07:00
Mikayla Maki ed1f4f8d77 Fully remove panes and update internal data structures 2023-05-08 17:09:29 -07:00