Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #35 from viniarck/fix/init_dir
Browse files Browse the repository at this point in the history
Fixed tmux session initial directory for additional sessions
  • Loading branch information
viniarck authored Apr 16, 2021
2 parents f2afda5 + 30b9683 commit 9cc890c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rplugin/python3/denite/kind/tmux_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def action_new(self, context: dict) -> None:
new_session_name = f"{session_name}-{i}"

if not self.tmux_dir.sessions().get(new_session_name):
if dir_path.endswith(f"-{i}"):
dir_path = dir_path[:-len(f"-{i}")]
self.tmux_dir.create(
session_name=new_session_name,
vim_bin_path=self.vim_bin_path,
Expand Down

0 comments on commit 9cc890c

Please sign in to comment.