diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-03-21 20:19:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-21 20:19:37 +0100 |
| commit | a6a6440614efb1cddbc51f01633787cdd117056c (patch) | |
| tree | 00c1ba33ffe48afc22269a2f2575cc5bc95aafb5 /default-plugins | |
| parent | Add windows support in strider (#4854) (diff) | |
| download | sl0ppij-a6a6440614efb1cddbc51f01633787cdd117056c.tar.gz sl0ppij-a6a6440614efb1cddbc51f01633787cdd117056c.tar.xz sl0ppij-a6a6440614efb1cddbc51f01633787cdd117056c.zip | |
Fix cli blocking logic and update dependencies (#4881)
* fix: do not unblock blocking commands for other unblock conditions
* update deps
* allow trailing : in file path detection and change log format to match
Diffstat (limited to 'default-plugins')
| -rw-r--r-- | default-plugins/link/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/default-plugins/link/src/main.rs b/default-plugins/link/src/main.rs index f27076b5..ed25aab1 100644 --- a/default-plugins/link/src/main.rs +++ b/default-plugins/link/src/main.rs @@ -2,7 +2,7 @@ use std::collections::{BTreeMap, HashMap, HashSet}; use std::path::{Path, PathBuf}; use zellij_tile::prelude::*; -const FILE_PATH_REGEX: &str = r#"(?:^|\s)((?:(?:\./|\.\./|/)[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+|~/[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+|\$\{?[A-Za-z_][A-Za-z0-9_]*\}?/[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+)(?::\d+(?::\d+)?)?)(?:\s|$)"#; +const FILE_PATH_REGEX: &str = r#"(?:^|\s)((?:(?:\./|\.\./|/)[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+|~/[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+|\$\{?[A-Za-z_][A-Za-z0-9_]*\}?/[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]+)(?::\d+(?::\d+)?)?)(?::|\s|$)"#; const CWD_CONTEXT_KEY: &str = "cwd"; @@ -189,7 +189,7 @@ impl State { for entry_name in entries { let path_chars = r#"[A-Za-z0-9_./\-+@%,#=~!\$\{\}\[\]]"#; let pattern = format!( - "(?:^|\\s)({}(?:/{path_chars}+)?(?::\\d+(?::\\d+)?)?)(?:\\s|$)", + "(?:^|\\s)({}(?:/{path_chars}+)?(?::\\d+(?::\\d+)?)?)(?::|\\s|$)", regex_escape(entry_name), ); highlights.push(RegexHighlight { |
