zed/assets
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
..
contexts Fix annoying system prompt 2023-05-29 21:47:59 -06:00
fonts Remove unused font 2024-01-24 13:14:47 +01:00
icons remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
keymaps Switch from delete file by default to trash file by default (#10875) 2024-04-26 17:43:50 -07:00
settings Scrollbar markers for cursors (#10816) 2024-04-27 02:26:42 +03:00
sounds Update collaboration sounds, add sounds to screensharing 2023-07-04 16:18:42 -04:00
themes Use ignored color from theme for items ignored by Git (#10038) 2024-04-01 11:34:49 -04:00