Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

fix build error

Kay Simmons2c9199fd3283
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs
index c0e0b067c44..60adadb96cf 100644
--- a/crates/gpui/src/app.rs
+++ b/crates/gpui/src/app.rs
@@ -1219,7 +1219,7 @@ impl MutableAppContext {
.bindings_for_action_type(action.as_any().type_id())
.find_map(|b| {
if b.match_context(&contexts) {
- b.keystrokes().map(|s| s.into())
+ Some(b.keystrokes().into())
} else {
None
}
diff --git a/crates/pando/Cargo.toml b/crates/pando/Cargo.toml
new file mode 100644
index 00000000000..8521c4fd818
--- /dev/null
+++ b/crates/pando/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "pando"
+version = "0.1.0"
+edition = "2021"
+publish = false
+
+[lib]
+path = "src/pando.rs"
+
+[features]
+test-support = []
+
+[dependencies]
+anyhow = "1.0.38"
+client = { path = "../client" }
+gpui = { path = "../gpui" }
+settings = { path = "../settings" }
+theme = { path = "../theme" }
+workspace = { path = "../workspace" }
+sqlez = { path = "../sqlez" }
+sqlez_macros = { path = "../sqlez_macros" }
\ No newline at end of file
diff --git a/crates/pando/src/file_format.rs b/crates/pando/src/file_format.rs
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/crates/pando/src/pando.rs b/crates/pando/src/pando.rs
new file mode 100644
index 00000000000..e75f8437202
--- /dev/null
+++ b/crates/pando/src/pando.rs
@@ -0,0 +1,15 @@
+//! ## Goals
+//! - Opinionated Subset of Obsidian. Only the things that cant be done other ways in zed
+//! - Checked in .zp file is an sqlite db containing graph metadata
+//! - All nodes are file urls
+//! - Markdown links auto add soft linked nodes to the db
+//! - Links create positioning data regardless of if theres a file
+//! - Lock links to make structure that doesn't rotate or spread
+//! - Drag from file finder to pando item to add it in
+//! - For linked files, zoom out to see closest linking pando file
+
+//! ## Plan
+//! - [ ] Make item backed by .zp sqlite file with camera position by user account
+//! - [ ] Render grid of dots and allow scrolling around the grid
+//! - [ ] Add scale property to layer canvas and manipulate it with pinch zooming
+//! - [ ] Allow dropping files onto .zp pane. Their relative path is recorded into the file along with