Log command that is run

This commit is contained in:
Michael Sloan 2025-08-19 15:53:09 -06:00
parent 11ad0b5793
commit 2d20b5d850
No known key found for this signature in database

View file

@ -807,14 +807,21 @@ pub fn main() {
};
loop {
let cursor_position_arg = format!(
"{}:{}:{}",
cursor.path.display(),
cursor.point.row + 1,
cursor.point.column + 1
);
log::info!(
"Running {} {} {}",
selection_change_command,
cursor.worktree_path.display(),
cursor_position_arg
);
let status = smol::process::Command::new(&selection_change_command)
.arg(cursor.worktree_path.as_ref())
.arg(format!(
"{}:{}:{}",
cursor.path.display(),
cursor.point.row + 1,
cursor.point.column + 1
))
.arg(cursor_position_arg)
.status()
.await;
match status {