|
2 | 2 |
|
3 | 3 | <pre align="center"> <a href="https://github.com/2bitbit/trash4wsl-in-vscode/blob/main/README.md">简体中文</a> | English</pre> |
4 | 4 |
|
5 | | -In VSCode WSL (or other remote connections), no more worries about permanent file deletion without regret. Now enjoy a charming recycle bin (based on trash-cli implementation). |
| 5 | +In VSCode WSL (or other remote connections), no more worries about permanent file deletion without regret. Now enjoy a charming, lightning-fast native recycle bin (Powered by Rust & NAPI-RS - no dependencies required). |
6 | 6 |
|
7 | 7 | <img src="../trash4wsl-demo.gif" alt="demo" width="500" height="auto"> |
8 | 8 |
|
9 | | -## Features |
10 | | -- Support for multi-root workspaces |
11 | | -- Support for delete, search, restore, and empty operations |
12 | | -- Support for WSL and other remote connections |
13 | | -- Support for shortcuts (default: `delete` to delete selected files, `ctrl+shift+delete` to open trash panel) |
14 | | -- Clean and simple GUI |
| 9 | +## Features (v2.0 Native Edition) |
| 10 | +- **Zero Dependencies**: Completely rewrote the backend in Rust via NAPI-RS. Say goodbye to the Python `trash-cli` dependency! It works out-of-the-box natively. |
| 11 | +- **Granular Multi-root Workspace Support**: Workspace-aware listing and purging, preventing accidental deletion of files outside your active projects. |
| 12 | +- **Safe Execution Environment**: Direct fs manipulations, fully immune to shell command injections. |
| 13 | +- **Classic VSCode UI Integration**: Search, filter, and restore files instantly using the lightweight QuickPick floating menu. |
| 14 | +- **Shortcut Support**: Use the standard `delete` key in the explorer to safely move items to the trash, or `ctrl+shift+delete` to open the interactive panel. |
15 | 15 |
|
16 | 16 | ## How to Use |
17 | | -1. Install trash-cli in the target environment terminal: `apt install trash-cli` |
18 | | -2. Search for `trash4wsl-in-vscode` in VSCode Marketplace and install this extension to your workspace |
19 | | -3. Select files, right-click and choose `trash-put (via trash-cli)` or use the shortcut `delete` to delete selected files |
20 | | -4. Use `ctrl+shift+p` or the shortcut `ctrl+shift+delete` to open the trash panel for related operations |
| 17 | +1. Search for `trash4wsl-in-vscode` in VSCode Marketplace and install this extension to your workspace. (No extra dependencies needed!) |
| 18 | +2. Select files, right-click and choose `Trash` or use the shortcut `delete` to safely move selected files to the recycle bin. |
| 19 | +3. Use `ctrl+shift+p` and type "Browse Trash" or use the shortcut `ctrl+shift+delete` to open the interactive trash panel for restorations. |
21 | 20 |
|
22 | | ->Tip: The default trash directory is located at `~/.local/share/Trash/files`. |
| 21 | +>Tip: The default linux trash directory conforms to the FreeDesktop specification: `~/.local/share/Trash/files`. |
23 | 22 |
|
24 | | -## Dependencies |
25 | | -- trash-cli |
26 | | -- VSCode |
27 | | - |
28 | | - |
29 | | -If this extension is helpful to you, please give it a star on GitHub! Your support means a lot to me. ⭐ |
30 | | -<p align="center"><strong>Enjoy! Wishing you good morning, good afternoon, and good night</strong></p> |
31 | | -<p align="center">Co-build with <strong>AI</strong></p> |
| 23 | +## Enjoy! |
| 24 | +If this extension is helpful to you, please consider giving it a star on GitHub! Your support means a lot. ⭐ |
| 25 | +<p align="center">Co-built with <strong>AI</strong></p> |
0 commit comments