macos-defaults icon indicating copy to clipboard operation
macos-defaults copied to clipboard

Grouping commands

Open krystof-k opened this issue 3 years ago • 1 comments

Some settings change multiple keys. For example default Finder new window setting:

  • com.apple.finder.NewWindowTarget = PfAF &
    com.apple.finder.NewWindowTargetPath = file:///System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch
    for Recents
  • com.apple.finder.NewWindowTarget = PfHm &
    com.apple.finder.NewWindowTargetPath = file:///Users/username/
    for home (~/.)
  • com.apple.finder.NewWindowTarget = PfDe &
    com.apple.finder.NewWindowTargetPath = file:///Users/username/Desktop/
    for desktop (~/Desktop/)
  • com.apple.finder.NewWindowTarget = PfDocom.apple.finder.NewWindowTargetPath = file:///Users/username/Documents/
    for documents (~/Documents/)
  • com.apple.finder.NewWindowTarget = PfIDcom.apple.finder.NewWindowTargetPath = file:///Users/username/Library/Mobile%20Documents/com~apple~CloudDocs/
    for iCloud (~/Library/Mobile%20Documents/com~apple~CloudDocs/)
  • com.apple.finder.NewWindowTarget = PfVo &
    com.apple.finder.NewWindowTargetPath = file:///
    for a (root) volume
  • com.apple.finder.NewWindowTarget = PfCmcom.apple.finder.NewWindowTargetPath deleted
    for computer
  • com.apple.finder.NewWindowTarget = PfLocom.apple.finder.NewWindowTargetPath = file:///custom/path
    for a custom location

I believe it would make more sense to group the commands under some higher entity which would describe the overall behavior (or setting in the UI). That would be also future-proof when the underlying commands may change in future macOS versions, but the behavior may stay the same.

krystof-k avatar Jul 19 '22 18:07 krystof-k

Good point (see #206). I believe the defaults.yml file has made its time, it's limitating on several points.

I will simplify the whole project by just creating a markdown file for each page, no more yml to md compiler. I'll let you updated in this issue.

yannbertrand avatar Aug 16 '22 09:08 yannbertrand