Rework file picker for SSH modal (#19020)

This PR changes the SSH modal design so its more keyboard
navigation-friendly and adds the server nickname feature.

Release Notes:

- N/A

---------

Co-authored-by: Danilo <danilo@zed.dev>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
This commit is contained in:
Piotr Osiewicz 2024-10-15 12:38:03 +02:00 committed by GitHub
parent be7b24fcf7
commit db7417f3b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 871 additions and 491 deletions

View file

@ -4905,6 +4905,12 @@ impl From<(&'static str, usize)> for ElementId {
}
}
impl From<(SharedString, usize)> for ElementId {
fn from((name, id): (SharedString, usize)) -> Self {
ElementId::NamedInteger(name, id)
}
}
impl From<(&'static str, u64)> for ElementId {
fn from((name, id): (&'static str, u64)) -> Self {
ElementId::NamedInteger(name.into(), id as usize)