Collapse all Xcode navigator items

Say you have a bunch of open groups or you’ve performed a search and you want to see all the file names but not the places where the search query is found. You can select all with ⌘ + a then hit the left arrow to close everything or the right arrow to open everything.

How to type macOS keyboard modifier characters

Link to stack overflow answer Use the emoji picker using the function key (🌐) and search for these strings then add to favorites to make them easier to find in the future. place of interest → ⌘ [Command] option → ⌥ [Option] arrowhead → ⌃ [Control] upwards white arrow → ⇧ [Shift] upwards white …

How to list installed apps on a iOS simulator

This lists apps from a named simulator, converts to json, then finds non-apple apps. xcrun simctl listapps "iPad Air (5th generation)" \ | plutil -convert json -o - -- - \ | jq '. | keys | .[] | select(. | startswith("com.apple") | not)' This requires that you know the name …

How to set iTerm2 window and tab bar to show current path

I tend not to use tabs and instead have a bunch of windows so I originally wanted to know how I could set my window title bar to show the current path, but in this post I’ll share how to do both in iTerm2. Here is a screenshot of the iTerm2 Preferences window showing Profiles -> Window. For …

How to see git authors per line in Xcode

In my previous life I used a tool with VSCode called GitLens. What it does is show you what the last git commit for a selected line was. When you hovered over the greyed out text to the right of your code line, you’d get a little popover with more info about the commit. This is a really handy …