Snapshot.session_by_id
session_by_id('$1') returns a LibTmux::Session or undef. Single quotes preserve the dollar-prefixed ID instead of interpolating a regex capture.
Source and package
- Qualified name
-
LibTmux:: Snapshot:: session _by _id - Module
- LibTmux
- Declared in
Snapshot- Package
- LibTmux
- Source
- packages/core/lib/LibTmux/Snapshot.pm
- Other languages
- Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript RustGo Java C#C++ Swift Kotlin Scala OCamlfunction F# Clojure
-
Methods#
In other ports#
Look one session up by target
| Language | Equivalent |
|---|---|
| Python | no equivalent on Server |
| Ruby | Lib |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Server |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| Swift | no equivalent on Server |
| OCaml | Libtmux Exact opaque-ID lookup in an existing snapshot, without I/O or tmux target expansion. |
No equivalent is recorded in Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.