WindowSelection.grep
grep($callback) returns a new same-class selection. Invoke the callback in scalar context with exactly one entity argument and a localized $_. Both bindings hold copies of the reference: assignment cannot replace a source slot. Restore $_ and propagate the original thrown value even on failure. Predicates must not edit the traversed sequence.
Source and package
- Qualified name
-
LibTmux:: Window Selection:: grep - Module
- LibTmux
- Declared in
WindowSelection- Package
- LibTmux
- Source
- packages/core/lib/LibTmux/Selection.pm
-
Inherited from
LibTmux::SelectionMethods#