Skip to content

Fix Package Settings menu: correct ${packages} path to 'Markdown Table of Contents'#5

Open
AntonioGHub wants to merge 1 commit into
codeleventh:masterfrom
AntonioGHub:fix/package-settings-menu-paths
Open

Fix Package Settings menu: correct ${packages} path to 'Markdown Table of Contents'#5
AntonioGHub wants to merge 1 commit into
codeleventh:masterfrom
AntonioGHub:fix/package-settings-menu-paths

Conversation

@AntonioGHub
Copy link
Copy Markdown

@AntonioGHub AntonioGHub commented Apr 22, 2026

Fixes #4.

Summary

The Main.sublime-menu references ${packages}/mdtoc/..., but the plugin is distributed through Package Control as Markdown Table of Contents, so Sublime resolves ${packages} to Packages/Markdown Table of Contents/. As a result, both Package Settings menu entries fail with:

The settings file "res://Packages/mdtoc/mdtoc.sublime-settings" could not be opened

(and analogously for Default.sublime-keymap).

What the PR changes

Update both base_file paths in Main.sublime-menu from ${packages}/mdtoc/...${packages}/Markdown Table of Contents/... so they resolve against the package's actual installed name.

The Main.sublime-menu referenced ${packages}/mdtoc/..., but the plugin
is distributed via Package Control as "Markdown Table of Contents", so
Sublime resolves ${packages} to Packages/Markdown Table of Contents/.
Both "Settings - Default" and "Key Bindings - Default" menu entries
therefore failed with:

    The settings file "res://Packages/mdtoc/mdtoc.sublime-settings"
    could not be opened

Update both base_file paths to use the actual package name. Also drop
a trailing comma in the keymap entry (invalid JSON tolerated by ST's
parser but rejected by strict linters).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package Settings menu entries fail with res://Packages/mdtoc/... could not be opened

1 participant