ZIm/crates/project/src
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
..
connection_manager.rs WIP: remoting (#10085) 2024-04-11 15:36:35 -06:00
debounced_delay.rs Add debounce for re-querying completion documentation 2024-01-31 09:50:26 -05:00
lsp_command.rs Respect language server's capabilities when calling GetReferences (#10285) 2024-04-08 13:38:32 -04:00
lsp_ext_command.rs text: Wrap BufferId into a newtype 2024-01-29 20:00:47 +01:00
prettier_support.rs Improve handling of prettier errors on format (#10156) 2024-04-04 11:41:55 +02:00
project.rs Switch from delete file by default to trash file by default (#10875) 2024-04-26 17:43:50 -07:00
project_settings.rs Add minimum column option to git inline blame (#10682) 2024-04-18 11:28:47 +02:00
project_tests.rs new path picker (#11015) 2024-04-26 13:25:25 -06:00
search.rs Support newline and tab literals in regex search-and-replace operations (#9609) 2024-03-25 12:21:04 +01:00
search_history.rs project search: Persist search history across session (#9932) 2024-04-02 11:13:18 +02:00
task_inventory.rs Filter out other languages' tasks from the task modal (#10839) 2024-04-22 12:36:26 +03:00
terminals.rs Properly pass nested script arguments for tasks (#10776) 2024-04-19 16:24:35 +03:00