★ wanayoo — archive 1999 https://github.com/tmux-python/tmuxp/issues/631Nouvelle recherche | Portail wanayoo
Skip to content
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

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

Closed
ygworldr opened this issue Oct 22, 2020 · 5 comments
Closed

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

ygworldr opened this issue Oct 22, 2020 · 5 comments
Labels
bug

Comments

@ygworldr
Copy link

@ygworldr ygworldr 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 and removed bug labels Oct 31, 2020
@joseph-flinn
Copy link
Member

@joseph-flinn 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.

@ygworldr
Copy link
Author

@ygworldr ygworldr commented Oct 31, 2020

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

@joseph-flinn
Copy link
Member

@joseph-flinn joseph-flinn commented Oct 31, 2020

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

@joseph-flinn
Copy link
Member

@joseph-flinn joseph-flinn commented Oct 31, 2020

@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 in 3f5fdd6 Nov 1, 2020
@ygworldr
Copy link
Author

@ygworldr ygworldr 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.