Skip to content

make new terminal open to same dir, not home#678

Open
nick1udwig wants to merge 1 commit intopop-os:masterfrom
nick1udwig:new-terminal-opens-to-same-dir
Open

make new terminal open to same dir, not home#678
nick1udwig wants to merge 1 commit intopop-os:masterfrom
nick1udwig:new-terminal-opens-to-same-dir

Conversation

@nick1udwig
Copy link
Copy Markdown
Contributor

Problem

Creating a new terminal, e.g. with Ctrl + Shift + N, opens to home dir.

popos 22.04 had a more intuitive behavior of opening to the cwd of the existing terminal. This is desirable because it is trivial to change to home dir (cd) but potentially a lot of typing to change dir to some deeply nested directory

Solution

Grab existing terminal cwd and set new terminal to that

Copy link
Copy Markdown

@eskimor eskimor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. No Windows support, but falls back to old behavior - so not any worse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants