CSSFontFamily icon indicating copy to clipboard operation
CSSFontFamily copied to clipboard

Settings - Default menu item opens an empty tab (package is a zip)

Open dpc00 opened this issue 1 month ago • 0 comments

Claude reports: Preferences > Package Settings > CSSFontFamily > "Settings – Default" opens an empty tab.

Tested with the Package Control release 2014.05.05.15.05.25 on Sublime Text build 4200, Windows 11. Autocomplete itself works (font stacks, and the name from an @font-face in the same file, are offered after font-family:).

Main.sublime-menu opens ${packages}/CSSFontFamily/CSSFontFamily.sublime-settings. Package Control installs this package as CSSFontFamily.sublime-package (a zip), so that folder does not exist on disk. The menu item runs open_file on D:\...\Data\Packages\CSSFontFamily\CSSFontFamily.sublime-settings and shows an empty JSON tab; the folder Packages\CSSFontFamily does not exist. The user cannot see the default settings (ignore_font_faces_in_comments, fonts_stacks) this way. "Settings – User" works.

Sublime's edit_settings command is the usual way to open the default file from inside a zip next to the user file (I did not try this change):

{
    "caption": "Settings",
    "command": "edit_settings",
    "args": {
        "base_file": "${packages}/CSSFontFamily/CSSFontFamily.sublime-settings",
        "default": "{\n\t\"fonts_stacks\": [\n\t\t$0\n\t]\n}\n"
    }
}

dpc00 avatar Oct 20 '26 01:10 dpc00