Workspace ManagerconceptAPI 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

Concept example A working example of the core library. It can change without notice. What concept means

config.Workspace.from_yaml_strict

This type appears in public signatures. It is not a package entry point.

pub fn from_yaml_strict(source: &str) -> Result< Self, ConfigError >
Errors
What Self::from_yaml() returns, and also an unrecognized key.doc comment · parse.rs:74

Parse as Self::from_yaml() does, refusing a key that is neither this parser's own vocabulary nor tmuxp's, unless it starts with x-.

Description

This is the policy the tmux-workspace command applies to every document it loads.

Errors

What Self::from_yaml() returns, and also an unrecognized key.

Parameters

Examples

use tmux_workspace::Workspace;
let error = Workspace::from_yaml_strict("session_name: demo\nwindows: []\nfrobnicate: 1\n")
.expect_err("an unrecognized key is refused");
assert!(error.to_string().contains("frobnicate"));
Esc
Search in

Type to search.

Reference previewOpen reference