Skip to content

split-window -c "#{pane_current_path}" does not preserve working directory #111

@gtbuchanan

Description

@gtbuchanan

Description

split-window -c "#{pane_current_path}" does not open the new pane in the current pane's working directory. The #{pane_current_path} format variable appears to not be resolved, so the new pane falls back to the default directory.

Steps to reproduce

  1. Add to config:
    bind '"' split-window -v -c "#{pane_current_path}"
    bind % split-window -h -c "#{pane_current_path}"
    
  2. cd to a non-default directory (e.g., cd ~/projects)
  3. Split the pane with prefix + " or prefix + %

Expected behavior

New pane opens in the same directory as the current pane (e.g., ~/projects).

Actual behavior

New pane opens in the default directory instead.

Environment

  • psmux (built from master branch)
  • Windows 11
  • Git Bash shell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions