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

Add Finder's FinderSpawnTab option #391

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

TrevorBurnham
Copy link
Contributor

This PR adds Finder's FinderSpawnTab option, which controls whether the Finder offers "Open in New Tab" (the default in recent macOS versions) or "Open in New Window" when interacting with folders.

I've only tested option this under macOS Sonoma. I suspect that it's been consistent across the last several OS versions, but I can't directly confirm.

In Sonoma, this option can be controlled from the "General" tab in Finder Settings via the checkbox at the bottom:

Finder Settings

It controls what happens if you hold Cmd while double-clicking a folder, as well as the top option in the context menu for a folder:

With FinderSpawnTab enabled (the default)

Context menu offers Open in New Tab

With FinderSpawnTab disabled

Context Menu offers Open in New Window

Personally, having folders open in a new tab drives me crazy because I often want to drag items between the parent and child folders. 😝

Love the project! Please let me know if you need anything else for this PR.

@yannbertrand
Copy link
Owner

Hey Trevor, thanks that looks great! I'll just make a few minor comments

@@ -0,0 +1,47 @@
---
title: Open folders in new tab or new window | Finder
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
title: Open folders in new tab or new window | Finder
title: Open folders destination | Finder

I believe shorter is better for page titles. Description explains it well

content: Set whether folders open in a new tab or a new window
---

# Open folders in new tab or new window
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
# Open folders in new tab or new window
# Open folders destination

As it's also used for the sidebar title, I prefer it to be short and do not assume user prefers one or the other option.

```bash
defaults write com.apple.finder "FinderSpawnTab" -bool "true" && killall Finder
```

Copy link
Owner

Choose a reason for hiding this comment

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

Please feel free to add the screenshots you took:

Suggested change
<img
src="./images/finderspawntab/true.png"
alt="Example output with value set to true"
width="953" height="571" style="height: auto"
/>

This helps a lot to understand!

```bash
defaults write com.apple.finder "FinderSpawnTab" -bool "false" && killall Finder
```

Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
<img
src="./images/finderspawntab/false.png"
alt="Example output with value set to false"
width="953" height="571" style="height: auto"
/>


```bash
defaults delete com.apple.finder "FinderSpawnTab" && killall Finder
```
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
```
```
## Set value from UI
1. Access Finder settings from macOS UI
2. Toggle "Open folders in tabs instead of new windows" value

@TrevorBurnham
Copy link
Contributor Author

TrevorBurnham commented Oct 29, 2024

@yannbertrand Thanks! I've updated the branch to incorporate all of your requested changes.

@yannbertrand yannbertrand merged commit e8c477f into yannbertrand:main Oct 29, 2024
2 checks passed
@yannbertrand
Copy link
Owner

Thank you! 😄

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