You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cider storage of defaults and applying defaults doesn't appear to support arrays.
Example usage: defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
My intention is to be able to save new persistent applications into the Dock.
Since my common usage of Cider is when installing new macOS versions which keep changing the default value of com.apple.dock persistent-apps, I don't want cider apply-defaults to erase the entire persistent-apps value.
@RogerThiede this is an interesting feature, although I'm not sure how -array-add would be represented in YAML (-array and -dict should be pretty straightforward). For managing dock items, I currently use dockutil as shown here:
I would really appreciate the possibility to set array values as well, but only via -array flag to preserve immutability. For appending values you could use anchors that are supported in YAML syntax, however merge behaviour would be strongly preferred.
EDIT: You might have to check correct syntax and supported options of the YAML parser. Anchors are advanced feature and they are not always supported or they might have implementation differences.
Issue reported by @RogerThiede, migrated from msanders/cider#51.
The text was updated successfully, but these errors were encountered: