From 220b99a9fabf10fad83a570f641ad39737d85875 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 5 Jul 2026 20:18:24 +0300 Subject: fix: support custom command keybindings on windows refs #1041 --- src/app/input/navigate.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/app/input') 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()); -- cgit v1.2.3