Skip to content

The start_directory directive is not respected when creating new panes. #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Oct 22, 2020 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Oct 22, 2020

Step 1: Provide a summary of your problem

The start_directory directive is not respected when creating new panes.

Step 2: Provide tmuxp details

  • Python version 3.9.0
  • system PATH NA
  • tmux version 3.1
  • tmuxp version 1.5.5
  • tmux path ~/bin/tmux
  • tmuxp path, ~/.pyenv/shims/tmuxp
  • libtmux version 0.8.3
  • shell zsh 5.8
  • output of tmux list-sessions, tmux list-windows, tmux list-panes NA
  • output of tmux show-options -g, tmux show-window-options -g NA
  • output of tmuxp freeze <SESSION_NAME> NA

Step 3: Describe your environment

  • Architecture: x86_64 GNU/Linux
  • OS version: Fedora 32

Step 4: Describe the problem:

Steps to reproduce:

  1. Create a simple configuration setting start_directory to ~/ook & save as ~/.tmuxp/ook.yaml.
  2. Load it via tmuxp load ook
  3. Create a new windows: ctrl+a + c
  4. I was expected the new pane current directory to be ~/ook
  5. The new pane is opened in ~/.

Observed Results:

The new pane is opened in ~/.

Expected Results:

I was expected the new pane current directory to be ~/ook

Relevant Code:

start_directory: ~/ook
windows:
- window_name: top
  panes:
    - shell_command:
        - pwd
@joseph-flinn joseph-flinn added bug Something isn't working and removed bug Something isn't working labels Oct 31, 2020
@joseph-flinn
Copy link
Contributor

joseph-flinn commented Oct 31, 2020

@ygworldr Thanks for raising this issue. It seems like the main start_directory is not setting the current working directory of tmux as the tmux new-session -c ./ook would do. I have yet to identify whether this is an issue in tmuxp or the underlying libtmux. I'll look into it, let you know, and get a fix in.

@ghost
Copy link
Author

ghost commented Oct 31, 2020

I am happy to test any fix, if you wanted me to.

@joseph-flinn
Copy link
Contributor

Ok, great! I'll let you know when I have a fix

@joseph-flinn
Copy link
Contributor

@ygworldr I am pretty sure that PR #639 fixes this issue. It is currently in PR. Feel free to test it out.

@tony tony closed this as completed in 3f5fdd6 Nov 1, 2020
@ghost
Copy link
Author

ghost commented Nov 2, 2020

Upgraded and the bug is indeed fixed. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant