OK, got it. So the response is correct, the key doesn't exist.On Jul 12, 2017, at 23:43, Allan Odgaard <mailinglist@textmate.org> wrote:On 3 Jul 2017, at 23:07, じょいすじょん wrote:
Setting or variable 'fontName' not found
[…]
Is there a modern alternative to fontName?
Or, even better, a reference for that and other keys?There is no good solution for this.
The
tm_querytool is simply reading your various.tm_propertiesfiles (including theDefault.tmPropertiesincluded with TextMate) and returning the requested value (or exiting with a non-zero return code if not found). So there is no fixed list of keys.Originally the
Default.tmPropertiesfile had a setting forfontNamebut because Apple has changed the default fixed width font, it wasn’t good to put a hardcoded name inDefault.tmProperties(since TextMate should default to the fixed width font that is default for the user’s OS version).I am not sure for what the TextMate Jedi Completion bundle uses the font name, but it will need its own fallback, incase
$TM_QUERYexits with a non-zero return code.You can hardcode the fallback as
Menlo-Regularbut technically the user can override the system’s default fixed width font using theNSFixedPitchFontuser defaults setting.This can be obtained using:
defaults read -g NSFixedPitchFontThe default size can be changed using the
NSFixedPitchFontSizekey.