ospfranco / sol

MacOS launcher & command palette
MIT License
1.92k stars 89 forks source link

Request: search system preferences #34

Closed mfbx9da4 closed 2 years ago

mfbx9da4 commented 2 years ago

It would be cool to search the system preferences and deep link into the setting

ospfranco commented 2 years ago

So far I've only hardcoded the display settings, maybe there is a way to get the list of items programmatically in Swift. If you can figure it out feel free to tackle it... otherwise I might try to take a look much later.

mfbx9da4 commented 2 years ago

I've found this list but I don't see how to import the SystemPreferences Object. Any ideas? Otherwise I'm happy to hardcode the list

https://developer.apple.com/documentation/devicemanagement/systempreferences

mfbx9da4 commented 2 years ago

Threw this together https://github.com/ospfranco/sol/pull/36

It does unfortunately contain some unrelated stying fixes though

ospfranco commented 2 years ago

thanks for the PR! It's merged and I will create a release soon.

Just as a friendly request, I put a couple of extra minutes to put a name field on most items, I try to keep the app polished enough so that there are no glaring flaws, next time would be great if you could also tackle that as well :)

mfbx9da4 commented 2 years ago

Yeah absolutely. I threw the PR together very quickly and was excited to see it working but will definitely spend more time finessing before finalising the PR for submission next time.

Also I think it would be nicer if each preference had the system preference icon, will add!

Also I found this massive list which might be useful @ospfranco

https://gist.github.com/rmcdongit/f66ff91e0dad78d4d6346a75ded4b751