tmux-python / tmux-python/tmuxp

start_directory doesn't work when set on session, window and pane

Open
#422 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When start_directory is set on all of session, window, and pane, it doesn't work as expected.

It should concatenate directories for session + window + pane, inheriting from the parent level if nothing is specified.

So a pane that has no start_directory on window should get the directory from session + pane. And a pane that has nothing set for itself should get the directory from session + window.

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 by locating the Python code that resolves start_directory across session, window, and pane configuration, then inspect any existing tests for inherited directory handling. The work is done when each level contributes its directory in session-to-window-to-pane order and missing values inherit from the applicable parent level.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.