diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index c0e0b067c443f0d8b3968eafd564fad5d1cf883e..60adadb96cfec3572f5dfec7d20e0cb4ef6f3a98 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 0000000000000000000000000000000000000000..8521c4fd818e4a09425095c09352b6a7134bdb6e --- /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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/crates/pando/src/pando.rs b/crates/pando/src/pando.rs new file mode 100644 index 0000000000000000000000000000000000000000..e75f84372024a32b62059bf37fe53f19cc7cf2bf --- /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