From f7ad385df71a4fe00591d0190c49b9bf232eef7a Mon Sep 17 00:00:00 2001 From: SBhojani <1684388+SBhojani@users.noreply.github.com> Date: Sat, 6 Jul 2024 03:18:17 +0500 Subject: [PATCH] Gtrash support. (#545) --- docs/configuration/keymap.toml.md | 1 + src/io/io_worker.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/configuration/keymap.toml.md b/docs/configuration/keymap.toml.md index 55aba2e62..807dd3577 100644 --- a/docs/configuration/keymap.toml.md +++ b/docs/configuration/keymap.toml.md @@ -293,6 +293,7 @@ All methods (except `reverse`) support the `--reverse` flag: - `gio trash` - `trash-put`: https://github.com/andreafrancia/trash-cli - `trash` + - `gtrash put` ### `rename`: rename the current file the cursor is on diff --git a/src/io/io_worker.rs b/src/io/io_worker.rs index 189e9fcfe..88dae960a 100644 --- a/src/io/io_worker.rs +++ b/src/io/io_worker.rs @@ -366,6 +366,7 @@ where ("gio trash", format!("gio trash -- '{}'", file_path_str)), ("trash-put", format!("trash-put '{}'", file_path_str)), ("trash", format!("trash '{}'", file_path_str)), + ("gtrash put", format!("gtrash put -- '{}'", file_path_str)), ]; for (_, cmd) in clipboards.iter() {