From cf009d36102ceadf7011b5bd3a9cdf216326463c Mon Sep 17 00:00:00 2001 From: Ferran Basora Date: Fri, 4 Sep 2020 12:49:32 +0000 Subject: [PATCH 1/2] Fix tmux configuration for swapper module --- src/swapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swapper.rs b/src/swapper.rs index a7ef585..1d332ca 100644 --- a/src/swapper.rs +++ b/src/swapper.rs @@ -136,7 +136,7 @@ impl<'a> Swapper<'a> { let options = self.executor.execute(params); let lines: Vec<&str> = options.split('\n').collect(); - let pattern = Regex::new(r#"@thumbs-([\w\-0-9]+) "?(\w+)"?"#).unwrap(); + let pattern = Regex::new(r#"^@thumbs-([\w\-0-9]+) "(.+)"$"#).unwrap(); let args = lines .iter() From 294da9073b5d4f76168333102676d716e57b8f98 Mon Sep 17 00:00:00 2001 From: Ferran Basora Date: Fri, 4 Sep 2020 16:18:12 +0000 Subject: [PATCH 2/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bc17ba..8453c0d 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ more with `--regexp` parameter. ## Prerequisites -`tmux-thums` is written in Rust. You will need `rustc` version 1.35.0 or higher. The +`tmux-thumbs` is written in Rust. You will need `rustc` version 1.35.0 or higher. The recommended way to install Rust is from the official [download page](https://rustup.rs/). ## Tmux integration