Nathan Sobo
d2fe9f8f9b
Merge remote-tracking branch 'origin/main' into app-menus
2023-12-05 16:54:38 -07:00
Nathan Sobo
65bb05af4c
Merge main
...
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-05 16:47:13 -07:00
Nathan Sobo
82534b6612
Get app menus basically working
...
- Everything is still disabled when there is no active window.
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-05 16:37:01 -07:00
Nathan Sobo
79567d1c87
Add AppContext::dispatch_action and use it for app menu actions
...
Co-Authored-By: Marshall <marshall@zed.dev>
Co-Authored-By: Julia <julia@zed.dev>
2023-12-05 15:49:06 -07:00
Max Brunsfeld
5b6fd3ac1d
Implement following and more collaboration panel features in zed2 ( #3504 )
2023-12-05 13:59:15 -08:00
Joseph T. Lyons
a27db35ff7
temp
2023-12-05 16:37:43 -05:00
Marshall Bowers
02e507b973
Update breadcrumb rendering ( #3505 )
...
This PR updates the rendering of the breadcrumb.
Release Notes:
- N/A
Co-authored-by: Nate Butler <iamnbutler@gmail.com>
2023-12-05 16:34:21 -05:00
Max Brunsfeld
f2faa70f73
Make Window::on_next_frame work in tests
2023-12-05 13:34:12 -08:00
Max Brunsfeld
863222edc5
Get following working
...
Restore a single event type on Item trait, so that the workspace can
subscribe to it and handle following events.
2023-12-05 12:57:23 -08:00
Joseph T. Lyons
fdc2d7ce42
Remove unused code
2023-12-05 15:53:52 -05:00
Joseph T. Lyons
dec4cfa0b4
Implement feedback action
...
OpenZedCommunityRepo
2023-12-05 15:52:02 -05:00
Joseph T. Lyons
78e1c0f9c3
Implement feedback actions
...
CopySystemSpecsIntoClipboard
RequestFeature
FileBugReport
2023-12-05 15:48:41 -05:00
Nathan Sobo
631e264e3c
Start on app menus
2023-12-05 13:17:59 -07:00
Mikayla
ab140ee4c2
Add event based drag API to GPUI, continue binding mouse handlers to terminal
2023-12-05 12:07:17 -08:00
Marshall Bowers
8141f4fd86
Format code
2023-12-05 14:17:22 -05:00
Marshall Bowers
e0ca7f844a
Merge branch 'main' into pane-toolbar-tabbar-ui
2023-12-05 14:15:18 -05:00
Nate Butler
4c4b235b13
make ci happy
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:09:42 -05:00
Nate Butler
dc7e4a4b17
Remove debugging colors
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:09:29 -05:00
Nate Butler
27703a3279
Update tabs rendering, fix tab spacing bug
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:04:12 -05:00
Max Brunsfeld
7b4b068230
Render chat and notes buttons below the current channel
2023-12-05 10:40:51 -08:00
Federico Dionisi
ceb5d0c69e
Dismiss theme_selector on esc
2023-12-05 19:31:20 +01:00
Max Brunsfeld
38d41acf9b
Fix rendering of shared screens in collab panel
2023-12-05 10:29:19 -08:00
Antonio Scandurra
d86da04584
WIP
2023-12-05 19:27:15 +01:00
Max Brunsfeld
5e79807f6f
Fix tree branch rendering in collab panel
2023-12-05 10:14:40 -08:00
Joseph T. Lyons
a80b145d0d
temp
2023-12-05 13:04:53 -05:00
Joseph T. Lyons
ce8bdb354b
Merge branch 'main' into feedback-2
2023-12-05 12:49:48 -05:00
Nate Butler
dccdcd3221
Add indicator component
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 12:41:54 -05:00
Mikayla
8d57d6ca6f
Merge branch 'main' into terminal-element
2023-12-05 09:33:46 -08:00
Antonio Scandurra
e534c5fdcd
WIP
2023-12-05 18:14:24 +01:00
Nate Butler
eed5a698cf
Update tab close button
2023-12-05 11:59:23 -05:00
Piotr Osiewicz
412c6157b1
Port quick_action_bar to zed2
...
Co-authored-by: Nate <nate@zed.dev>
2023-12-05 17:33:35 +01:00
Nathan Sobo
dffe0ea058
Reintroduce menu-related platform callbacks
2023-12-05 09:23:24 -07:00
Marshall Bowers
2299730538
Fix an issue with the text in the theme selector editor not showing ( #3501 )
...
This PR fixes an issues where the text—both placeholder and
user-entered—would not show up in the editor in the theme selector.
It seems to be the min width on the wrapper element that fixes this.
Release Notes:
- N/A
2023-12-05 10:59:15 -05:00
Antonio Scandurra
ede86d9187
WIP
2023-12-05 16:49:36 +01:00
Piotr Osiewicz
c9b50c8bab
Add v_stack and h_stack to ui::prelude
2023-12-05 16:48:17 +01:00
Nate Butler
7c5df51d2e
Update button sizes
2023-12-05 10:11:18 -05:00
Antonio Scandurra
30725d6a17
Port semantic_index
to gpui2 ( #3500 )
...
Release Notes:
- N/A
2023-12-05 15:52:38 +01:00
Antonio Scandurra
09db455db2
Port semantic_index
to gpui2
...
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-12-05 15:38:36 +01:00
Kirill Bulatov
c2d3e74ffb
Allow opening files without project entries ( #3497 )
...
Addresses
https://zed-industries.slack.com/archives/C04S5TU0RSN/p1701428432093989
by allowing to open a buffer without a corresponding project `Entry`.
This means that now, we can remove the "fake worktree" requirement and
open files without creating any (the PR does not do this step yet, but
prepares the code for it).
In addition, the PR fixes glob matching code and adds more tests on
excluded files queries.
Release Notes:
- Fixed search query inclusions/exclusions working incorrectly
- Fixed excluded files being opened via CLI and failing or spoiling
project tree view
2023-12-05 16:33:30 +02:00
Federico Dionisi
62bfa3b452
Fix panic opening the theme selector ( #3499 )
...
I noticed a panic when trying to open the theme selector. Removing `Arc`
from `cx.global::<Arc<ThemeRegistry>>()` did the job. Is that the right
way? I'm not sure. 😅
Release Notes:
- N/A
2023-12-05 15:28:48 +01:00
Kirill Bulatov
16b5d4b35c
Port to gpui2
2023-12-05 16:13:39 +02:00
Federico Dionisi
20352c51c1
Fix panic opening the theme selector
2023-12-05 15:12:37 +01:00
Nate Butler
f9efaebddf
Update icon size
2023-12-05 09:10:16 -05:00
Nate Butler
af72772a72
Expand toolbar tools
2023-12-05 09:02:21 -05:00
Piotr Osiewicz
b73ccc8180
Start out Copilot2;
...
Add hidden_action_types to CommandPaletteFilter.
WindowContext.available_actions now returns global actions as well.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-05 14:57:20 +01:00
Piotr Osiewicz
d433da1e70
Editor2 tests ( #3486 )
...
Release Notes:
- N/A
2023-12-05 14:52:20 +01:00
Piotr Osiewicz
001ce47a0c
Fix up the inlay_hint_cache proper (document the bug around inserting at inlay hint).
...
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Kirill <kirill@zed.dev>
2023-12-05 14:10:10 +01:00
Kirill Bulatov
e5616bce98
Fix the test
2023-12-05 12:45:44 +02:00
Kirill Bulatov
92fbdb429c
Add project search in gitignored test
2023-12-05 12:45:44 +02:00
Kirill Bulatov
b43dc480a9
Integration tests for excluded files
2023-12-05 12:45:44 +02:00
Kirill Bulatov
2c2c14a360
Fix the regex matcher
2023-12-05 12:45:36 +02:00
Piotr Osiewicz
dffe323e73
Fix up test_lkayout_with_placeholder_text_and_blocks (uncomment last standing assert)
2023-12-05 11:31:17 +01:00
Kirill Bulatov
f0ca7141b8
Ignore excluded files on worktree entry refresh
2023-12-05 12:30:29 +02:00
Kirill Bulatov
1f6c69c7dc
Allow opening buffers without a project entry
2023-12-05 12:30:29 +02:00
Piotr Osiewicz
590238bcca
test_layout_with_placeholder_text_and_blocks (incomplete, one assert commented out)
...
We need to wire up a field from element state
2023-12-05 11:28:25 +01:00
Piotr Osiewicz
caa5fccbc4
test_wrapped_invisibles_drawing and test_invisibles_dont_appear_in_certain_editors
2023-12-05 11:11:06 +01:00
Piotr Osiewicz
1dd6625dd4
test_all_invisibles_drawing
2023-12-05 11:09:23 +01:00
Piotr Osiewicz
ee695bbb34
Fix up test_vim_visual_selections
2023-12-05 10:59:09 +01:00
Piotr Osiewicz
9695ea1017
test_shape_line_numbers
2023-12-05 10:29:09 +01:00
Piotr Osiewicz
e0ec5032e9
Fix highlight tests (and a quirky behaviour where the highlights were not dismissed when user clicks on something that's not a brace)
2023-12-05 10:17:27 +01:00
Piotr Osiewicz
948c065f86
test_copilot_multibuffer
2023-12-05 10:17:27 +01:00
Max Brunsfeld
ae6ddceb67
Enable more collab UI features ( #3496 )
...
* Current Call section of the collab panel
* Improve the collab titlebar
* Add basic UI for following
Following only partially works, but the UI for following is now in
place.
2023-12-04 18:01:11 -08:00
Max Brunsfeld
eff3a72fb5
Start work on following in zed2
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 17:51:53 -08:00
Nate Butler
591dc9d82a
Remove double first item border in tabs
2023-12-04 20:13:52 -05:00
Max Brunsfeld
71a1125e88
Allow joining remote projects in zed2
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 17:06:08 -08:00
Max Brunsfeld
959b2961ff
Revert "Decouple workspace from call ( #3380 )"
...
This reverts commit 6da57cbc6e
, reversing
changes made to 62b1843704
.
Also, adjust new code that was written using the "call handler".
2023-12-04 17:05:44 -08:00
Conrad Irwin
9162f299a7
Fix project panel context menu
2023-12-05 00:41:00 +00:00
Max Brunsfeld
2c5603032d
Allow sharing projects
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 15:46:56 -08:00
Max Brunsfeld
63667ecf6f
Start bringing back the current call section of the collab panel
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 15:46:56 -08:00
Conrad Irwin
13bb16577c
action dispatch target ( #3494 )
...
- Ensure the candidate keybinding matches the correct context
- Fix context key matching
- I was soooo close
- Dispatch actions on focused node
[[PR Description]]
Release Notes:
- (Added|Fixed|Improved) ...
([#<public_issue_number_if_exists>](https://github.com/zed-industries/community/issues/ <public_issue_number_if_exists>)).
2023-12-04 23:43:26 +00:00
Conrad Irwin
1c9b984738
Remove cx param
2023-12-04 23:35:31 +00:00
Nate Butler
7db0a9e105
Draw border under tabs
2023-12-04 18:21:50 -05:00
Nate Butler
fc16e4509a
Fix double border
2023-12-04 18:13:28 -05:00
Conrad Irwin
c82fea375d
Dispatch actions on focused node
...
Allows us to implement context menu matching nicely
2023-12-04 22:58:04 +00:00
Nate Butler
5bdaf0e074
Work on light theme, update tab
2023-12-04 17:54:37 -05:00
Marshall Bowers
c10d8a8110
Fix cursor styles not displaying properly ( #3493 )
...
This PR fixes an issue where an element with a cursor style set would
not update the cursor when hovering over it.
Previously the cursor style would only appear by interacting with the
element in some way, for instance, by clicking on the element or by
having a `.hover` with some other style being applied.
Release Notes:
- N/A
2023-12-04 16:40:53 -05:00
Conrad Irwin
79773178c8
I was soooo close
2023-12-04 21:37:47 +00:00
Conrad Irwin
2c2e5144c9
Fix context key matching
...
* You need to check all layers of the context stack
* When in command, the context should be based on where focus was (to
match `available_actions`.
2023-12-04 21:28:37 +00:00
Julia
059959a4ab
Zed2 outline view ( #3490 )
...
Release Notes:
- N/A
2023-12-04 15:56:53 -05:00
Marshall Bowers
3627ff87f0
Ensure the candidate keybinding matches the correct context
2023-12-04 15:53:38 -05:00
Julia
9a2fd18425
Avoid panic with outline highlight ranges
...
Previously we were using a function in `editor` to combine syntax
highlighting and fuzzy match positions, it would operate on the full
text as put into the label. However we now have a method `ranges` on
`StringMatch` itself which operates on just the match text.
The outline view has some pretty specific behavior around path/normal
matches and how they are highlighted. So let's just give the match the
full text before it leaves the search function so it can freely index
2023-12-04 15:37:34 -05:00
Marshall Bowers
4cb4033a36
Merge branch 'main' into editor2_tests
2023-12-04 14:09:23 -05:00
Marshall Bowers
b212aab00d
Add support for copying diagnostic messages to the clipboard ( #3489 )
...
This PR adds support for copying diagnostics messages to the clipboard.
This was already working, but we were missing implementations
clipboard-related methods in the `TestPlatform` that were causing the
tests to fail when the copying functionality was added.
Release Notes:
- N/A
2023-12-04 14:08:05 -05:00
Nate Butler
63213b5a57
Add temp nightly icon
2023-12-04 12:48:21 -05:00
Piotr Osiewicz
a3e4559b0e
Fix git test compilation
2023-12-04 17:57:43 +01:00
Marshall Bowers
26c797c358
Format code
2023-12-04 11:57:10 -05:00
Marshall Bowers
fb352af35c
Merge branch 'main' into diagnostics-style-2
2023-12-04 11:56:55 -05:00
Nate Butler
4f4029524f
Style Grab Bag ( #3487 )
...
[[PR Description]]
- Add pane empty state
- Ensure tab bar doesn't resize when a tab is added
- Make ButtonLike respect the style of a disabled button
- Add additional cursors to gpui2
Release Notes:
- N/A
2023-12-04 11:55:26 -05:00
Nate Butler
e928ed44a0
Mark copy button as incomplete
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:53:46 -05:00
Nate Butler
23626aa902
Update diagnostic style
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:50:26 -05:00
Julia
5ab6874ae9
zed2: Port outline view
2023-12-04 11:44:32 -05:00
Nate Butler
4ee4e4e8d8
Fix ci error – Copy to clipboard isn't implemented in tests
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:41:31 -05:00
Nate Butler
7a0aa1e5df
Clean up ButtonLike
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:32:25 -05:00
Nate Butler
b6ed3b258c
Remove debug
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:32:14 -05:00
Nate Butler
50fe683305
Fix typos
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:28:22 -05:00
Piotr Osiewicz
b5924d6b11
Add simulate_window_resize.
...
Fixes up tests for movement in editor/scrolling.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 17:27:48 +01:00
Nate Butler
80ae640060
Add additional cursors to gpui2
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:20:41 -05:00
Nate Butler
0af0c5549c
Update toolbar left tool group
2023-12-04 11:14:59 -05:00
Piotr Osiewicz
68d309e79c
Fix disparity between editor2 and edito1 wrt copilot completions.
...
Fixes test test_copilot.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 16:39:40 +01:00
Piotr Osiewicz
fd2f1c2594
Fix up copilot2 test
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 16:26:34 +01:00
Piotr Osiewicz
2108ddf621
Defer activating Subscriptions that are invoked as a part of an effect.
...
Fixes test test_edit_events.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 16:17:33 +01:00
Nate Butler
118c9b5fe8
Ensure disabled buttons don't have interaction styles
2023-12-04 09:37:56 -05:00
Piotr Osiewicz
b9a917f42a
Fix up condition not checking the condition at the start.
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 15:31:35 +01:00
Nate Butler
7dc22fef24
Prevent tab bar from growing in height when a tab is added
2023-12-04 09:24:08 -05:00
Piotr Osiewicz
24b08921fe
Revert "fix display map tests"
...
This reverts commit 0f7fc8c1a0
.
2023-12-04 15:22:29 +01:00
Julia
dfe4fc4d0a
Disable instance handshake in dev builds
2023-12-04 09:16:04 -05:00
Nate Butler
11c16258eb
Update empty pane state
2023-12-04 09:13:00 -05:00
Piotr Osiewicz
ff734d494f
uncomment and augment mouse_context_menu tests
2023-12-04 15:06:56 +01:00
Piotr Osiewicz
3b1a0652ae
inlay hints: Relax the test condition.
...
We've investigated another spurious failure, this time with test_multiple_excerpts_large_multibuffer; sadly it didn't really get us anywhere, so for now we're relaxing an assert.
Co-authored-by: Kirill <kirill@zed.dev>
2023-12-04 14:50:10 +01:00
Piotr Osiewicz
b3e741b397
Fix up test_highlighted_ranges
...
Returned highlights were okay, but the test was trying to normalize the output by sorting the highlights by color. The ordering is different between gpui1 Color and gpui2 Hsla.
2023-12-04 13:47:50 +01:00
Piotr Osiewicz
1a5f6f604b
Uncomment & fix up test_transpose
2023-12-04 13:42:48 +01:00
Piotr Osiewicz
0f7fc8c1a0
fix display map tests
...
These tests failed due to an indefinite hang in buffer.condition in the following code:
\`\`\`rust
let buffer = cx
.add_model(|cx| Buffer::new(0, cx.model_id() as u64, text).with_language(language, cx));
buffer.condition(cx, |buf, _| !buf.is_parsing()).await;
`\`\`
In both gpui1 and gpui2 \`.with_language\` spawns a task that notifies the context once it's done. The \`condition\` waits for notifications to be raised. The gist of the problem was that in gpui2, the spawned task was scheduled straight away, so we never really saw the notification with \`condition\`, causing us to wait indefinitely. This is probably a difference in test between schedulers in gpui1 and gpui2, but I kind of sidestepped the issue by spawning a condition before firing off a parsing task with \`set_language\`.
2023-12-04 13:14:03 +01:00
Piotr Osiewicz
9ffe78d264
Fix up random wrap map test
2023-12-04 12:10:01 +01:00
Kirill Bulatov
45230dcaf3
Log project path that was no open due to no project entry found
2023-12-04 12:45:57 +02:00
Conrad Irwin
aa3c9b8568
In-flight entertainment ( #3484 )
...
- +language_selector2
- Language Selector 2 working!
- Prevent languages showing in wrong order first
- copilot_menu2 (though only tested offling, which is insufficient)
- Dismiss tooltips at capture
- Get ChannelModal opening
[[PR Description]]
Release Notes:
- N/A
2023-12-03 13:06:29 -07:00
Conrad Irwin
859f2d2862
Get ChannelModal opening
2023-12-02 00:57:41 -07:00
Conrad Irwin
63b65b2b2e
Dismiss tooltips at capture
...
(Otherwise they stay open when you hover over the editor, which
stops mouse move events propagating)
2023-12-01 23:51:06 -07:00
Conrad Irwin
1da18ebe9a
copilot_menu2 (though only tested offling, which is insufficient)
2023-12-01 23:43:02 -07:00
Conrad Irwin
6426997abb
Prevent languages showing in wrong order first
2023-12-01 21:26:23 -07:00
Conrad Irwin
6a5b5f022d
Language Selector 2 working!
2023-12-01 21:23:20 -07:00
Conrad Irwin
2de6758443
+language_selector2
2023-12-01 21:23:20 -07:00
Mikayla
fe83919746
Get terminal turning on
2023-12-01 17:01:57 -08:00
Mikayla
6730ff3624
Merge branch 'main' into terminal-element
2023-12-01 16:21:38 -08:00
Mikayla
b0f9144167
Compiling layout!
...
co-authored-by: Max <max@zed.dev>
2023-12-01 16:21:12 -08:00
Nathan Sobo
0edd89a92f
Bind CloseWindow and Open actions on workspace
...
Co-Authored-By: Max <max@zed.dev>
2023-12-01 16:17:48 -07:00
Nathan Sobo
6f7995c150
Enable workspace::Open global action
2023-12-01 16:08:57 -07:00
Nate Butler
2bf48872b6
Progress on diagnostic multibuffer
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-01 16:53:09 -05:00
Nate Butler
03ebf0a5a9
Implement FixedWidth for all button types
...
[no-ci]
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-01 16:20:39 -05:00
Max Brunsfeld
6b0457c52f
Bump RPC protocol version in zed2 to match zed1
2023-12-01 13:08:45 -08:00
Piotr Osiewicz
d81fb3680e
Uncomment copilot2 tests
2023-12-01 22:04:43 +01:00
Nate Butler
c07455efa7
Update path header style
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-01 15:53:17 -05:00
Max Brunsfeld
d85db44552
Fix retrieval of app version in auto_update2
2023-12-01 12:52:26 -08:00
Nate Butler
89aa6a3726
Re-add diagnostic headers
2023-12-01 15:30:01 -05:00
Nate Butler
f5679f98d6
Update diagnostics style
2023-12-01 14:52:17 -05:00
Piotr Osiewicz
be509a5ce0
test_clipboard
2023-12-01 20:50:30 +01:00
Max Brunsfeld
5dd9db3607
collab 0.29.1
2023-12-01 11:50:05 -08:00
Max Brunsfeld
aace0d816d
Prevent moving a channel into its descendant ( #3480 )
...
This fixes a bug where it was possible to put the channel tree into a
bad state by accidentally dragging a channel into itself or one of its
descendants.
2023-12-01 11:47:39 -08:00
Max Brunsfeld
4479628342
Prevent moving a channel into its descendant
2023-12-01 11:41:38 -08:00
Piotr Osiewicz
0a1765b01f
test_following_with_multiple_excerpts (passes)
2023-12-01 20:32:12 +01:00
Marshall Bowers
c3e7732eab
Add support for optional icon to Button
( #3479 )
...
This PR extends `Button` with support for an optional icon to be
displayed next to the label.
As part of this, the functionality for displaying an icon within a
button has been factored out into an internal `ButtonIcon` component.
`ButtonIcon` is now used by both `IconButton` and `Button` to
encapsulate the concerns of an icon that is rendered within a button.
Release Notes:
- N/A
2023-12-01 14:30:38 -05:00
Piotr Osiewicz
a985b7aab4
test_following (passes :))
2023-12-01 20:25:47 +01:00
Piotr Osiewicz
20ae58eddd
Bunch of new tests
2023-12-01 20:23:34 +01:00
Piotr Osiewicz
9408eecb6e
test_navigation_history (pass)
2023-12-01 20:17:41 +01:00
Piotr Osiewicz
2ab84b81da
test_edit_events
2023-12-01 20:16:40 +01:00
Piotr Osiewicz
e821e1fc35
Display map tests (3 flaky tests for chunks)
2023-12-01 20:14:14 +01:00
Piotr Osiewicz
237efc841e
Another batch of tests
2023-12-01 19:39:53 +01:00
Marshall Bowers
4b23c5c658
Add selected_label
to Button
( #3478 )
...
This PR adds a new `selected_label` method to `Button`.
This can be used to set a different label that should be rendered when
the `Button` is selected.
Release Notes:
- N/A
2023-12-01 13:29:11 -05:00
Piotr Osiewicz
1c52b936bc
Uncomment flaky tests
2023-12-01 19:21:30 +01:00
Marshall Bowers
12b58f5b60
Add selected_icon
to IconButton
2023-12-01 13:10:53 -05:00
Marshall Bowers
f09d9ef723
Clean up some ButtonLike
doc comments
2023-12-01 13:09:35 -05:00
Piotr Osiewicz
53f3f960d2
Another batch of tests
2023-12-01 18:43:44 +01:00
Julia
6f9e08ceea
Merge branch 'main' into zed2-breadcrumbs
2023-12-01 12:28:36 -05:00
Nate Butler
85d72f63c1
Add Tinted button style placeholder and document ButtonLike ( #3476 )
...
- Adds a placeholder `ButtonStyle::Tinted`.
- Note: Using this now will just give you a block of `gpui::red()`
- Documents ButtonLike and ButtonStyle to hopefully help make choosing a
button style easier.
Release Notes:
- N/A
2023-12-01 12:18:35 -05:00
Piotr Osiewicz
4c4ec221af
Uncomment a bunch of tests in the editor
2023-12-01 18:11:27 +01:00
Julia
910aeb4f56
I'm a dunce
2023-12-01 11:47:04 -05:00
Piotr Osiewicz
e0ccaa60ff
editor tests: Reintroduce block_on_ticks.
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-01 17:24:47 +01:00
Piotr Osiewicz
a40a5fb212
Revert "editor tests: Reintroduce block_on_ticks."
...
This reverts commit aed11ee8cb
.
2023-12-01 17:24:20 +01:00
Piotr Osiewicz
aed11ee8cb
editor tests: Reintroduce block_on_ticks.
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-01 17:22:12 +01:00
Julia
13f4cc563c
Merge branch 'main' into zed2-breadcrumbs
2023-12-01 11:02:34 -05:00
Nate Butler
ab75dbe7af
Update collab_titlebar_item.rs
2023-12-01 10:52:11 -05:00
Nate Butler
88188b0c30
Merge branch 'main' into collab-ui-refinement
2023-12-01 10:50:25 -05:00
Julia
ce16e5b54a
Unbreak toolbar layout & improve disabling ButtonLike
2023-12-01 10:33:44 -05:00
Antonio Scandurra
5fefc121bf
Add mouse context menu to editor2
...
Co-Authored-By: Piotr <piotr@zed.dev>
2023-12-01 16:01:56 +01:00
Antonio Scandurra
f0c205be5d
Respond to modifiers changed event in editor2 and set cursor
2023-12-01 14:26:49 +01:00
Antonio Scandurra
f0bc4a04bd
Uncomment git gutter painting
2023-12-01 13:45:14 +01:00
Antonio Scandurra
1abc876c15
Merge remote-tracking branch 'origin/main' into no-more-todos-in-editor
...
# Conflicts:
# crates/editor2/src/items.rs
2023-12-01 12:40:48 +01:00
Antonio Scandurra
8e4f2fb25a
Remove all todos in Editor's Item implementation
2023-12-01 12:32:30 +01:00
Antonio Scandurra
faa896343b
Register NewFile and NewFileInDirection from Editor
2023-12-01 12:11:54 +01:00
Antonio Scandurra
a8a5785ec5
Re-enable opening excerpts in Editor
2023-12-01 12:03:21 +01:00
Antonio Scandurra
c9be637b6b
Re-introduce auto-height in editor2
( #3471 )
...
Release Notes:
- N/A
2023-12-01 12:02:45 +01:00
Antonio Scandurra
0b7e324d86
🔥
2023-12-01 11:53:47 +01:00
Antonio Scandurra
8c59a2d2c0
Delete commented out code for editor element
2023-12-01 11:52:40 +01:00
Antonio Scandurra
21d3ae603d
Remove stray dbg statements
2023-12-01 11:49:25 +01:00
Antonio Scandurra
1b07fd6a70
Fix edits not being reported when rewrapping
2023-12-01 11:48:21 +01:00
Joseph T. Lyons
a75f1a4a95
Close feedback modal when clicking cancel
2023-11-30 22:07:10 -05:00
Joseph T. Lyons
eef6c3729e
Fix bug preventing spaces from being used in filename ( #3454 )
...
This bug was my fault, something I changed months ago to be more
consistent with VS Code - really strange that it took months for someone
to find out spaces couldn't be used in the project panel.
~I didn't apply this fix to zed2 because I dont think the facilities are
in place to do so (@maxbrunsfeld, @mikayla-maki, is there a system in
place for this that I missed?). I did leave a TODO.~
Fix is now in zed 2.
Release Notes:
- Fixed a bug where spaces could not be inserted when editing file names
in the project panel
([#2308 ](https://github.com/zed-industries/community/issues/2308 )).
2023-11-30 21:44:48 -05:00
Joseph T. Lyons
9849a0a6d8
Move project panel's dispatch_context() to render()
2023-11-30 21:37:41 -05:00
Marshall Bowers
6d62e6c562
Respect label_color
for Button
s ( #3469 )
...
This PR makes `Button`s respect the `label_color` that is specified,
provided they are not disabled or selected.
Release Notes:
- N/A
2023-11-30 20:36:59 -05:00
Conrad Irwin
0441b4805a
Show cursor position in status bar ( #3464 )
...
Passes the compiler so it must work!
(though it doesn't show up until we fix pane focus)
Release Notes:
- N/A
2023-11-30 16:40:42 -07:00
Conrad Irwin
e1c8369b3d
Rename menu_handle
to right_click_menu
and child
to trigger
...
This makes things more in-line with `popover_menu`.
2023-11-30 16:39:43 -07:00
Max Brunsfeld
4f74d65d0c
Restore some workspace functionality, enable workspace tests ( #3468 )
...
* Pane history navigation
* Autosave on focus change
* Setting the window title based on the active path
2023-11-30 15:26:44 -08:00
Conrad Irwin
ebbbeca9a6
Flesh out a popover control
2023-11-30 16:13:44 -07:00
Max Brunsfeld
cb11c1282c
Re-introduce active path tracking in workspace
2023-11-30 14:58:14 -08:00
Max Brunsfeld
a003a91212
Restore auto-save on focus change, re-enable workspace tests
2023-11-30 14:45:27 -08:00
Nate Butler
bac39e85a8
Add some text to clarify no api key state ( #3462 )
...
This PR is a quick-and-dirty approach to clarify what is happening when
a user doesn't have an API key so the assistant opens with the key
editor.
- Adds some text explaining how to close the panel
- Explains that other subscriptions don't cover the assistant, it needs
an api key.
- Helps people understand where to go to get an API key.
This is a Zed 1 change only, a bandaid. Zed 2 will have a better
solution: [Working
issue](https://github.com/zed-industries/zed/issues/3461 )
Release Notes:
- N/A
2023-11-30 17:26:50 -05:00
Nate Butler
e228422f14
Update feedback modal UI
...
Co-Authored-By: Joseph T. Lyons <19867440+JosephTLyons@users.noreply.github.com>
2023-11-30 16:42:58 -05:00
Nate Butler
8b7be8f614
Get feedback2
compiling
...
Co-Authored-By: Joseph T. Lyons <19867440+JosephTLyons@users.noreply.github.com>
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
2023-11-30 16:07:54 -05:00
Marshall Bowers
e5a5b1e84c
Rework ListHeader
to be more open ( #3467 )
...
This PR reworks the `ListHeader` component to be more open.
The `meta` method can now be used to append meta items of any element to
the `ListHeader`, and they will be rendered with the appropriate spacing
between them.
Release Notes:
- N/A
2023-11-30 15:55:31 -05:00
Nate Butler
5098fafa02
Add v_stack
and h_stack
to the UI prelude
...
Co-Authored-By: Joseph T. Lyons <19867440+JosephTLyons@users.noreply.github.com>
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
2023-11-30 15:28:18 -05:00
Nate Butler
f987a640fd
init feedback2
...
Co-Authored-By: Joseph T. Lyons <19867440+JosephTLyons@users.noreply.github.com>
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
2023-11-30 15:23:42 -05:00
Max Brunsfeld
c63ca09eed
Reintroduce pane navigation history in zed2
2023-11-30 12:10:25 -08:00
Nate Butler
164084c61c
Update collab_titlebar_item.rs
2023-11-30 14:55:59 -05:00
Nate Butler
180ba42456
WIP update popover_menu
2023-11-30 14:54:44 -05:00
Joseph T. Lyons
f922ad9f7f
Fix bug preventing spaces from being used in filename (zed2)
...
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-11-30 14:24:00 -05:00
Mikayla
39887be7d0
WIP: layout compiling
2023-11-30 11:01:36 -08:00
Julia
d516ae0d8a
Pane context menus & focus shenanigans
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev>
2023-11-30 14:01:09 -05:00
Marshall Bowers
3ffcb97da2
Implement Selectable
for list components ( #3465 )
...
This PR implements the `Selectable` trait for the `ListItem` and
`ListHeader` components.
These components already had their own selectable behavior, but weren't
formally adhering to the interface defined by the trait.
Release Notes:
- N/A
2023-11-30 13:37:29 -05:00
Marshall Bowers
e78538e162
Implement Selectable
for ListItem
and ListHeader
2023-11-30 13:26:12 -05:00
Marshall Bowers
865baaa1a1
Remove unused GraphicSlot
enum
2023-11-30 13:25:26 -05:00
Nate Butler
5fdfdb046c
Remove unused import
2023-11-30 13:13:22 -05:00