-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add Finder's FinderSpawnTab option #391
Conversation
Hey Trevor, thanks that looks great! I'll just make a few minor comments |
docs/finder/finderspawntab.md
Outdated
@@ -0,0 +1,47 @@ | |||
--- | |||
title: Open folders in new tab or new window | Finder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
docs/finder/finderspawntab.md
Outdated
content: Set whether folders open in a new tab or a new window | ||
--- | ||
|
||
# Open folders in new tab or new window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# 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 | ||
``` | ||
|
There was a problem hiding this comment.
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:
<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 | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
``` | |
## Set value from UI | |
1. Access Finder settings from macOS UI | |
2. Toggle "Open folders in tabs instead of new windows" value |
@yannbertrand Thanks! I've updated the branch to incorporate all of your requested changes. |
Thank you! 😄 |
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:
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)With
FinderSpawnTab
disabledPersonally, 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.