mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 05:33:49 +00:00
fix build error
This commit is contained in:
parent
327932ba3b
commit
2c9199fd32
4 changed files with 37 additions and 1 deletions
|
@ -1219,7 +1219,7 @@ impl MutableAppContext {
|
||||||
.bindings_for_action_type(action.as_any().type_id())
|
.bindings_for_action_type(action.as_any().type_id())
|
||||||
.find_map(|b| {
|
.find_map(|b| {
|
||||||
if b.match_context(&contexts) {
|
if b.match_context(&contexts) {
|
||||||
b.keystrokes().map(|s| s.into())
|
Some(b.keystrokes().into())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
21
crates/pando/Cargo.toml
Normal file
21
crates/pando/Cargo.toml
Normal file
|
@ -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" }
|
0
crates/pando/src/file_format.rs
Normal file
0
crates/pando/src/file_format.rs
Normal file
15
crates/pando/src/pando.rs
Normal file
15
crates/pando/src/pando.rs
Normal file
|
@ -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
|
Loading…
Reference in a new issue