Antonio Scandurra
727960e990
Autoscroll to filename editor when creating or renaming entry
...
Also, autoscroll when a filename editor goes off-screen and the user
types or changes selections.
2022-08-15 15:14:42 +02:00
Antonio Scandurra
052ddcd4e0
Rename {project_panel,contacts_panel}::Toggle to ToggleFocus
2022-08-15 14:53:42 +02:00
K Simmons
f2328c2f23
minor rustfmt fix
2022-08-11 11:35:11 -07:00
ForLoveOfCats and Mikayla
fbea44bc5c
One big cleanup pass of clippy lints
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2022-08-10 16:51:01 -07:00
Nate Butler
46cbde862f
Fix reversed disclosure arrows in project panel
2022-07-22 11:57:53 -04:00
K Simmons
b31b867200
Address some issues where panes don't get focused properly, make the focused pane more obvious, and prevent splitting of the pane with no items
2022-07-20 18:52:32 -07:00
Nate Butler
958a9bd730
Merge branch 'main' into theme-improvements
2022-07-19 20:12:02 -04:00
Keith Simmons
70546d079d
Merge pull request #1388 from zed-industries/mouse-region-refactor
...
Mouse Region Refactor
2022-07-19 16:50:12 -07:00
Nate Butler
5a3eba5a0a
Add icon sets for sizes 8, 12 and 16, remove old icons
2022-07-19 17:11:15 -04:00
Max Brunsfeld
b428b52a6f
Dismiss project panel's rename editor when it loses focus
2022-07-18 16:10:09 -07:00
K Simmons
d264ba8e16
Rework presenter and MouseRegion to use Handler hashmap rather than individual fields
2022-07-17 23:19:32 -07:00
Max Brunsfeld
190658f40f
Select the last root when right-clicking below all project panel entries
2022-07-05 13:21:41 -07:00
Max Brunsfeld
d791858a07
Adjust pane, tab, panel management bindings to match VS Code
2022-06-29 15:33:46 -07:00
Antonio Scandurra
5589b9d345
Replace "Remove Folder from Project" label with "Remove from Project`
2022-06-20 10:53:26 +02:00
Antonio Scandurra
a3a8c03396
🎨
2022-06-14 14:03:25 +02:00
Antonio Scandurra
37452e8dcb
Attempt to open new entry only if it is a file
2022-06-14 14:01:49 +02:00
Antonio Scandurra
a408c59709
Open files in project panel using enter instead of right
2022-06-14 13:56:56 +02:00
Antonio Scandurra
ead4b30638
Open files when creating them in project panel
2022-06-14 13:49:47 +02:00
Antonio Scandurra
77224e023a
Require that PartialEq is implemented for Action
2022-06-06 09:18:44 +02:00
Antonio Scandurra
13f896a9ba
Don't show "add/remove folder to/from project" for remote projects
2022-05-31 08:17:52 +02:00
Antonio Scandurra
b51f73b096
Implement copy paste for ProjectPanel
2022-05-30 14:52:34 +02:00
Antonio Scandurra
c42b5565e7
Implement cut/paste for ProjectPanel
2022-05-30 12:23:21 +02:00
Antonio Scandurra
8b77d681bb
Dismiss context menu when one of its action is dispatched
2022-05-30 10:05:21 +02:00
Nathan Sobo
6fae5b0fdd
Restrict multiple hovered regions to a single stacking context
...
We won't hover regions from stacking contexts that are below the one being hovered.
2022-05-27 11:09:07 -06:00
Antonio Scandurra
d71e5455a0
Merge branch 'mouse-events' into project-panel-context-menu
2022-05-27 12:07:00 +02:00
Nathan Sobo and Max Brunsfeld
eb71ed400b
Switch MouseEventHandler to use MouseRegions
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-05-26 20:00:01 -06:00
Nathan Sobo and Max Brunsfeld
cd754f41ee
Take a RenderContext in ListState's build item callback
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-05-26 18:23:44 -06:00
Nathan Sobo and Max Brunsfeld
e50715745d
Pass a RenderContext to UniformList
...
In some cases, we need to render during layout. Previously, we were rendering with a LayoutContext in some cases, but this commit adds the ability to retrieve a render context with a given handle and we use that feature in UniformList.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-05-26 18:03:34 -06:00
Antonio Scandurra
8703730373
Implement CopyPath
2022-05-26 16:45:41 +02:00
Antonio Scandurra
355f8469f2
Introduce keyboard navigation in context menus
2022-05-26 16:36:30 +02:00
Antonio Scandurra
919d5fd68b
Start adding project panel context menu actions
2022-05-26 15:23:40 +02:00
Antonio Scandurra
c0e8ce0e25
WIP
2022-05-26 11:17:10 +02:00
Antonio Scandurra
118e4b4011
WIP
2022-05-26 09:59:25 +02:00
Antonio Scandurra and Nathan Sobo
2e8f7814f9
Select right-clicked entry before deploying context menu
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-26 09:59:25 +02:00
Antonio Scandurra and Nathan Sobo
8143fce41a
Constrain context menu to the width of the widest item
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-26 09:59:25 +02:00
Antonio Scandurra
882674eb8a
WIP
2022-05-26 09:59:25 +02:00
Nathan Sobo
67ddd34691
Break context menu items out in theme
2022-05-26 09:59:25 +02:00
Nathan Sobo
287aff941e
Render a context menu when right-clicking in project panel
...
It doesn't currently do anything, but I managed to get it rendering in an absolutely positioned way.
2022-05-26 09:59:25 +02:00
Antonio Scandurra
ce06f5ef2a
Pretty-print JSON of server snapshot
2022-05-26 09:34:39 +02:00
Antonio Scandurra
4618463f6b
Fix unit tests assuming ignored files were not displayed
2022-05-24 10:50:27 +02:00
Antonio Scandurra
f9ff36e740
Make fade of ignored entries styleable
2022-05-24 09:12:57 +02:00
Antonio Scandurra
039dccc483
Show ignored entries in project panel
2022-05-23 16:37:57 +02:00
Max Brunsfeld
e6011794ca
Remove AppState from workspace actions
...
This allows those actions to be bound to keystrokes in the keymap.
Also, remove the WorkspaceParams struct, simplify how Workspaces are
constructed.
2022-05-19 14:37:26 -07:00
Antonio Scandurra and Nathan Sobo
0aa63af210
Show badge when there are pending contact requests
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-11 17:39:03 +02:00
Antonio Scandurra and Nathan Sobo
5d5dcf9b4e
Fix memory leak of ProjectPanel
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-05 15:52:46 +02:00
Antonio Scandurra and Nathan Sobo
4df9ab8352
Improve delete prompt in project browser
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-05 15:49:40 +02:00
Antonio Scandurra and Nathan Sobo
8c4c2010eb
Clear project browser editor even if an operation fails
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-05 15:43:42 +02:00
Antonio Scandurra and Nathan Sobo
4729ab818d
When opening items via project panel, only focus them on double-click
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-05-05 15:27:27 +02:00
Antonio Scandurra
58367fccfb
WIP
2022-05-05 15:15:58 +02:00
Max Brunsfeld
51bf66e754
Allow deleting entries from the project panel
2022-05-04 18:00:23 -07:00