Commit Graph
177 Commits
Author SHA1 Message Date
Mikayla Maki da143ae46a made git diff rendering respect line wrap 2022-10-02 18:00:13 -07:00
Mikayla Maki 63747c8fee made git stuff slightly more themable 2022-09-29 13:16:02 -04:00
8f5a2a7a4f Pull git indicator colors out of theme
Co-Authored-By: Kay Simmons <kay@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-29 13:16:02 -04:00
Kay Simmons b06bd3d923 Merge pull request #1634 from zed-industries/dock-tweaks
Dock Tweaks
2022-09-19 09:02:43 -07:00
K Simmons 2a0828de6f Minor improvements to dock visuals, rework dock keybindings, and fix panic on split when dock is active 2022-09-16 12:55:36 -07:00
Antonio Scandurra a4f2fa0d27 Merge branch 'main' into capture 2022-09-15 12:02:07 +02:00
Antonio Scandurra 9df4ac7e07 Style contacts popover background based on theme 2022-09-15 11:57:22 +02:00
K SimmonsandMikayla Maki 996c32f045 Fix incorrect rendering of toolbar in right anchored dock
Make dock keybinding activate the dock if it wasn't hidden, and hide it if it was already active
Make clicking the expanded dock wash, hide the dock
Fix some issues with programmatically activating other panes, not hiding the dock
Tweak dock anchor menu text
Swap dock hide button for thin variant
Fix dock sidebar interactions
Add clicked state to search button and fix presenter issue sending clicked events when mouse not overlapping MouseRegion

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-13 15:17:27 -07:00
K Simmons 4a35495d3c Extract panel resize code from sidebar into Resizable element
Make resizable work in vertical axis
Make dock resizable
Have dock preserve size based on Anchor position
Make pane buttons work more correctly in pathological cases
Sync status bar dock button with dock visibility/anchor position

Co-Authored-By Mikayla Maki <mikayla@zed.dev>
2022-09-12 18:32:15 -07:00
K SimmonsandMikayla Maki 017f7b75cf DOCK WORKING!
Update editor element to use mouse regions instead of dispatch event for mouse events
Fix bug in presenter where mouse region handlers were stored on click and called instead of more up to date handlers from subsequent renders
Changed MouseRegion to require discriminants in all cases
Add scroll wheel event to MouseRegion
Polished a bunch of dock inconsistencies

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-11 15:32:20 -07:00
K Simmons cf46cd4b62 Swapped keyboard binding and did some minor tweaks to style and focus 2022-09-11 15:31:44 -07:00
Mikayla Maki 08be69255a Added experimental themes flag 2022-09-08 15:47:27 -07:00
Mikayla Maki c5344552c5 Finished internal themes 2022-09-08 15:06:08 -07:00
Mikayla Maki bcf28aeaf0 Sorted themes correctly 2022-09-08 14:11:48 -07:00
Mikayla Maki 978104acfd Actually added all files this time 2022-08-31 20:37:04 -07:00
K Simmons 4080b5b7f3 Drag and drop tabs working. all known bugs fixed 2022-08-25 11:14:24 -07:00
K Simmons 556c688562 Change dragged tab styling 2022-08-23 18:02:01 -07:00
K Simmons 292db0688c wip tab drag and drop 2022-08-22 16:16:39 -07:00
Mikayla Maki 7f255e6ec0 Added icons to context menu 2022-08-03 16:47:41 -07:00
Keith Simmons cf1b62de8f Merge pull request #1414 from zed-industries/fix-theme-issues
Fix tab bar themes
2022-07-26 11:55:17 -07:00
K Simmons cbf0722591 Extract tab bar from workspace 2022-07-26 10:41:02 -07:00
Antonio Scandurra 47fce17ff8 Merge branch 'main' into ime-support-2 2022-07-25 10:47:49 +02:00
Nate Butler 56fc43bb45 WIP for keith 2022-07-22 17:28:58 -04:00
Keith Simmons d8ac0cf838 Merge pull request #1378 from zed-industries/diagnostics-popover
Diagnostics Popover
2022-07-22 11:12:56 -07:00
Antonio Scandurra bfa490c35d Merge branch 'main' into ime-support-2 2022-07-22 16:03:38 +02:00
K Simmons ba17408e36 Minor naming improvements and revert empty pane background color change 2022-07-21 14:56:17 -07:00
K Simmons ed91cee43d working diagnostic popover. Also renamed GoToNextDiagnostic to GoToDiagnostic and adjusted it's action to jump to the popover's diagnostic if it is visible 2022-07-20 19:02:33 -07: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
Max Brunsfeld bda456a5d1 Start work on new text input handling in Editor 2022-07-20 16:45:27 -07:00
Antonio Scandurra 9de9d517fd Differentiate among tabs with the same name
This commit introduces a new, optional `Item::tab_description` method
that lets implementers define a description for the tab with a certain
`detail`. When two or more tabs match the same description, we will
increase the `detail` until tabs don't match anymore or increasing the
`detail` doesn't disambiguate tabs any further.

As soon as we find a valid `detail` that disambiguates tabs enough, we
will pass it to `Item::tab_content`. In `Editor`, this is implemented by
showing more and more of the path's suffix as `detail` is increased.
2022-07-14 11:54:11 +02:00
Antonio Scandurra 1c9ada48b8 Deploy context menu when clicking on split icon 2022-07-13 12:15:36 +02:00
Antonio Scandurra 87682af77f Show split button at the right edge of the tab bar 2022-07-13 11:44:33 +02:00
Max Brunsfeld 7248048413 Move all default settings from source code into the JSON file 2022-07-12 11:35:19 -07:00
Mikayla Maki 7df371ae53 Merge branch 'main' into terminal-modal 2022-07-07 17:48:58 -07:00
Max Brunsfeld 4adcffcc9f Enable and disable nav buttons based on pane's navigation stack
Also, make the `NavHistory` type private to the `workspace` crate.
Expose only the `ItemNavHistory` type, via a method on Pane called
`nav_history_for_item`.
2022-07-06 15:46:43 -07:00
Max Brunsfeld 53833d2e12 Add forward and backward navigation buttons to toolbar 2022-07-06 14:05:24 -07:00
Keith Simmons 8997283bfd add terminal modal which can be displayed and dismissed while preserving the terminal state 2022-07-06 13:20:54 -07:00
Mikayla Maki 23d102c00f Added theme support 2022-06-28 17:07:18 -07:00
Mikayla Maki e575c72699 Removed final stuff from theme.rs 2022-06-28 15:45:27 -07:00
Mikayla Maki 8225416433 Forgot to commit last night 2022-06-28 15:45:27 -07:00
Keith Simmons a76be2126c working jump to definition with tests 2022-06-24 15:09:31 -07:00
Max BrunsfeldandAntonio Scandurra a323afac3f Show upgrade required message when reconnecting after a protocol change
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-21 10:26:34 -07:00
Antonio Scandurra 96602c79bc Render a "Jump to Buffer" icon on all excerpt headers 2022-06-08 15:31:29 +02:00
Max Brunsfeld b12543bd6e Add status bar link and Help menu item to open an issue on feedback repo 2022-06-07 15:48:12 -07:00
Keith Simmons a0328d6eef Merge pull request #1078 from zed-industries/lsp-hover
LSP Hover Information
2022-06-07 14:45:43 -07:00
Keith Simmons 7f12bd6bb0 Add vim bindings for hover
Allow scrolling in hover popover
2022-06-07 13:07:53 -07:00
Keith Simmons 76104481b6 Move highlighting to editor code and implement proto message types for hover response 2022-06-07 11:54:52 -07:00
Keith Simmons 98c402c349 Pull hover popover out of context menu 2022-06-07 11:54:00 -07:00
Max Brunsfeld a146f82bdd Show a notification after Zed auto-updates 2022-06-06 17:42:31 -07:00
Max Brunsfeld edf7dc615b Style the contact panel while public/private operations are in-flight 2022-06-02 17:38:33 -07:00