UserDefaults Keys#

All settings live under the com.github.munepi.galley domain.

KeyTypePurpose
syncTexEditorStringEditor used for inverse search: emacs (default), vscode, vimtex or custom. Set from the SyncTeX menu. See Inverse Search.
customEditorCommandStringInverse-search command for the Custom editor. See Custom Editor.
emacsclientPathStringExplicit path to emacsclient. See Emacsclient Path.
vimtexFlavorStringWhich binary VimTeX inverse search launches: auto (default; Neovim if present, otherwise Vim), nvim or vim.
vimPathStringAbsolute path to vim, when it is not in /opt/homebrew/bin, /usr/local/bin or /usr/bin. The system vim is built without +clientserver, so this usually points at MacVim.
nvimPathStringAbsolute path to nvim, for the same reason.
displayModeIntegerPage layout, as a PDFDisplayMode value: 0 single page, 1 single page continuous, 2 two pages, 3 two pages continuous. See Display Modes.
displaysAsBookBooleanBook Mode — page 1 stands alone as the cover.
displaysRTLBooleanRight-To-Left spreads, for 縦書き and other right-bound documents.
pageColorModeIntegerPage Color preset: 0 Normal (default), 1 Dark, 2 Sepia, 3 Orange, 4 Gray, 5 Charcoal. Set from View ▸ Page Color. See Page Color.
pageColorDarkPaperStringHidden override for the Dark paper color, as #RRGGBB. Values whose relative luminance exceeds 0.10 are ignored. Unset by default; does not affect Charcoal.
restoreLastPositionBooleanReopen each PDF at the page, position and zoom you left it at (default true). Set from View ▸ Restore Last Position; while it is false, nothing is recorded or restored, and existing records are kept.
warnBeforeQuittingBooleanHold Cmd + Q to quit (default true). Set from Galley ▸ Warn Before Quitting; false makes Cmd + Q quit at once.
colorPickerDisplayModeStringThe Color Picker’s Display popup: native (default), sRGB, displayP3, adobeRGB, lab or simulationCMYK. See Color Picker.
colorPickerSimulationProfilePathStringPath of the CMYK ICC profile picked in the Simulate popup. Empty (default) means Japan Color 2001 Coated when installed, otherwise Generic CMYK. A document’s CMYK output intent takes precedence.
colorPickerTACLimitIntegerTotal area coverage, in percent, above which the separations readout is flagged. Default 300.
AppleFontSmoothingIntegerNot Galley’s own key, but read from its domain: 0 turns macOS font smoothing off for Galley alone. Unset by default since v0.6. See Text Weight.
CGFontRenderingFontSmoothingDisabledBooleanThe companion key to the above; set both together.

The last positions themselves are not UserDefaults keys. They live in one binary property list, ~/Library/Application Support/com.github.munepi.galley/ReadingPositions.plist, never next to your PDFs. It holds the 2,000 most recently used documents and is written only when you leave a document or quit, not on every page turn. Files larger than 512 MB are tracked by path alone, without a content hash. Delete the file to forget every position.

The display, page-color and quit keys are written whenever you change the corresponding menu item, and the Color Picker keys whenever you change its popups, which is why your choices survive a restart. colorPickerTACLimit has no control in the panel; set it with defaults write.

The two font-smoothing keys are the exception: they belong to macOS, not to Galley, and Galley no longer writes them. Versions up to v0.5 set them on every launch, so they may still be sitting in your preferences after an upgrade; defaults delete both to be rid of them.

For debug logging, see Debug Logging — logs are emitted via os_log, no UserDefaults key required.

Read current values#

defaults read com.github.munepi.galley

Reset everything#

defaults delete com.github.munepi.galley