Skip to content

Add a typed list of tmux options #79

Open

Description

@tony

Summary

The library has no list of the options tmux defines. A caller cannot ask which option names exist, at which scope each applies, or which value type each takes, and cannot check a name before sending it to tmux.

Motivation

The only option name the library recognizes is the user-option pattern @name in Request.encode/2. LibTmux.Schema lists tmux format variables for observed fields only (schema.ex), not options. Any option call added later (see #77) would otherwise take a bare string.

tmux declares every option in one table, and each entry carries a name, scope, type and default (options_table[]). The Go port generates typed option values from that table (option_generated.go).

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions