Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

method libtmux-perl latest

SessionSelection.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::SessionSelection::grep
Module
LibTmux
Declared in
SessionSelection
Package
LibTmux
Source
packages/core/lib/LibTmux/Selection.pm
sub grep($self, $callback)

Inherited from LibTmux::Selection

Methods#

Parameters
Esc

Type to search.

Reference previewOpen reference