diff --git a/modules/parallax/lib/core/projection-shell.zsh b/modules/parallax/lib/core/projection-shell.zsh index 93f50a2..de199fc 100755 --- a/modules/parallax/lib/core/projection-shell.zsh +++ b/modules/parallax/lib/core/projection-shell.zsh @@ -97,12 +97,7 @@ px-target() { mind_file="$sessions_dir/$target_mind.mind" else # Search by NAME: field - for f in "$sessions_dir"/*.mind(N); do - if grep -q "NAME: $target_mind" "$f"; then - mind_file="$f" - break - fi - done + mind_file=$(grep -l "NAME: $target_mind" "$sessions_dir"/*.mind(N) /dev/null | head -n 1) fi else # Auto-pick the only active mind (if only one)