Kirill Bulatov
bf35b78380
Allow both action and completion lists to occupy max width and height of its element
2024-01-23 22:42:06 +02:00
Mikayla
1f94463ce2
Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port.
...
Make gpui pass clippy
2024-01-22 19:30:38 -08:00
Mikayla
6419df82ee
Fix certain hovers being cut off
2024-01-22 09:49:07 -08:00
Mikayla
b65cae5874
Moved Frame struct into element context, to be close to it's associated methods
2024-01-21 20:52:24 -08:00
Mikayla
df4566fd1e
Refactor out element context from GPUI
2024-01-21 19:43:35 -08:00
Mikayla
2f9958621b
Do an initial pass on refactoring out ElementContext from WindowContext
2024-01-21 18:40:20 -08:00
Mikayla
660a391806
Fix typos, mark docs related todos in GPUI
2024-01-21 14:28:40 -08:00
Mikayla
aa57a4cfbc
Document / lockdown more of GPUI
2024-01-21 14:26:45 -08:00
Mikayla
2083fdcaf6
Fix compile issue
2024-01-20 20:15:43 -08:00
Mikayla
bf878b8257
Document the canvas and div
2024-01-20 20:15:23 -08:00
Mikayla
a44aae9e91
Finish documenting the action, asset, color, and element modules in GPUI
...
Remove SmallVec from the public API of GPUI
2024-01-20 20:15:23 -08:00
Conrad Irwin
3b84291343
Updates to chat after Hack#2 ( #4175 )
...
Release Notes:
- Channels: Improved font sizes in chat
- Channels: Added a link preview when hovering over links in chat
- Channels: Fixed rendering of newlines in chat messages
- Added a new setting "use_autoclose" (defaulting to true) that lets you
disable autoclose per language.
([#1420 ](https://github.com/zed-industries/community/issues/1420 ))
([#1903 ](https://github.com/zed-industries/community/issues/1903 ))
2024-01-20 20:03:37 -07:00
Mikayla
33105486aa
Make platform input handler private
...
Automatically record the context on non-view input handlers
Simplify the async window context update() method
2024-01-20 06:56:19 -08:00
Conrad Irwin
23d991962a
Link previews in chat
2024-01-19 16:59:17 -07:00
Conrad Irwin and Mikayla
920eced1d5
Fix right click handler for tabs
...
Also, some fun test helpers
Co-Authored-By: Mikayla <mikayla@zed.dev >
2024-01-18 12:10:38 -07:00
Mikayla
e6ca92ffa4
Fix a few more typos
2024-01-17 14:58:58 -08:00
6db18e8972
Drop scroll events if there's been a reset
...
co-authored-by: Nathan <nathan@zed.dev >
co-authored-by: Conrad <conrad@zed.dev >
2024-01-17 13:57:16 -08:00
Mikayla
80852c3e18
Add documentation to the new test
2024-01-16 22:34:15 -08:00
Mikayla
cae35d3334
Fix draw helper, add helper traits for selecting groupings of input events
2024-01-16 22:19:55 -08:00
Mikayla
db433586aa
Add some small test code for tracking down this list bug
2024-01-16 16:52:55 -08:00
69bbcba99a
Preserve tooltips requested by cached views
...
Co-Authored-By: Nathan <nathan@zed.dev >
Co-Authored-By: Max <max@zed.dev >
2024-01-15 19:19:27 +01:00
Antonio Scandurra
4ff514ca7e
Merge remote-tracking branch 'origin/main' into cache
...
# Conflicts:
# crates/gpui/src/elements/div.rs
2024-01-15 11:37:46 +01:00
Conrad Irwin
29ce109211
chat panel ++ ( #4044 )
...
- Update chat panel with current channel
- Open chat panel for guests
- Open chat when joining a channel with guests
- Some tweaks for chat panels
- Don't lose focus on default panel state
- Make chat prettier (to my eyes at least)
- Fix multiple mentions in one message
- Show a border when scrolled in chat
- Fix re-docking chat panel
- Move settings subscription to dock
[[PR Description]]
Release Notes:
- Opens chat by default when joining a public channel
- Improves chat panel UI
2024-01-14 13:54:10 -07:00
Conrad Irwin
818cbb2415
Show a border when scrolled in chat
2024-01-13 22:19:21 -07:00
Julia
cdc227b32f
Still paint group hover handler for invisible divs
...
Fixes bug where tab close icon show on hover is inconsistent
2024-01-12 17:44:15 -05:00
Antonio Scandurra
1c260e6dfd
Merge remote-tracking branch 'origin/main' into cache
...
# Conflicts:
# crates/copilot/src/sign_in.rs
# crates/gpui/src/window.rs
# crates/workspace/src/pane_group.rs
2024-01-10 22:58:52 +01:00
Antonio Scandurra
2923b71f83
Replace WindowContext::notify with WindowContext::refresh
2024-01-10 17:27:02 +01:00
Marshall Bowers
aff119b80a
Fix possessive "its" in docs and comments ( #3998 )
...
This PR fixes a number of places where we were incorrectly using "it's"
where we needed to use the possessive "its".
Release Notes:
- N/A
2024-01-10 10:09:48 -05:00
Kirill Bulatov
c197ea49ca
Simplify uniform list scrolling logic
2024-01-10 13:45:50 +02:00
Kirill Bulatov and Antonio Scandurra
f57ff1c660
Make the scroll position updated as soon as possible to the correct deferred value
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2024-01-10 12:16:06 +02:00
Kirill Bulatov
927e0db750
An attempt to defer scrolls during empty initial state
2024-01-10 11:26:23 +02:00
Mikayla
ed263a7b5c
Resolve more todos
2024-01-09 15:08:05 -08:00
Mikayla
80790d921d
Fix / remove small todos
2024-01-09 14:16:46 -08:00
Marshall Bowers
f0ef63bfa0
gpui: Add SharedUrl type ( #3975 )
...
This PR adds a `SharedUrl` type to GPUI.
It's just like a `SharedString`, but for denoting that the contained
value is a URL.
Mainlined from @nathansobo's GPUI blog post:
https://github.com/zed-industries/zed/pull/3968/files#diff-7ee75937e2daf7dd53f71b17698d8bd6d46993d06928d411781b9bd739b5f231R9-R12
Release Notes:
- N/A
2024-01-09 10:55:49 -05:00
Kirill Bulatov
625c9d8980
Remove some todo!'s
2024-01-09 11:36:36 +02:00
Antonio Scandurra
b78497bf54
Clip List items that partially overflow
2024-01-04 15:12:25 +01:00
Max Brunsfeld and Mikayla
f5ba22659b
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:59:39 -08:00
Kirill Bulatov and Piotr
f0f0b47058
pane: When opening a buffer, actually scroll to the selected tab. Previously it might've reused a shared state.
...
Deals with https://github.com/zed-industries/community/issues/2262 also fixes influencer's feedback.
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-13 13:09:02 +02:00
Max Brunsfeld
59adcc1744
Load more notifications when scrolling down
2023-10-22 17:10:21 +02:00
Max Brunsfeld
c66385f0f9
Add an empty state to the notification panel
2023-10-16 12:54:44 -07:00
Julia and Antonio Scandurra
801af95a13
Make completion documentation scroll & fix accompanying panic from tag
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-10-10 10:08:29 -04:00
Nathan Sobo
e0fdc7d0aa
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
a24d94cfda
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
ebf8b32811
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
53a50b8df4
Move refreshing to window
2023-09-08 13:27:29 -06:00
Nathan Sobo
5a778fbde6
Checkpoint
2023-09-06 14:16:15 -06:00
Nathan Sobo
48d3e2d9b9
Move views_to_notify_if_ancestors_change to Window
2023-08-29 21:58:44 -06:00
Nathan Sobo
2e7356a53e
Store new_parents on Window instead of layout context
2023-08-29 21:43:48 -06:00
Max Brunsfeld
9521f6da42
Simplify implementation of flex with spacing
2023-08-28 14:16:21 -07:00
Mikayla
707ca34f19
Merge branch 'main' into disclosable-component
2023-08-23 16:30:27 -07:00