Skip to content

Instantly share code, notes, and snippets.

@henri
Last active November 8, 2022 19:59
Show Gist options
  • Save henri/5c99c609f78be6d1660ce78865a19ed1 to your computer and use it in GitHub Desktop.
Save henri/5c99c609f78be6d1660ce78865a19ed1 to your computer and use it in GitHub Desktop.
Important Tips for Old-School MacOS Users
Some programs will automatically save changes when closing files - Plan is to make a repository with a bunch of defaults which I use. For now it is a GitHub Gist.
Programs which seem to do this are listed below :
- Texttastic : https://www.textasticapp.com
More default settings now availble in a repository :
https://github.com/henri/handy-settings-macOS/
---- CLI Details ----
Disable Auto Save :
- Check the status of "Ask to save changes when closing documents" General - System Preferences settings.
defaults read .GlobalPreferences.plist | grep -i NSCloseAlwaysConfirmsChanges
- Set "Ask to save changes when closing documents" to be ticked.
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSCloseAlwaysConfirmsChanges 1
Enable Keyboard Navigation Focus :
- Check the status of "Use keyboard navigation to move focus between controls" Keyboard - System Preferences settings.
defaults read .GlobalPreferences.plist | grep -i AppleKeyboardUIMode
- Set "Use keyboard navigation to move focus between controls" to be ticked.
defaults write .GlobalPreferences.plist AppleKeyboardUIMode 2
Helpful Bonus Link : More Excellent Defaults Tips are availble from - Just Added These Two On The List
https://macos-defaults.com/finder/fxenableextensionchangewarning.html#set-to-true-default-value
---- GUI Details ----
To avoid saving files when you really do not want to complete the following steps within the System Preferences :
- Navigate to General =>
Then tick the "Ask to save changes when closing documents" check box so that you will be
prompted to save or not save changes when closing files
This seems to be unticked by default on many modern versions of MacOS.
Next to be able to use the keyboard to not save changes, follow this step in the System Preferences :
- Navigate to Keyboard => Shortcuts =>
Then, tick the "Use keyboard navigation to move focus between controls" check box, so you can quickly not save changes.
Notes : Finding the commands to set these or check if they have been set will require more digging. In the mean time,
This information is hopefully useful.
@henri
Copy link
Author

henri commented Oct 26, 2022

There is now a repository with all kinds of default settings :
https://github.com/henri/macOS-handy-settings/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment