Log command that is run
This commit is contained in:
parent
11ad0b5793
commit
2d20b5d850
1 changed files with 13 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue