Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
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

_resolve_subcommand

Resolve token by canonical name, exact alias, or unambiguous prefix.

Source and package
Qualified name
libtmux._internal.log_context._resolve_subcommand
Module
libtmux._internal.log_context
Package
libtmux
Source
src/libtmux/_internal/log_context.py
_resolve_subcommand (token: str) → _SubcommandSpec | None
Parameters

Examples

>>> _resolve_subcommand("neww").canonical
'new-window'
>>> _resolve_subcommand("new").canonical
'new-session'
>>> _resolve_subcommand("new-") is None
True
>>> _resolve_subcommand("display-m") is None
True
>>> _resolve_subcommand("display-men").canonical
'display-menu'
>>> _resolve_subcommand("display-pa").canonical
'display-panes'
>>> _resolve_subcommand("choose-t").canonical
'choose-tree'

Recorded calls

source calls
No call edges in the Python model.

The Python 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._internal.log_context._resolve_subcommand.

Esc
Search in

Type to search.

Reference previewOpen reference