diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-05 20:18:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-05 20:19:13 +0300 |
| commit | 220b99a9fabf10fad83a570f641ad39737d85875 (patch) | |
| tree | a27a3b791f110d091ca6ef9b194bb6c1fb4e2b55 /src/app/input | |
| parent | 2bc1724c2dae72184a5d2ec070e30c70dc519f9b (diff) | |
fix: support custom command keybindings on windows
refs #1041
Diffstat (limited to 'src/app/input')
| -rw-r--r-- | src/app/input/navigate.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/input/navigate.rs b/src/app/input/navigate.rs index b278daac..f4719ace 100644 --- a/src/app/input/navigate.rs +++ b/src/app/input/navigate.rs @@ -1,7 +1,7 @@ use std::{ fs, io, io::Write, - process::{Command, Stdio}, + process::Stdio, time::{SystemTime, UNIX_EPOCH}, }; @@ -771,10 +771,8 @@ impl App { &self, binding: &crate::config::CustomCommandKeybind, ) -> std::io::Result<()> { - let mut command = Command::new("/bin/sh"); + let mut command = crate::platform::detached_custom_command_process(&binding.command); command - .arg("-lc") - .arg(&binding.command) .stdin(Stdio::null()) .stdout(Stdio::null()) .stderr(Stdio::null()); |
