Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux stable

_format_query

Render a QueryList.get lookup back as key=value text.

Source and package
Qualified name
libtmux.exc._format_query
Module
libtmux.exc
Package
libtmux
Source
src/libtmux/exc.py
_format_query (query: t.Mapping[str, t.Any]) → str

Examples#

>>> from libtmux.exc import _format_query
>>> _format_query({"pane_id": "%0"})
"pane_id='%0'"
>>> _format_query({"window_name": "shared", "window_index": "1"})
"window_name='shared', window_index='1'"
>>> _format_query({})
''
Parameters
Esc

Type to search.

Reference preview Open reference