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.

Python API

method libtmux stable

Server.load_buffer

Load a file into a paste buffer via $ tmux load-buffer.

Source and package
Qualified name
libtmux.Server.load_buffer
Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
PowerShell Julia Ruby Lua TypeScript Rust Go Java C#C++Swift Kotlin Scala F#
load_buffer ( self, path: StrPath, buffer_name: str | None = None ) → None

Examples#

>>> import pathlib
>>> path = pathlib.Path(request.config.rootdir) / '..' / 'tmp_load.txt'
>>> _ = path.write_text('loaded')
>>> server.load_buffer(str(path), buffer_name='loaded_buf')
Parameters

tmux command load-buffer

In other ports Fill a paste buffer from a file
Esc

Type to search.

Reference preview Open reference