aboutsummaryrefslogtreecommitdiff
path: root/src/app/input
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-05 20:18:24 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-05 20:19:13 +0300
commit220b99a9fabf10fad83a570f641ad39737d85875 (patch)
treea27a3b791f110d091ca6ef9b194bb6c1fb4e2b55 /src/app/input
parent2bc1724c2dae72184a5d2ec070e30c70dc519f9b (diff)
fix: support custom command keybindings on windows
refs #1041
Diffstat (limited to 'src/app/input')
-rw-r--r--src/app/input/navigate.rs6
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());