From 2c9199fd3283c4b839c928567824fa30ca64f2d3 Mon Sep 17 00:00:00 2001 From: Kay Simmons Date: Mon, 13 Feb 2023 14:12:43 -0800 Subject: [PATCH] fix build error --- crates/gpui/src/app.rs | 2 +- crates/pando/Cargo.toml | 21 +++++++++++++++++++++ crates/pando/src/file_format.rs | 0 crates/pando/src/pando.rs | 15 +++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 crates/pando/Cargo.toml create mode 100644 crates/pando/src/file_format.rs create mode 100644 crates/pando/src/pando.rs diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index c0e0b067c4..60adadb96c 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 0000000000..8521c4fd81 --- /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 0000000000..e69de29bb2 diff --git a/crates/pando/src/pando.rs b/crates/pando/src/pando.rs new file mode 100644 index 0000000000..e75f843720 --- /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