Skip to content

split a pane and keep the cwd #4

@nedtwigg

Description

@nedtwigg

It has happened a few times where I have split a pane, and wished that it would open the new shell with the cwd I'm in right now.

In tmux, you can get this behavior by putting this into ~/tmux.conf

bind '"' split-window -v -c '#{pane_current_path}'
bind %   split-window -h -c '#{pane_current_path}'
bind c   new-window      -c '#{pane_current_path}'

This utilizes the "tmux format variables" feature. If we add this feature, I think I'd prefer to just have a splitting keeps cwd checkbox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions