# LibTmux.ReleaseMap

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/ce52194a746ce1d6785c352a731cff734e0d11ce/lib/libtmux/release_map.ex#L1
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-releasemap/

Looks up native tmux names and flags in the source of exact upstream releases.

Use `releases/1` to choose between releases and `lookup/2` to inspect a
definition. A feature listed at 3.3 can predate the library's floor. The
map keeps removals and flag argument changes between tagged releases.

A definition identifies a source file and commit. For a format,
`:availability` distinguishes the native format table from a literal name
a command or mode adds to its own context. A name that only the native
manual lists has availability `:documented`. `:build_conditions` records
source guards on settings and in static format callbacks. For example,
the value of [`sixel_support`](/en/tmux/latest/catalog/formats/sixel_support/) depends on the daemon's build. User formats,
computed names absent from the manual and configurable command aliases depend
on the caller or daemon.

These pure functions read compiled data. Check a live daemon separately
when a decision depends on its build, configuration or runtime state.

## Examples

```elixir
iex> LibTmux.ReleaseMap.releases({:command, "new-pane"})
{:ok, ["3.7", "3.7a", "3.7b", "3.7c", "3.8"]}
iex> {:ok, flag} = LibTmux.ReleaseMap.lookup("3.8", {:flag, "resize-pane", "-D"})
iex> {flag.source, flag.argument}
{"cmd-resize-pane.c", :optional}
```

## Members

### Other members

- [`definition/0`](/en/elixir/latest/reference/libtmux-releasemap-definition-0/) (typealias): A named declaration in one exact release and its upstream source commit.
- [`lookup/2`](/en/elixir/latest/reference/libtmux-releasemap-lookup-2/) (function): Looks up a command, flag, option, hook or format in one tagged release.
- [`reason/0`](/en/elixir/latest/reference/libtmux-releasemap-reason-0/) (typealias): A missing release, an unlisted name or flag, or malformed query input.
- [`releases/0`](/en/elixir/latest/reference/libtmux-releasemap-releases-0/) (function): Lists the source releases in chronological order, including lettered patch releases.
- [`releases/1`](/en/elixir/latest/reference/libtmux-releasemap-releases-1/) (function): Lists every indexed release that declares the subject.
- [`subject/0`](/en/elixir/latest/reference/libtmux-releasemap-subject-0/) (typealias): A native name, or a short flag scoped to one native command.
