Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

Settings.fetch_hook/2

Looks up a built-in hook by exact name.

Source and package
Qualified name
LibTmux.Settings.fetch_hook/2
Module
LibTmux
Declared in
Settings
Package
libtmux
Source
lib/libtmux/settings.ex
fetch_hook(name, release \\ "3.8") @spec fetch_hook(String.t(), String.t()) :: {:ok, hook()} | {:error, LibTmux.Error.t()}
Parameters

Examples

iex> alias LibTmux.Settings
iex> {:ok, hook} = Settings.fetch_hook("pane-died", "3.8")
iex> {hook.scopes, hook.kind}
{[:window, :pane], :event}

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Settings.fetch_hook/2.

Esc
Search in

Type to search.

Reference previewOpen reference