tmux-python / tmux-python/tmuxp

Multiple configs in single file

Open
#573 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new-feature
Dominant language
Python
Stars
4.6k
Forks
248
Avg merge
2h 13m
Merged PRs (30d)
1

Description

I'd like to have multiple configs in a single file, rather than having to spread them across multiple files. If a yaml file contains an array of objects, then tmuxp should load whichever of them matches, like tmuxp load first or tmuxp load second.

- session_name: first
  windows: ...
- session_name: second
  windows: ...

The config file can then be a single file under ~/.tmuxp/config.yml.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tmuxp load command and its configuration-loading path. Check how a YAML file is currently selected and parsed, then define how the requested session name selects one object from an array. Done means a single ~/.tmuxp/config.yml can contain the shown first and second sessions and each can be loaded by name.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.