mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
d2569afe66
TODO: - [x] Don't immediately seg fault - [x] Implement for directories - [x] Add cmd-delete to remove files - [ ] ~~Add setting for trash vs. delete~~ You can just use keybindings to change the behavior. fixes https://github.com/zed-industries/zed/issues/7228 fixes https://github.com/zed-industries/zed/issues/5094 Release Notes: - Added a new `project_panel::Trash` action and changed the default behavior for `backspace` and `delete` in the project panel to send a file to the systems trash, instead of permanently deleting it ([#7228](https://github.com/zed-industries/zed/issues/7228), [#5094](https://github.com/zed-industries/zed/issues/5094)). The original behavior can be restored by adding the following section to your keybindings: ```json5 [ // ...Other keybindings... { "context": "ProjectPanel", "bindings": { "backspace": "project_panel::Delete", "delete": "project_panel::Delete", } } ]
54 lines
1.0 KiB
TOML
54 lines
1.0 KiB
TOML
[package]
|
|
name = "fs"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/fs.rs"
|
|
|
|
[dependencies]
|
|
collections.workspace = true
|
|
rope.workspace = true
|
|
text.workspace = true
|
|
util.workspace = true
|
|
|
|
anyhow.workspace = true
|
|
async-tar.workspace = true
|
|
async-trait.workspace = true
|
|
futures.workspace = true
|
|
tempfile.workspace = true
|
|
lazy_static.workspace = true
|
|
parking_lot.workspace = true
|
|
smol.workspace = true
|
|
git.workspace = true
|
|
git2.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
libc = "0.2"
|
|
time.workspace = true
|
|
|
|
gpui = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
fsevent.workspace = true
|
|
objc = "0.2"
|
|
cocoa = "0.25"
|
|
|
|
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
notify = "6.1.1"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows.workspace = true
|
|
|
|
[dev-dependencies]
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
|
|
[features]
|
|
test-support = ["gpui/test-support", "git/test-support"]
|