Expand description
tmux-compatible command tokenization and command-name lookup.
This module mirrors the frozen tmux cmd-parse.y lexer boundary closely
enough for RMUX command dispatch and config parsing to share one parser.
Frozen source anchors: /opt/rmux/reference/tmux at commit
31d77e29b6c9fbb07d032018da78db3a8a38d979, especially cmd.c:121
(cmd_table[]) and cmd-parse.y:1053, cmd-parse.y:1201,
cmd-parse.y:1626 for argv parsing, continuation handling, and
tokenization.
Structs§
- Command
Entry - Frozen tmux command table entry used for command lookup.
- Command
Parse Error - Error returned by command tokenization, parsing, or lookup.
- Command
Parser - A reusable parser with parse-time expansion context.
- Environment
Assignment - A parse-time
name=valueenvironment assignment. - Parsed
Command - One parsed tmux command with a canonical command name.
- Parsed
Commands - Parser output for one command list.
Enums§
- Command
Argument - A parsed command argument.
- Command
Grouping - Queue grouping mode captured while parsing a tmux command list.
Constants§
- COMMAND_
TABLE - Frozen command inventory from
/opt/rmux/reference/tmux31d77e29b6c9fbb07d032018da78db3a8a38d979cmd.c:121.
Functions§
- lookup_
command - Looks up a frozen tmux command using exact alias then unique name prefix.
- parse_
command_ arguments - Parses a tmux command argument vector with default expansion context.
- parse_
command_ string - Parses a tmux command string with default expansion context.