Skip to content

Commit 2f3044a

Browse files
authored
command palette2 (#3296)
Still to do: - [ ] Figure out why `ctrl-g` `ctrl-g` doesn't dismiss GoToLine (but `cmd-shift-p` `cmd-shift-p` does dismiss Command). Likely to do with the "Editor" context in the keymap, but this did used to work in gpui1. - [ ] Fix first render with incorrect matches immediately flashes. - [ ] Show keybindings - [x] Figure out why `cmd-shift-p "go to line" enter` panics - [ ] Fix the selected visuals - [ ] Party hard - [ ] Uncomment the tests
2 parents cb8c534 + cc9fb9d commit 2f3044a

File tree

18 files changed

+1170
-322
lines changed

18 files changed

+1170
-322
lines changed

Cargo.lock

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ members = [
2020
"crates/collab_ui",
2121
"crates/collections",
2222
"crates/command_palette",
23+
"crates/command_palette2",
2324
"crates/component_test",
2425
"crates/context_menu",
2526
"crates/copilot",
@@ -110,7 +111,8 @@ members = [
110111
"crates/xtask",
111112
"crates/zed",
112113
"crates/zed2",
113-
"crates/zed-actions"
114+
"crates/zed-actions",
115+
"crates/zed_actions2"
114116
]
115117
default-members = ["crates/zed"]
116118
resolver = "2"

crates/command_palette2/Cargo.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[package]
2+
name = "command_palette2"
3+
version = "0.1.0"
4+
edition = "2021"
5+
publish = false
6+
7+
[lib]
8+
path = "src/command_palette.rs"
9+
doctest = false
10+
11+
[dependencies]
12+
collections = { path = "../collections" }
13+
editor = { package = "editor2", path = "../editor2" }
14+
fuzzy = { package = "fuzzy2", path = "../fuzzy2" }
15+
gpui = { package = "gpui2", path = "../gpui2" }
16+
picker = { package = "picker2", path = "../picker2" }
17+
project = { package = "project2", path = "../project2" }
18+
settings = { package = "settings2", path = "../settings2" }
19+
ui = { package = "ui2", path = "../ui2" }
20+
util = { path = "../util" }
21+
theme = { package = "theme2", path = "../theme2" }
22+
workspace = { package="workspace2", path = "../workspace2" }
23+
zed_actions = { package = "zed_actions2", path = "../zed_actions2" }
24+
anyhow.workspace = true
25+
serde.workspace = true
26+
[dev-dependencies]
27+
gpui = { package = "gpui2", path = "../gpui2", features = ["test-support"] }
28+
editor = { package = "editor2", path = "../editor2", features = ["test-support"] }
29+
language = { package="language2", path = "../language2", features = ["test-support"] }
30+
project = { package="project2", path = "../project2", features = ["test-support"] }
31+
serde_json.workspace = true
32+
workspace = { package="workspace2", path = "../workspace2", features = ["test-support"] }
33+
ctor.workspace = true
34+
env_logger.workspace = true

0 commit comments

Comments
 (0)