UserDefaults Keys#
All settings live under the com.github.munepi.galley domain.
| Key | Type | Purpose |
|---|---|---|
syncTexEditor | String | Editor used for inverse search: emacs (default), vscode, vimtex or custom. Set from the SyncTeX menu. See Inverse Search. |
customEditorCommand | String | Inverse-search command for the Custom editor. See Custom Editor. |
emacsclientPath | String | Explicit path to emacsclient. See Emacsclient Path. |
vimtexFlavor | String | Which binary VimTeX inverse search launches: auto (default; Neovim if present, otherwise Vim), nvim or vim. |
vimPath | String | Absolute 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. |
nvimPath | String | Absolute path to nvim, for the same reason. |
displayMode | Integer | Page layout, as a PDFDisplayMode value: 0 single page, 1 single page continuous, 2 two pages, 3 two pages continuous. See Display Modes. |
displaysAsBook | Boolean | Book Mode — page 1 stands alone as the cover. |
displaysRTL | Boolean | Right-To-Left spreads, for 縦書き and other right-bound documents. |
pageColorMode | Integer | Page Color preset: 0 Normal (default), 1 Dark, 2 Sepia, 3 Orange, 4 Gray, 5 Charcoal. Set from View ▸ Page Color. See Page Color. |
pageColorDarkPaper | String | Hidden override for the Dark paper color, as #RRGGBB. Values whose relative luminance exceeds 0.10 are ignored. Unset by default; does not affect Charcoal. |
restoreLastPosition | Boolean | Reopen 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. |
warnBeforeQuitting | Boolean | Hold Cmd + Q to quit (default true). Set from Galley ▸ Warn Before Quitting; false makes Cmd + Q quit at once. |
colorPickerDisplayMode | String | The Color Picker’s Display popup: native (default), sRGB, displayP3, adobeRGB, lab or simulationCMYK. See Color Picker. |
colorPickerSimulationProfilePath | String | Path 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. |
colorPickerTACLimit | Integer | Total area coverage, in percent, above which the separations readout is flagged. Default 300. |
AppleFontSmoothing | Integer | Not 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. |
CGFontRenderingFontSmoothingDisabled | Boolean | The 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.galleyReset everything#
defaults delete com.github.munepi.galley