Update gpui-native-kit and adapt tree row clicks
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Rust / build (macos-latest, stable) (pull_request) Canceled after 0s
Rust / build (ubuntu-latest, stable) (pull_request) Canceled after 0s
Rust / build (windows-latest, stable) (pull_request) Canceled after 0s
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Rust / build (macos-latest, stable) (pull_request) Canceled after 0s
Rust / build (ubuntu-latest, stable) (pull_request) Canceled after 0s
Rust / build (windows-latest, stable) (pull_request) Canceled after 0s
- Adopt tree guides, row-click toggles, and branch arrow navigation. - Stop toggling folders twice now that Tree handles row clicks.
This commit is contained in:
Generated
+8
-8
@@ -3059,7 +3059,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-core"
|
name = "gpui-native-core"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cpal",
|
"cpal",
|
||||||
"flume 0.12.0",
|
"flume 0.12.0",
|
||||||
@@ -3075,7 +3075,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-data"
|
name = "gpui-native-data"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gpui",
|
"gpui",
|
||||||
"gpui-native-core",
|
"gpui-native-core",
|
||||||
@@ -3087,7 +3087,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-editor"
|
name = "gpui-native-editor"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gpui",
|
"gpui",
|
||||||
"gpui-native-core",
|
"gpui-native-core",
|
||||||
@@ -3106,7 +3106,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-icons"
|
name = "gpui-native-icons"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"gpui",
|
"gpui",
|
||||||
@@ -3115,7 +3115,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-kit"
|
name = "gpui-native-kit"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gpui",
|
"gpui",
|
||||||
"gpui-native-core",
|
"gpui-native-core",
|
||||||
@@ -3129,7 +3129,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-layout"
|
name = "gpui-native-layout"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gpui",
|
"gpui",
|
||||||
"gpui-native-core",
|
"gpui-native-core",
|
||||||
@@ -3141,7 +3141,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-theme"
|
name = "gpui-native-theme"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-channel",
|
"async-channel",
|
||||||
@@ -3162,7 +3162,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "gpui-native-utils"
|
name = "gpui-native-utils"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=daca373f77b49277835c1b17d1b9f81cb4c8f48e#daca373f77b49277835c1b17d1b9f81cb4c8f48e"
|
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=d1a79fb9af4c6532166c5d28e9f493efa6d97b18#d1a79fb9af4c6532166c5d28e9f493efa6d97b18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gpui",
|
"gpui",
|
||||||
"gpui-native-theme",
|
"gpui-native-theme",
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ gpui = { git = "https://github.com/zed-industries/zed", rev = "f8cfc7ed9e57503de
|
|||||||
gpui_platform = { git = "https://github.com/zed-industries/zed", rev = "f8cfc7ed9e57503def9479138894f3139f5400cc", features = ["font-kit"] }
|
gpui_platform = { git = "https://github.com/zed-industries/zed", rev = "f8cfc7ed9e57503def9479138894f3139f5400cc", features = ["font-kit"] }
|
||||||
reqwest_client = { git = "https://github.com/zed-industries/zed", rev = "f8cfc7ed9e57503def9479138894f3139f5400cc" }
|
reqwest_client = { git = "https://github.com/zed-industries/zed", rev = "f8cfc7ed9e57503def9479138894f3139f5400cc" }
|
||||||
|
|
||||||
gpui-native-kit = { git = "https://git.reya.info/reya/gpui-native-kit", rev = "daca373f77b49277835c1b17d1b9f81cb4c8f48e", features = ["layout", "editor"] }
|
gpui-native-kit = { git = "https://git.reya.info/reya/gpui-native-kit", rev = "d1a79fb9af4c6532166c5d28e9f493efa6d97b18", features = ["layout", "editor"] }
|
||||||
|
|
||||||
settings = { path = "crates/settings" }
|
settings = { path = "crates/settings" }
|
||||||
signed_app = { path = "crates/signed_app" }
|
signed_app = { path = "crates/signed_app" }
|
||||||
|
|||||||
@@ -239,9 +239,8 @@ impl RepoFilesView {
|
|||||||
|
|
||||||
self.selected_index = Some(index);
|
self.selected_index = Some(index);
|
||||||
|
|
||||||
if expandable {
|
// Folder disclosure now toggles from the tree's row click handler.
|
||||||
self.toggle_folder(&id);
|
if !expandable {
|
||||||
} else {
|
|
||||||
self.open_file(&id, window, cx);
|
self.open_file(&id, window, cx);
|
||||||
}
|
}
|
||||||
cx.emit(RepoFilesEvent::Activated);
|
cx.emit(RepoFilesEvent::Activated);
|
||||||
|
|||||||
Reference in New Issue
Block a user