zed/assets/keymaps
Mikayla Maki d2569afe66
Switch from delete file by default to trash file by default (#10875)
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",
    }
  }
]
2024-04-26 17:43:50 -07:00
..
atom.json Format JSON files in assets/ (#8405) 2024-02-25 14:11:38 -05:00
default-linux.json Switch from delete file by default to trash file by default (#10875) 2024-04-26 17:43:50 -07:00
default-macos.json Switch from delete file by default to trash file by default (#10875) 2024-04-26 17:43:50 -07:00
jetbrains.json Split DuplicateLine into DuplicateLineUp and DuplicateLineDown (#9715) 2024-03-28 12:52:08 +02:00
storybook.json storybook: Fix Backspace in Auto Height Editor and Picker stories (#11011) 2024-04-25 17:37:47 -04:00
sublime_text.json fix default keybindings for select all matches 2023-09-20 17:14:19 -07:00
textmate.json Split DuplicateLine into DuplicateLineUp and DuplicateLineDown (#9715) 2024-03-28 12:52:08 +02:00
vim.json vim: add keybinding to jump to parent directory in project panel (#11078) 2024-04-26 18:22:15 -06:00