From f5066f9e07e1d4b89c5adc32fc2526905839bb29 Mon Sep 17 00:00:00 2001 From: Peter Simonsson Date: Mon, 14 Oct 2024 07:17:31 +0200 Subject: [PATCH] Use window ID in windows command to make preview work (#127) --- src/cli.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index f99302d..520a4e2 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -291,10 +291,7 @@ fn switch_command(config: Config, tmux: &Tmux) -> Result<()> { } fn windows_command(config: &Config, tmux: &Tmux) -> Result<()> { - let windows = tmux.list_windows( - "'#{?window_attached,,#{window_index} #{window_name}}'", - None, - ); + let windows = tmux.list_windows("'#{?window_attached,,#{window_id} #{window_name}}'", None); let windows: Vec = windows .replace('\'', "")