tmux-python / tmux-python/tmuxp
config: Allow passing environment into environment variables
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 248
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
related: #669
assuming
session_name: django
environment:
SERVER_PORT: "8012"
- window_name: test ${SERVER_PORT}
layout: main-horizontal
focus: true
panes:
- focus: True
- blank
Allow window_name to receive SERVER_PORT without having to do env SERVER_PORT=8012 tmuxp load ./file.yaml
Step 1: Provide a summary of your problem
- For general technical questions, problems or feature requests related to the code in this repository file an issue.
Step 2: Provide tmuxp details
- Include output of
tmuxp debug-info - Include any other pertinant system info not captured
Step 3: Describe the problem:
Steps to reproduce:
Observed Results:
- What happened? This could be a description, log output, etc.
Expected Results:
- What did you expect to happen?
Relevant Code:
// TODO(you): paste here tmuxp configuration (YAML / JSON) you are having issues with.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the YAML example from the issue and compare the current window_name expansion with the environment mapping. Trace the configuration-loading and variable-expansion entry points used by tmuxp, then add coverage for SERVER_PORT. Done means window_name receives the value declared under environment without requiring an external env command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100