Skip to content

Commit 9f1b4a8

Browse files
✨ Add finder NewWindowTarget option
Co-authored-by: Yann Bertrand <[email protected]>
1 parent 2a08b77 commit 9f1b4a8

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

defaults.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,59 @@ categories:
447447
text: Large
448448
versions: [Monterey, Big Sur, Catalina]
449449
after: killall Finder
450+
- key: NewWindowTarget
451+
domain: com.apple.finder
452+
title: "Initial folder shown by new Finder windows"
453+
description: >-
454+
Set by the "New Finder windows show:" drop down menu in the Finder preferences.
455+
Often used in conjunction with `NewWindowTargetPath`.
456+
param:
457+
type: string
458+
values: [PfCm, PfVo, PfHm, PfDe, PfDo, PfAF, PfLo]
459+
examples:
460+
- value: PfCm
461+
text: Your computer (e.g. "Bob's MacBook Pro")
462+
- value: PfVo
463+
text: The root of your file system (e.g. "Macintosh HD"). Accompanied by `NewWindowTargetPath = "file:///"`.
464+
- value: PfHm
465+
text: Home. Accompanied by `NewWindowTargetPath = "file:///Users/bob/"`.
466+
- value: PfDe
467+
text: Desktop. Accompanied by `NewWindowTargetPath = "file:///bob/Desktop/"`.
468+
- value: PfDo
469+
text: Documents. Accompanied by `NewWindowTargetPath = "file:///Users/bob/Documents/"`.
470+
- value: PfID
471+
text: iCloud Drive. Accompanied by `file:///Users/bob/Library/Mobile%20Documents/com~apple~CloudDocs`.
472+
- value: PfAF
473+
default: true
474+
text: |
475+
Recents. Accompanied by `NewWindowTargetPath =
476+
"file:///System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/"`.
477+
- value: PfLo
478+
text: Other location. Accompanied by `NewWindowTargetPath = "file:///the/other/location/`.
479+
- key: NewWindowTargetPath
480+
domain: com.apple.finder
481+
title: "Initial folder shown by new Finder windows"
482+
param:
483+
type: string
484+
examples:
485+
- value: "file:///"
486+
text: The root of your file system (e.g. "Macintosh HD"). Accompanied by `NewWindowTarget = PfVo`.
487+
- value: "file:///Users/bob/"
488+
text: Home. Accompanied by `NewWindowTarget = PfHm`.
489+
- value: "file:///bob/Desktop/"
490+
text: Desktop. Accompanied by `NewWindowTarget = PfDe`.
491+
- value: "file:///Users/bob/Documents/"
492+
text: Documents. Accompanied by `NewWindowTarget = PfDo`.
493+
- value: "file:///Users/bob/Library/Mobile%20Documents/com~apple~CloudDocs"
494+
text: iCloud Drive. Accompanied by `NewWindowTarget = PfID`.
495+
- value: "file:///System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/"
496+
default: true
497+
text: Recents. Accompanied by `NewWindowTarget = PfAF`.
498+
- value: "file:///the/other/location/"
499+
text: Other location. Accompanied by `NewWindowTarget = PfLo`.
500+
description:
501+
Set by the "New Finder windows show:" drop down menu in the Finder preferences.
502+
See `NewWindowTarget`.
450503

451504
- folder: menubar
452505
name: Menu Bar

0 commit comments

Comments
 (0)