Commit Graph
39175 Commits
Author SHA1 Message Date
Max Brunsfeld 054ad5aeb6 Create proof-of-concept SettingStore struct 2023-05-10 12:59:22 -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 879447e0a6 Focus the root view if the previously-focused view isn't rendered 2023-05-10 15:40:46 +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
Antonio Scandurra 782a1e7c69 Fix panic when not specifying a project_panel setting 2023-05-10 10:43:42 +02:00
Kirill Bulatov 9f9526be5d Highlight include/exclude inputs when errors happen there 2023-05-10 11:11:31 +03:00
Kirill Bulatov 5291e79ecb Test the search inclusions/exclusions 2023-05-10 11:11:31 +03:00
Kirill Bulatov bbe2bd57c0 Use placeholder in include/exclude editors 2023-05-10 11:11:31 +03:00
Kirill BulatovandJulia 75ff55bad5 Rework tab and escape key handling in search panel
Fixes
https://linear.app/zed-industries/issue/Z-1238/focus-the-results-multibuffer-in-project-search-on-esc

and adds a tab shortcut for project search inputs

co-authored-by: Julia <julia@zed.dev>
2023-05-10 11:11:31 +03:00
Kirill Bulatov 2476868858 Fix arrow layout 2023-05-10 11:11:31 +03:00
Kirill Bulatov 95f94548db Trim glob input 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
Kirill Bulatov 44df6b5afd Draft search include/exclude logic 2023-05-10 11:11:31 +03:00
Kirill Bulatov c95f4a81e2 Add initial include/exclude project search UI 2023-05-10 11:11:31 +03:00
Antonio Scandurra ecfb2fa600 Merge pull request #2458 from zed-industries/fix-context-menu-click
Always dismiss context menu on click
2023-05-10 09:24:23 +02:00
Antonio Scandurra b18c01425f Always dismiss context menu on click 2023-05-10 09:18:13 +02:00
Nathan Sobo 9b690754ce Remove unused terminal_button module 2023-05-09 20:24:37 -06: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 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 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 e9ca666d46 Replace todo with unimplemented to reduce distractions 2023-05-09 16:41:10 -06:00
Nathan Sobo af92fc3462 Merge branch 'main' into panels 2023-05-09 16:35:04 -06:00
Nathan Sobo d3f1ecf67b Replace todo with unimplemented to reduce distractions 2023-05-09 16:31:53 -06:00
Mikayla Maki 2ab7020207 Merge pull request #2456 from zed-industries/fix-dock-pane-focus
Make dock not eagerly steal focus from sub items
2023-05-09 15:59:06 -04: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 96807e1019 Ensure ctrl-` works in the terminal panel 2023-05-09 17:38:18 +02:00
Antonio Scandurra ed597975e0 WIP 2023-05-09 17:14:33 +02:00
Antonio ScandurraandJulia Risley 76ac20fcab Randomly mutate worktree in addition to mutating the file-system
This ensures that we test the code path that refreshes entries.

Co-Authored-By: Julia Risley <julia@zed.dev>
2023-05-09 17:01:11 +02:00
Antonio ScandurraandJulia Risley a8877200a4 Deliver file-system change events in batches in randomized worktree test
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-05-09 16:55:03 +02:00
JuliaandAntonio Scandurra 7d24931b89 Only update changed local worktree buffers
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-05-09 15:13:12 +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