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

[Feature Request] Setting to open new tabs in the same folder as the one on which a new tab (shortcut) is invoked #514

Open
vivekragunathan opened this issue Nov 16, 2018 · 13 comments

Comments

@vivekragunathan
Copy link

vivekragunathan commented Nov 16, 2018

image
There is currently a setting (see above) that sets the starting/working directory when you open a new shell. It would be fantastic if there's a setting to open the new shell/tab in the same directory as the one on which you hit Cmd+T.

Funding this issue

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We only receive your pledge once the issue is resolved & you've verified it.
Fund with Polar
@Eugeny
Copy link
Owner

Eugeny commented Nov 16, 2018

Actually it should already do that on Linux and macOS - is this not the case for you?

@vivekragunathan
Copy link
Author

What I meant was ...

If I am in a directory ~/Projects/terminus, and open a new tab, the new tab should open in the same directory instead of the working directory configured. So, the working directory should be a list of

  • home directory
  • same directory as last tab
  • custom (and let the user enter a directory path)
  • ...

@Eugeny
Copy link
Owner

Eugeny commented Nov 30, 2018

As said, this is already an implemented feature - if it's not working for you, I'll need to know at least what platform you're on.

@Zakhse
Copy link

Zakhse commented Dec 1, 2018

@Eugeny But can it be implemented for Windows with WSL?

@Eugeny
Copy link
Owner

Eugeny commented Dec 2, 2018

Unfortunately I wasn't able to find a reliable way to determine other process' working directory on Windows that wouldn't require administrator permissions - I'll keep this ticket open until then!

@vivekragunathan
Copy link
Author

I am on Mac (Mojave). Unfortunately, Terminus, like the past few times, is not bringing up the window at all to get you anymore information.

I can't figure when and why that no window situation happens. I can say with 50% confidence that it happens when the settings window is open.

I have tried uninstalling and reinstalling, and i am gonna try the same later tonight.

@klassicd
Copy link

klassicd commented Dec 6, 2018

This is not working on Mac Mojave either. When I try to open a new tab, it opens to my HOME directory and not the directory of the last tab I was on. Would really this feature as new tabs almost always related to the codebase I'm currently working on.

@Eugeny
Copy link
Owner

Eugeny commented Feb 9, 2019

@klassicd it's supposed to be pretty reliable on macOS - is Terminus opening new tabs in $HOME every time?

@IgnusG
Copy link
Contributor

IgnusG commented Apr 11, 2019

Does/or could terminus send some kind of signal to the shell running in a tab on blur? If yes, the shell could take care of handling the tracking and setting of the directory for new tabs.

There already are a few plugins that achieve something similar but track working dir only on directory change or command execution (which is sub-optimal).

@Eugeny
Copy link
Owner

Eugeny commented Oct 28, 2019

I've made a separate ticket to track Windows CWD detection issues: #1703

@perasovic
Copy link

Can confirm on Mac (Mojave 10.14.6), Terminus 1.0.112

alwaysUseWorkingDirectory: false

If Settings Window is open or not does not seem to matter.

@Eugeny Eugeny added the polar label Jul 20, 2023
@polar-sh polar-sh bot added polar and removed polar labels Jul 24, 2023
@stefangweichinger
Copy link

Sorry for hijacking this: I can't find the setting in Linux. As far as I understand under linux this should work?

I run tabby-1.0.201 ... thanks!

@techmaved
Copy link

Sorry for hijacking this: I can't find the setting in Linux. As far as I understand under linux this should work?

I run tabby-1.0.201 ... thanks!

I think in previous version there was a gui setting for it. In the meanwhile you can set this in your config file.

terminal:
   ...
  alwaysUseWorkingDirectory: true

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

No branches or pull requests

8 participants