Open msanders opened 4 years ago
@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:
brew install dockutil
dockutil --remove all --no-restart
dockutil --add /Applications/Firefox.app --no-restart
dockutil --add /Applications/Emacs.app --no-restart
dockutil --add /Applications/Utilities/Terminal.app --no-restart
dockutil --add ~/Downloads --display stack # Implicitly restarts the Dock.
Thanks, I'll try out dockutil.
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.
YAML sample:
com.binarynights.ForkLift-3:
FileEditors: &editors
- *editors
- ApplicationPath: "/Applications/Visual Studio Code.app"
Default: 1
Extensions: ''
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 https://github.com/msanders/cider/issues/51.